DSPRelated.com
Forums

Entropy of an Image in MATLAB

Started by jugs...@gmail.com July 26, 2010
Hello,

I have just taken up a project on Medical Image data compression and as a start i wanted to find entropy of an image in MATLAB...I have calculated dimensions of the image, ie the matrix size, but am unable to get the loop structure to find entropy of the rows and columns..using probability formula..

Can someone help me out?

Thanks!
Are you interested in finding the entropy of the entire image or do you want to implement the algorithm for yourself? MATLAB has a function you can use: E = entropy(I) where I is a grayscale image...Khalid Gidaya

--- In i..., jugs.17@... wrote:
>
> Hello,
>
> I have just taken up a project on Medical Image data compression and as a start i wanted to find entropy of an image in MATLAB...I have calculated dimensions of the image, ie the matrix size, but am unable to get the loop structure to find entropy of the rows and columns..using probability formula..
>
> Can someone help me out?
>
> Thanks!
>