필터 지우기
필터 지우기

Remove unwanted regions in binary image

조회 수: 1 (최근 30일)
Syed Haider
Syed Haider 2018년 1월 18일
답변: Image Analyst 2018년 1월 18일
I have the following input image.
I want to remove the unwanted regions highlighted with red ellipses. This binary image can be tilted at any angle. Hence, counting the white pixels in each row and applying thresholding didn't work for tilted image.
After removing unwanted regions, I want to reduce the thickness of this rectangle to single pixel thickness. I want to only consider the black pixels that are next to the white pixels and remove the outer black pixels. I have tried thin and skel morphological operations but didn't work for me.
Thanks in advance,
Syed

채택된 답변

Image Analyst
Image Analyst 2018년 1월 18일
Use bwconvhull().

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by