Sign in

username:

password:



Not a member?

Search imagedsp



Search tips

Subscribe to imagedsp



imagedsp by Keywords

Error Concealment | JPEG | MPEG-4 | Wavelet | YUV


Discussion Groups

Technical Discussions related to Image Processing (image coding, compression, digital effects, mpeg, etc)

  

Post a new Thread

Color Histogram - Swetha - Oct 22 17:30:00 2002



Hai,

Is there any build-in function for Histogram for color images.? I
want histogram of color for a colour image. How can I do that.?

Thanks in advance.

Swetha.





(You need to be a member of imagedsp -- send a blank email to imagedsp-subscribe@yahoogroups.com )

Re: Color Histogram - Gopalakrishna Holla M.G - Oct 23 4:20:00 2002

Hi,
If you are using Matalab then hist(RGB) will calculate the histogram of
individual components.Where RGB is 3 coulumn vector of R,G and B;
Other way is divide the RGB space to cubes and calculte the hist
taking each cube as bin.For this you can do
suppose each component is 8 bits(A is image values [0 255])
G=A(:,:,1)+A(:,:,2)*2^(8)+A(:,:,3)*2^(16);%shift by 8 bits & 16 bits

hist(G(:),10)

will divide the cube into 10 bins

regs
gopal
On Tue, 22 Oct 2002, Swetha wrote:

> Hai,
>
> Is there any build-in function for Histogram for color images.? I
> want histogram of color for a colour image. How can I do that.?
>
> Thanks in advance.
>
> Swetha. >
>
> _____________________________________
ROOM NO B101
HALL IV
IIT KANPUR
PIN 208016
Phone:0512+597314




(You need to be a member of imagedsp -- send a blank email to imagedsp-subscribe@yahoogroups.com )