![0000 Screenshot.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196254/0000%20Screenshot.png)
How to detect the circular object in the middle of this image?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a binary image. I want to keep the circular object in the middle of the image and remove all other components. How can I do that?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196246/image.jpeg)
댓글 수: 0
채택된 답변
Image Analyst
2018년 11월 23일
Simply mask the image. See attached m-file.
![0000 Screenshot.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196254/0000%20Screenshot.png)
댓글 수: 3
Image Analyst
2018년 11월 23일
I suggest using normxcorr2() to find the pattern. I attach an example.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!