Drawing through hand movement in matlab

how we can plot edges of multiple images in MATLAB?

댓글 수: 1

Jan
Jan 2011년 3월 17일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

TED MOSBY
TED MOSBY 2025년 5월 16일

0 개 추천

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!

태그

질문:

2011년 3월 17일

답변:

2025년 5월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by