How to filter an histogram with gaussian low pass filter ?
Show older comments
I have MR slice of type double, I want to filter its histogram to smooth it using Gaussian Low Pass Filter. I know that the (imgaussfilt ) filter the image with a Gaussian filter but we need the standard deviation. Could any one tell me how to fix the value of the standart deviation ? is it the (std2) of the whole image ? Otherwise, if you have you any other prepositions, I will be greatful.
4 Comments
Jan
on 18 Dec 2017
The histogram is a 1D function, while imgaussfilt operates on 2D. What are the inputs and which output do you want?
Image Analyst
on 18 Dec 2017
I'm also not sure if you want to filter the image itself, or its histogram. std2() gives the standard deviation of the entire image. stdfilt() gives the standard deviation in a moving window and thus returns an image. imgaussfilt() can filter both 2-d images and 1-d signals (such as a histogram). Why do you think you want to smooth out the histogram? Or is it the actual image , rather than the histogram of the image, that you want to smooth out (blur)?
MMSAAH
on 19 Dec 2017
Jan
on 19 Dec 2017
What is the final result? A modified histogram or do you want to modify the image, such that the histogram of the modified image is smoother?
Accepted Answer
More Answers (0)
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!