Meanthresh local image thresholding
Versione 1.0.0.0 (4,31 KB) da
Jan Motl
Meanthresh performs a simple local image thresholding.
The algorithm calculates the mean value in a window and if the pixel's intensity is above the mean the pixel is set to white colour, otherwise the pixel is set to black colour. To increase the resistance to noise the threshold value can be shifted by a constant c. The pseudocode:
if (pixel >= mean-c)
pixel = 1;
else
pixel = 0;
end
Cita come
Jan Motl (2024). Meanthresh local image thresholding (https://www.mathworks.com/matlabcentral/fileexchange/41787-meanthresh-local-image-thresholding), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R13
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion > Image Type Conversion >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Image Thresholding >
Scopri di più su Image Type Conversion in Help Center e MATLAB Answers
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 |