Find Edge Continuity in Image

조회 수: 5 (최근 30일)
Ahmad Alias
Ahmad Alias 2019년 2월 18일
댓글: Ahmad Alias 2019년 2월 21일
I have captured a fast moving event with non-uniform background illumination, shown below. As a result, the background subtraction and its subsequent thresholding (together with localcontrast and imclearborder functions) gave me a discontinuity in the pixel values (I am just interested in the outer border and use imfill to paint the inner region later). That in return affected the accuracy of the edge detection.
Therefore, I have been using those morphological operators (imopen, imclose. imdilate, imerode, bwareaopen) to correct the image prior to performing the edge detection but that has been profoundly influenced by the 'unwanted' pixels around the image (circled as red). If these 'spots' can be masked to be 0 in their pixel value, I presume the morphological operations will just be fine with what I need to proceed.
I am wondering if anyone here has a quick-fix to resolve the issue I have?
I thank you in advance,
Ahmad
ThresholdedImage.GIF

채택된 답변

Image Analyst
Image Analyst 2019년 2월 18일
I'd try imclose() to connect blobs. Then use bwareafilt() to throw out small blobs.
  댓글 수: 1
Ahmad Alias
Ahmad Alias 2019년 2월 21일
Thank you for a swift resolution the syntax gave me what I need.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by