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

2 views (last 30 days)
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.

Answers (1)

Image Analyst
Image Analyst on 28 May 2017
Try the Color Thresholder app on the Apps tab of the tool ribbon.
  2 Comments
Elias Unk
Elias Unk on 29 May 2017
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 on 31 May 2017
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().

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!