Histogram Gaussian Smooth
No License
This function implements the gaussian smooth for an histogram an then it can be used to find the thershold. It uses the COUNTS variable that isreturned by the imhist funcion an w is the size of the window that you want to use. It has to be a odd number. if not, the funcion will not run properly.
Typical application:
I=imread('blood1','tiff');
[COUNTS,x]=imhist(I);
COUNTSn=suavgausiano(COUNTS,3);
Where COUNTSn is the new COUNTS variable that is smoothed using the suavgausiano function with a window of size 3. 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. I hope this code can help you.
Cite As
Ivan Dario Castano Perez (2024). Histogram Gaussian Smooth (https://www.mathworks.com/matlabcentral/fileexchange/7556-histogram-gaussian-smooth), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots > Histograms >
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Image Category Classification >
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 |