remove connected small objects in image

Hello every one
I had a code that results me this result
it is some how acceptable in bw but in rgb
I need only the tongue for AI processing
how to remove these little objects that connected to my image

 Accepted Answer

Look at imopen. This might be an easy way to treat this particular case.

1 Comment

it worked but with mask not strel
thanks for advise

Sign in to comment.

More Answers (1)

You could try activecontour(). See attached demo.

Community Treasure Hunt

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

Start Hunting!