How can I detect broken circles in Matlab?
4 ビュー (過去 30 日間)
古いコメントを表示
Alexander Tofte
2015 年 11 月 16 日
コメント済み: Alexander Tofte
2015 年 11 月 16 日
Hi
As a rookie in Matlab, I have a question; I need to detect and mark out only the broken M&M's on the uploaded picture. How do I do this? I have searched far and wide on the big internet, but I am still finding myself to be empty handed in the matter.
Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151786/image.jpeg)
0 件のコメント
採用された回答
Emanuele Gandola
2015 年 11 月 16 日
編集済み: Emanuele Gandola
2015 年 11 月 16 日
Hi, you have to binarize the image with im2bw than you can use some function to be sure that all elements are non connected like imerode than you have to close contour and fill holes using imclose imfill
at this stage maybe a denoising step with bwareaopen is appreciable
and finally you cal extract all properties with regionprops
simply you can ceck the perimeter or the roundness of you m&m, maybe the minimum axes should be the solution if minimun axex< threshold is broken
Best.
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!