get the inner white circle
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153730/image.png)
i wanted to get the inner white circle and blacken all the remaining portions....
please can someone help me solve this...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153731/image.png)
i am trying to get such an image.... but not getting... please help...
0 件のコメント
採用された回答
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 件のコメント
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 Center および File Exchange で Denoising and Compression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!