AUTOMATIC THRESHOLDING
No License
This Function implements the Gausian Search Algorithm for detect the best thershold in image segmentation. v is the size of the window, and p is the thershold that the algorithm serchs. COUNTS is the COUNTS variable hat is returnen by the imhist() funcition. The umbral is the Thershold needed for segmenting an image using the Gausian Search Algorithm.
To use this Function you must gurantee thar there are only tow global maximum values in COUNTS, and that those correspond with the maximums of the both lobules of the histogram.Typical application:
I=imread('blood1','tiff');
[COUNTS,x]=imhist(I);
umbral=suavgausiana(COUNTS,3,5);
Guasian Search function with a window of size 3, and a throshold of rise of 5.To run this function you wont need the Image Processing Toolbox, but you'll need it when you want to read the image and try to get its histogram.
Finally, excuse me for my English, I'm learning. I hope you understand something, and that this code help you.
Cite As
Ivan Dario Castano Perez (2024). AUTOMATIC THRESHOLDING (https://www.mathworks.com/matlabcentral/fileexchange/7665-automatic-thresholding), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Image Thresholding >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |