AUTOMATIC THRESHOLDING

This function implementos the Gaussian Serach Algorithm for thresholding.
4.4K Downloads
Updated 16 May 2005

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
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0