how to find the largest region in binary image and replace all other region with black?

14 Ansichten (letzte 30 Tage)
I have a binary image (attached as 'randomm.jpg') that consists of several shapes.
How to extract the shape with most pixels (white) and replace other figures with black?
Thank you!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 6 Mai 2017

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by