Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Ads

Discussion Groups

Discussion Groups | Matlab DSP | Entropy of image

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

Entropy of image - Prateek Shrivastava - Jun 18 18:26:00 2003



Hi all,

In the calculation of the entropy of an image,
ENTROPY = - SIGMA(p log p )
j j 2 j
how can we define the parameter 'probability' for an image?

Regards,

Prateek.






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

Re: Entropy of image - Aurio G. Tenório - Jun 22 12:59:00 2003

You can use instead of probability, the counting of each pixel, I mean, what you need is calculate the histogram of the image. Take a look in the code below where S is the histogram.
 
N=sum(sum(S)); 
if ((N>0) & (min(S(:))>=0))
   Snz=nonzeros(S);
   H=log2(N)-sum(Snz.*log2(Snz))/N;
else
   H=0;
endPrateek Shrivastava <p...@indiatimes.com> wrote:
Hi all,

In the calculation of the entropy of an image,
ENTROPY = - SIGMA(p log p )
j j 2 j
how can we define the parameter 'probability' for an image?

Regards,

Prateek.

_____________________________________
/groups.php3


-------------------------
Aurio Gonçalez Tenório
M. Sc. Student
Department of Communications - Decom
Faculty of Electrical and Computer Engineering - FEEC
State University of Campinas - UNICAMP, SP - Brazil
a...@decom.fee.unicamp.br



Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção contra spam.



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