how can i extract radius signature of a binary image?

2 ビュー (過去 30 日間)
mohsen gold
mohsen gold 2013 年 8 月 26 日
編集済み: Sabanam 2014 年 2 月 25 日
i have a binary image and radius signature is distance between pixels on contour of object and its centroid. i use bwboundaries() but result is not good
i saw a example in matlab code of bwboundaries(),it used plot to show contour plot has best result but i dont need plot i need a matrix. i use blow code but my result is not same with matlab's example.
img4=zeros(size(img3));
[B,L] = bwboundaries(img3,'noholes');
for k = 1:length(B)
boundary = B{k};
for i=1:size(boundary,1)
img4(boundary(i,1), boundary(i,2))=1;
end
end

回答 (3 件)

Image Analyst
Image Analyst 2013 年 8 月 26 日
編集済み: Image Analyst 2013 年 8 月 26 日
Use regionprops to find the centroid, then use the Pythagorean theorem to get the distances between the boundary x,y coordinates and the centroid.
  9 件のコメント
Explorer
Explorer 2014 年 2 月 11 日
Thanks for helping!
Image Analyst
Image Analyst 2014 年 2 月 11 日
Can you go ahead and accept it to close this out?

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


Sabanam
Sabanam 2014 年 2 月 25 日
Thanks sir...its really helpful and the best answer to find radius signature...

Sabanam
Sabanam 2014 年 2 月 25 日
編集済み: Sabanam 2014 年 2 月 25 日
Which formula used to find centroid in matlab?..Whenever i have read they are using mean of the point but is it right?

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by