Mean,std dev and var of an image

how to find the mean,standard deviation and variance of an image??

i have tried the following code in MATLAB. can i get to know whether it's correct or not??

r_ch=file😀,:,1);
g_ch=file😀,:,2);
b_ch=file😀,:,3);
r_m=mean(mean(r_ch));
g_m=mean(mean(g_ch));
b_m=mean(mean(b_ch));
r_v=var(var(double(r_ch)));
g_v=var(var(double(g_ch)));
b_v=var(var(double(b_ch)));
r_s=std(std(double(r_ch)));
g_s=std(std(double(g_ch)));
b_s=std(std(double(b_ch)));

Replies

You are reading an archived discussion.

Related Posts

can anyone share their ideas about some projects that can help solve some of our environmental issues which solutions can be formulated with the aid of concepts of electronics and...
Hello friends,I am prabhath kesav...an engineer from kerala...
Hi all, I need to know how can we accept input through a microphone using java? I want to record sound using it and then process it for some other...
I have learned that you can add acrylic regrind to ABS with success. What other materials can you add acrylic to? High Impact Polystyrene? Polycarbonate? Thanks Bergg😕
Ahem! You sure should have atleast once encountered with the Carlie Chaplin of CE.He is mostly seen guiding newbies, spotting spammers , making tense situations lighter with his one-liners. Though...