Binary Image Cleaning Based on Area Size
Nessuna licenza
function sizethre(im,s,mode);
input: im=binary image matrix. 0 is background. 1 is foreground
input: s=pixel number
mode: string varable. It should either be 'up' or 'down'
when mode='up', area LARGER than s is DELETED
when mode='down', area SMALLER than s is DELETED
output: imout is an image matrix. size(imout)=size(im)
foreground whose area is larger (or smaller, depending on 'mode') is
preserved; otherwise, it is deleted (marked as background);
Zhe Wu 01-08-2002 @ University of Rochester
Cita come
Zhe Wu (2025). Binary Image Cleaning Based on Area Size (https://it.mathworks.com/matlabcentral/fileexchange/4140-binary-image-cleaning-based-on-area-size), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Morphological Operations >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
