Separating features using imopen with bright and dark features.

조회 수: 1 (최근 30일)
Jason
Jason 2020년 5월 20일
답변: Raunak Gupta 2020년 5월 27일
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.
I have had some success using imopen when the circular blob ** and ** cross hairs are bright i.e.
(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.

답변 (1개)

Raunak Gupta
Raunak Gupta 2020년 5월 27일
Hi,
I can suggest two approach to do the same.
  1. 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.
  2. 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.
Hope it helps.

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by