How to apply morphological operations like clearing border and removing small objects using matlab for color image?

1 次查看(过去 30 天)
I have a color image obtained after using k-means cluster and I want to apply morphological operations like cleaning border,filling holes and remove small object using matlab but thsese operation works only on grayscale or binar image in matlab! Any suggestions please!

回答(1 个)

Image Analyst
Image Analyst 2018-8-16
Since you seem to have a masked image, since large parts are perfectly black, you must already have a binary image mask. So just use it on that mask before applying the mask to the color image.
  4 个评论
Braiki Marwa
Braiki Marwa 2018-8-21
编辑:Braiki Marwa 2018-8-21
In begin I have this image :
Then I applied k-means algorithm and I select this image as the suitable cluster:
After that, I want to select just the cell in the midst of the image and to extract the ocntour as the final step.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by