How to remove the unwanted shapes on the binary image edges?

2 次查看(过去 30 天)
Kindly find the original image and the binary one attached.
I have marked the 2 spots i'd like to remove as positive skin issue identification(have them black in the binary pic),kindly note that i need the method to be : 1-automated 2-doesn't affect my accuracy for positive edge identification 3-works with similar pictures not only this one.

回答(1 个)

Image Analyst
Image Analyst 2017-5-28
Try the Color Thresholder app on the Apps tab of the tool ribbon.
  2 个评论
Elias Unk
Elias Unk 2017-5-29
That method,in case would only allow me to modify to this picture but as my main thread suggested i need more of a standard way i can apply to any pic having the same issue.
Image Analyst
Image Analyst 2017-5-31
I don't know why you say that. Of course you can use the same concept to make the thresholds adjustable if you come up with some algorithm for determining the thresholds automatically. See color segmentation demos in My file Exchange
Anyway, if your criteria for rejection is that it touches the edge of the image, use imclearborder().

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by