Retaining the largest blob in an image

Versione 1.0.0.0 (526 Byte) da Ani
'bwlargestblob' reads in a 2-d binary image and outputs a binary image, retaining only the largest b
2,7K download
Aggiornato 16 lug 2007

Nessuna licenza

'bwlargestblob' reads in a 2-d binary image and outputs a binary image, retaining only the largest blob.

Usage: [outim] = bwlargestblob(im,connectivity)

im - 2-d binary image
conenctivity - Accepts 4/8 connectivity
outim - Output binary image (with 1s and 0s)

Example:

im = imread('text.png');
outim = bwlargestblob(im,8);
figure;
subplot(1,2,1); imshow(im);
subplot(1,2,2); imshow(255*outim);

Cita come

Ani (2025). Retaining the largest blob in an image (https://it.mathworks.com/matlabcentral/fileexchange/15596-retaining-the-largest-blob-in-an-image), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R14SP1
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Image Processing Toolbox in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0