- use bwdistline to measure the distance from the center of the spot to near the tip of the arrow.
- Threshold the image.
- call bwlabel
- call regionprops and ask for centroid.
- Go out in all 4 directions and measure the intensity at a distance of the arrow tip distance from the centroid. The darkest location will be the location of the arrow tip.
identify directions of arrows in a image
조회 수: 3 (최근 30일)
이전 댓글 표시
i need to count the number of arrows that point upward,downward,northeast,etc.
------
transform the picture to
↓↑↓
←←↑
→→↑
and there are two ↓ ,two ←,two → and three↑
------ can somebody tell me how to do this??thank you:)
댓글 수: 0
답변 (1개)
Image Analyst
2014년 3월 31일
There are more robust ways to do it, but you'll probably discover them as you try this out. For example the upper left arrow is tilted and you need to be able to handle that, such as by asking regionprops for the orientation and looking only along the major axis for the arrow tip.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!