how to extract a region of white pixel bounded by black pixel from white background

6 views (last 30 days)

Accepted Answer

Image Analyst
Image Analyst on 10 Jun 2016
It looks like a binary image. If it is, call imclearborder
binaryImage = imclearborder(binaryImage);
This will get rid of all white/1/true regions touching the edge of the image.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!