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!