フィルターのクリア

How to compare normal distribution value of one RGB image with another?

1 回表示 (過去 30 日間)
Jaanu
Jaanu 2011 年 9 月 11 日
I am very new person to matlab. For my Msc project, I calculated normal distribution value of an RGB image.Now i need to compare this normal distribution value with another normal distribution value of a RGB image.
I use the following coding to calculate Normal distribution.
x=imread('face7.jpg');
y=x(:);
z=double(y);
mu=mean(z);
sigma=std2(z);
p=normpdf(z, mu, sigma);
w=norminv(p,mu,sigma);
Plz help me it's urgent.

回答 (2 件)

Image Analyst
Image Analyst 2011 年 9 月 14 日
Who says that the three histograms (red, green, and blue) of a face image are in any way, shape, or form Gaussian? And if it is, what is the chance that a difference face image is? Maybe you should try a different/better image comparison method, something like subtraction or PSNR for super simple but not-too-good ways, or more sophisticated methods like in sections 12, 13, and 14 here: http://iris.usc.edu/Vision-Notes/bibliography/contents.html.
Or just create a feature vector made up of a whole bunch of measurements like mean colors, spread in colors, number of edges, etc. and compare feature vectors.

Wayne King
Wayne King 2011 年 9 月 11 日
Hi, I'm not sure what your ultimate goal is, but you can use normfit() from the Statistics Toolbox to obtain estimates for mu, sigma, and confidence intervals for these parameters. I'm assuming you have already determined that these data are well-approximated by a normal distribution. You may want to assess that first with something like normplot().
Of course, if you are just interested in a hypothesis test about the two distributions, there is kstest2 and ttest2.
Wayne
  1 件のコメント
Jaanu
Jaanu 2011 年 9 月 14 日
Thanks Wayne,
need to check that both normal distribution values are same or if they are different, how are they varying? can we calculate that varying value.

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

カテゴリ

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