フィルターのクリア

I want measuring angle in image

5 ビュー (過去 30 日間)
Adisorn Phanukthong
Adisorn Phanukthong 2017 年 2 月 16 日
コメント済み: Image Analyst 2017 年 2 月 17 日
I have picture as binary image I want find angle of picture in top left,top right,bottom right,bottom left from axis X at 0 degree whirl as circle completely, 360 degree. red point is point want to know angle in picture
**red point I create in Photoshop
  2 件のコメント
KSSV
KSSV 2017 年 2 月 16 日
編集済み: KSSV 2017 年 2 月 16 日
I am closing the other one and keeping the present one.
Adisorn Phanukthong
Adisorn Phanukthong 2017 年 2 月 17 日
I can't see this link

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2017 年 2 月 16 日
  2 件のコメント
Adisorn Phanukthong
Adisorn Phanukthong 2017 年 2 月 16 日
I want as code mathlab. Can you help me please .
Image Analyst
Image Analyst 2017 年 2 月 17 日
Roger's link had the code. Just use it on each of your red dots, and centroid, which I presume you have, to find the angles.
If you don't have the centroid, see my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862. Basically, if you have the binary image, in short, to find the centroid, it's
binaryImage = bwareafilt(binaryImage, 1); % Extract largest blob.
labeledImage = bwlabel(binaryImage);
props = regionprops(labeledImage, 'Centroid');
xCentroid = props(1).Centroid(1);
yCentroid = props(1).Centroid(2);
It's not exactly clear the rules for finding your red dots. I mean, they could jsut as easily be moved around the outline a little bit and I wouldn't know which is correct/best. Since you know the rules, not me, just use your own code to find the red dots.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by