- You may use contrast enhancement first followed by morphological techniques so that cross hair and circle is detected as required. You may refer to Contrast Enhancement Techniques for the same.
- If you are sure that one part is dark, and one part is bright then you may separate the two component by first taking the bright part in one image and then complimenting the image by subtracting every pixel from 255 in second image. This will give an image that looks bright even if original part was dark. Then you can process both images separately for finding the cross hair and circle.
Separating features using imopen with bright and dark features.
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, I would like to be able to get the centroid of the white spot as well as where the cross hairs meet. So I though its best to try and seperate out the lines and the circular blob using morphological operations.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/295138/image.png)
I have had some success using imopen when the circular blob ** and ** cross hairs are bright i.e.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/295143/image.png)
(this was a perfect image I created in paint)
my code for this is:
SE = strel("disk",7);
BW1=imopen(IM,SE);
But I don't see how to seperate the circular blob and cross hairs when one is bright and one is dark, and for my real image. Any help greatly appreciated.
댓글 수: 0
답변 (1개)
Raunak Gupta
2020년 5월 27일
Hi,
I can suggest two approach to do the same.
Hope it helps.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!