Drawing through hand movement in matlab
2 views (last 30 days)
Show older comments
how we can plot edges of multiple images in MATLAB?
1 Comment
Jan
on 17 Mar 2011
Sorry for this silly statement: This depends on the exact definition of "plot", "edges", "multiple" and "images". What is the connection between the subject ("hand movement") and the body of the question ("plot edges")? Please post any details.
Answers (1)
TED MOSBY
on 16 May 2025
Hi,
I assume you want to turn hand-movement captured by a camera into a single ‘drawing’ by extracting and accumulating the edge-maps of all frames.
You can follow the steps below:
- Grab a frame from the webcam:
cam = webcam; frame = snapshot(cam);
2. Convert to grayscale, optionally smooth or enhance contrast. This makes edge detection more stable across lighting changes.
3. Suppress the background so the edge detector won’t pick up the room. Detect edges of the hand only
4. Run an edge operator (Canny/Sobel etc.) on the hand patch → binary edge map.
5. Keep a blank logical canvas the same size as the frame. For every new frame:
canvas = canvas OR edges
Logical OR “fuses” the fresh edges into everything drawn so far.
6. Display canvas live so you see the sketch grow. At the end, save it as an image or write a video showing the build-up.
Hope this helps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!