필터 지우기
필터 지우기

identify directions of arrows in a image

조회 수: 1 (최근 30일)
Amy
Amy 2014년 3월 31일
답변: Image Analyst 2014년 3월 31일
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:)

답변 (1개)

Image Analyst
Image Analyst 2014년 3월 31일
  1. use bwdistline to measure the distance from the center of the spot to near the tip of the arrow.
  2. Threshold the image.
  3. call bwlabel
  4. call regionprops and ask for centroid.
  5. 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.
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.

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by