CrazyEngineers
  • Mean,std dev and var of an image

    shruthig_119

    shruthig_119

    @shruthig-119-qIm5PK
    Updated: Oct 21, 2024
    Views: 1.3K
    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)));
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register