AUTOMATIC THRESHOLDING
无许可证
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.
引用格式
Ivan Dario Castano Perez (2026). AUTOMATIC THRESHOLDING (https://ww2.mathworks.cn/matlabcentral/fileexchange/7665-automatic-thresholding), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Image Thresholding >
标签
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
