How to smooth a histogram using a Gaussian window of size m×1?
4 次查看(过去 30 天)
显示 更早的评论
Hi, i have extract the red channel of an image and here is the histogram of the image:
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 个评论
回答(1 个)
Image Analyst
2022-6-5
You can try movmean:
windowWidth = 7; % Whatever you want.
counts = movmean(counts, windowWidth);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!