From: jassem on 25 May 2010 05:34 i have an color image I and i would compute the men and the variance with matlab how i can do these.
From: ImageAnalyst on 25 May 2010 06:07 The mean *what* and the variance of *what*? Once you figure that out, there are mean(), var(), and std() functions.
From: Greg Heath on 25 May 2010 06:11 On May 25, 5:34 am, jassem <c2iis...(a)gmail.com> wrote: > i have an color image I and i would compute the men and the variance > with matlab > how i can do these. [m n] = size(image1) meanimage1 = mean(image1(:)) varimage1 = var(image1(:)) Hope this helps. Greg
From: ImageAnalyst on 25 May 2010 06:45 I think you mean [rows columns numberOfColorBands] = size(image1) ; with your formula, n returns the (number of color bands) * (the number of columns). Ad there are other things you can take the mean and variance of such as the mean of the L or V channel, the Hue channel, etc. Just depends on what you plan on doing with this information.
|
Pages: 1 Prev: Add a name to a block from GUI popupmenu Next: order in a gui program |