How do I remove blobs connected to border?
Show older comments
I want to remove objects connected to the border of AOI (Area of interest). I'm not sure what I should do to solve this problem. I'm aware of the imclearborder() function, but this only removes objects along the border of the image itself. I want to remove the red rice shown below:

Any tips or advice would greately appreciated. Thank you!
Accepted Answer
More Answers (1)
Image Analyst
on 15 Nov 2022
0 votes
Let me know if you can't figure it out and I'll give you the solution tomorrow.
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

