フィルターのクリア

How to filter an histogram with gaussian low pass filter ?

7 ビュー (過去 30 日間)
MMSAAH
MMSAAH 2017 年 12 月 18 日
コメント済み: Image Analyst 2017 年 12 月 20 日
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 件のコメント
MMSAAH
MMSAAH 2017 年 12 月 19 日
Thank you for your reply. I want to smooth out the histogram of the original image (which is one slice MR image ) in order to smooth the most frequent ripples of the histogram and to distinguish the major peaks and valleys in the original histogram. So that convoluate the original histogram with the Low Pass Gaussian Filter will smooth the original histogram.
Jan
Jan 2017 年 12 月 19 日
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?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2017 年 12 月 19 日
Just take the histogram counts and use conv() to smooth
windowSize = 15; % Adjust to control level of smoothing.
smoothedCounts = conv(counts(:), ones(windowSize, 1)/windowSize, 'same');
  2 件のコメント
MMSAAH
MMSAAH 2017 年 12 月 20 日
Please how to fix the windowSize ? Is it an arbitrary choice ? Because when changing value of windowSize, the curve of the histogram change
Image Analyst
Image Analyst 2017 年 12 月 20 日
What does "fix" mean. It IS a constant, "fixed" value, so do you have a different definition? I picked 15 arbitrarily, but like I said, you can pick different values to make the histogram smoother or less smooth (more like the original). There is not one, "right" value. It's totally up to you how much you want to smooth it.
Perhaps you'd like to use the MATLAB smoothed histogram that you get with fitdist(), if you have the Statistics and Machine Learning Toolbox.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by