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!