How to compare normal distribution value of one RGB image with another?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (2)
Image Analyst
am 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 look at the color frequency image: http://www.mathworks.com/matlabcentral/fileexchange/28164-color-frequency-image
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.
0 Kommentare
Wayne King
am 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
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!