How to smooth a histogram using a Gaussian window of size m×1?

조회 수: 3 (최근 30일)
ZWY
ZWY 2022년 6월 5일
답변: Image Analyst 2022년 6월 5일
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.

답변 (1개)

Image Analyst
Image Analyst 2022년 6월 5일
You can try movmean:
windowWidth = 7; % Whatever you want.
counts = movmean(counts, windowWidth);

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by