Retaining the largest blob in an image
Sin licencia
'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);
Citar como
Ani (2024). Retaining the largest blob in an image (https://www.mathworks.com/matlabcentral/fileexchange/15596-retaining-the-largest-blob-in-an-image), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |