How to smooth a histogram using a Gaussian window of size m×1?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, i have extract the red channel of an image and here is the histogram of the image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1022695/image.png)
How can I smooth the histogram using a Gaussian window of size m×1?
(FYI, a threshold value will then be formulated using this smoothed histogram.)
Thanks in advance.
0 Kommentare
Antworten (1)
Image Analyst
am 5 Jun. 2022
You can try movmean:
windowWidth = 7; % Whatever you want.
counts = movmean(counts, windowWidth);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!