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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by