Drawing through hand movement in matlab
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how we can plot edges of multiple images in MATLAB?
1 commentaire
Jan
le 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.
Réponses (1)
TED MOSBY
le 16 Mai 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 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!