Technical Discussions related to Image Processing (image coding, compression, digital effects, mpeg, etc)
|
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. |
|
|
|
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 |