get the inner white circle

2 次查看(过去 30 天)
i wanted to get the inner white circle and blacken all the remaining portions....
please can someone help me solve this...
i am trying to get such an image.... but not getting... please help...

采纳的回答

Walter Roberson
Walter Roberson 2016-2-1
regionprops() 'BoundingBox' would give you the bounding box without any problems. You could also request the 'Eccentricity' and use that to choose between the two output regions. You might also want the 'Image' property.
  2 个评论
Elysi Cochin
Elysi Cochin 2016-2-1
sir i used regionpropos i'm getting the outer circle... i needed the inner circle....
Walter Roberson
Walter Roberson 2016-2-1
regionprops() is going to give you a structure array of length 2. You can examine the properties returned to decide which of the two each one refers to.
If you have a newer version of MATLAB, R2014b or later, you can use bwareafilt() and ask to keep the 1 'smallest'

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Denoising and Compression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by