Negentropy?

6 visualizzazioni (ultimi 30 giorni)
DIlshan Godaliyadda
DIlshan Godaliyadda il 14 Mar 2012
Would anyone happen to have a Matlab/C Script to calculate Negentropy of an image?
Thank you!

Risposte (2)

David Young
David Young il 14 Mar 2012
ne = 0.5*log(2*pi*exp(1)*var(Image(:))) - entropy(Image)
- though you might need to worry about the image mean. The formula above is based on the Wikipedia articles on negentropy and the Normal distribution, but if the image mean is non-zero it doesn't seem to work. Perhaps someone else can comment and shed more light on this.

Aaditya Kalsi
Aaditya Kalsi il 1 Apr 2012
I think:
Image = Image - mean(Image(:));
should fix it.

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by