フィルターのクリア

how to calculate the radius of an image more irregular if I know the centroid?

1 回表示 (過去 30 日間)
elena
elena 2013 年 5 月 9 日
Hello everyone! I have a small question and would appreciate if someone could help me. I'm working with a picture of a mole, I know the centroid of the image, and I'd like to know which is the major radius of the image. Anyone know how to do? thank you very much
  1 件のコメント
Sean de Wolski
Sean de Wolski 2013 年 5 月 9 日
Please provide a link to an example image and the code you are currently using.

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

採用された回答

Image Analyst
Image Analyst 2013 年 5 月 9 日
Use regionprops and ask for the EquivDiameter. That is the diameter as if the blob were perfectly circular with the same area. See my image segmentation tutorial for more info. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  2 件のコメント
elena
elena 2013 年 5 月 11 日
I'm using regionprops and see the result of equivalent diameter, but I have a problem, I'm working with a color image that I converted to white and black and filled the holes but there is noise, then regionprops returns multiple values for each of the fields. Is there any way to get only the value of the diameter for the image discarding the rest, without having to do it manually? Or some other way to get the largest diameter without using regionprops?
Image Analyst
Image Analyst 2013 年 5 月 11 日
Try bwarea() to get rid of small noise blobs. Otherwise upload your image so I can take a look at it.

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

その他の回答 (1 件)

David Sanchez
David Sanchez 2013 年 5 月 9 日
Are you using the function regionprops ?
  1 件のコメント
elena
elena 2013 年 5 月 9 日
I try it with regionprops calculating the AxisMajorLength but do not really understand the operation and does not give me the results I am looking for. Is there another way to do it?

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by