Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
ZWY
ZWY el 5 de Jun. de 2022
Respondida: Image Analyst el 5 de Jun. de 2022
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.

Respuestas (1)

Image Analyst
Image Analyst el 5 de Jun. de 2022
You can try movmean:
windowWidth = 7; % Whatever you want.
counts = movmean(counts, windowWidth);

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by