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. |
|
Color Histogram
Started by ●October 22, 2002
Reply by ●October 23, 20022002-10-23
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. > > > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: > > To Post: > > To Leave: > > Archives: http://www.yahoogroups.com/group/imagedsp > > More Groups: http://www.dsprelated.com > > ">http://docs.yahoo.com/info/terms/ ROOM NO B101 HALL IV IIT KANPUR PIN 208016 Phone:0512+597314 |