From: shilpa khinvasara on
Sir,
Is the following code correct to find the mean,to count the number of times a color
occurs in an image

A1=mean(q);
figure;
hist(A1);
or do i have to use conv using 5*5 or 3* 3 mask and do the padding and then find mean
From: ImageAnalyst on
On Jul 30, 2:56 am, "shilpa khinvasara" <s...(a)gamil.com> wrote:
> Sir,
> Is the following code correct to find the mean,to count the number of times a color
> occurs in an image
-------------------------------------------------------------------

To count the number of times a color occurs in an image, you'd need to
calculate the "color frequency image" which has a MATLAB
implementation here:
http://www.mathworks.com/matlabcentral/fileexchange/28164-color-frequency-image