Hello, i'm trying to search for an area of an image.

조회 수: 1 (최근 30일)
Suardi Suhaimi
Suardi Suhaimi 2016년 5월 23일
댓글: Suardi Suhaimi 2016년 5월 24일
Hello, i'm trying to search for an area of a geometry which has the shape of approx. circle (as attached). I've tried using the imfill function but it doesn't work possibly because there are gaps due to the two electrodes. imclose also produce unsatisfactory results. How can I cut through the gap to form connected circle? Thanks in advance

채택된 답변

Alessandro Masullo
Alessandro Masullo 2016년 5월 23일
I don't know if this solution works for you, but I would use histeq to equalize the image first, then conv2 to convolve the image with a Gaussian (or imfilter), and finally edge with "canny" to detect the shape of the object. You'll have to play with the Gaussian and the canny thresholds, but you could get good results.
  댓글 수: 1
Suardi Suhaimi
Suardi Suhaimi 2016년 5월 24일
Thanks Allesandro for the reply.
I could see some decent results indeed. However, I still need to discard everything inside the circle (esp. the protruding features which are actually a pair of electrodes), only then can i find the area of the circle.
Thanks again.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2016년 5월 24일
imdilate and then imerode to get it to join the halves. Or if you have R2014b or later, you could get the coordinates of the boundary points and then use boundary() on them to find a hull that contains them.
  댓글 수: 1
Suardi Suhaimi
Suardi Suhaimi 2016년 5월 24일
Thanks Walter, As the matter of fact I do have 2014b. I will try it out & repost the results.

댓글을 달려면 로그인하십시오.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by