Drawing through hand movement in matlab
이전 댓글 표시
how we can plot edges of multiple images in MATLAB?
댓글 수: 1
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
2025년 5월 16일
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!
카테고리
도움말 센터 및 File Exchange에서 Contrast Adjustment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!