remove wanted portions in binary image
이전 댓글 표시
i wanted to extract only the white portion from the image
i get more than one region... i should get only one region.... please do reply.....
채택된 답변
추가 답변 (1개)
Jeremy Wurbs
2013년 11월 30일
1 개 추천
If you wish to remove small regions from the binary image itself, you could start by looking at morphological operations ( help bwmorph), specifically erode and dilate.
You could also just remove the small regions from your bounding box list, or just take the largest one. I.e. only take bounding boxes where boundingBox(3)*boundingBox(4) >= minSize.
카테고리
도움말 센터 및 File Exchange에서 Morphological Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!