Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Jaanu
Jaanu le 11 Sep 2011
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.

Réponses (2)

Image Analyst
Image Analyst le 14 Sep 2011
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 le 11 Sep 2011
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 commentaire
Jaanu
Jaanu le 14 Sep 2011
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.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by