how to apply morphological operators to remove isolated pixels from conour

5 次查看(过去 30 天)
Hello, I have a binary image in which the contour pixels are white and the remainder is black. The problem is in some cases, there are isolated pixels which have a single neighbor. I want to remove these pixels by using the mophological operators. Any help would be appreciated!
thanks

回答(1 个)

Image Analyst
Image Analyst 2017-2-6
Try bwareaopen(), or bwareafilt().

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by