Drawing through hand movement in matlab

how we can plot edges of multiple images in MATLAB?

1 Kommentar

Jan
Jan am 17 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

TED MOSBY
TED MOSBY am 16 Mai 2025

0 Stimmen

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:
  1. 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!

Tags

Gefragt:

am 17 Mär. 2011

Beantwortet:

am 16 Mai 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by