Calcul de gains d'information

Fermé
marwaza Messages postés 1 Date d'inscription vendredi 6 février 2015 Statut Membre Dernière intervention 20 mars 2015 - Modifié par marwaza le 20/03/2015 à 12:39
bonsoir, je fais la décomposition d'une image avec ondelette puis je calcule l'entropie comme ça :
Code :

img=imread('lena.jpg');
img=im2double(rgb2gray(img));
figure;imshow(img);
[ap,dh,dv,dd]=dwt2(img,'db2');
figure;imshow([ap/2,dh*8;dv*8,dd*8]);
h=hist([ap,dh,dv,dd]);
p=h/sum(h);
entropy=-sum(p.*log2(p))

Mais svp comment ensuite calculer le gain d'information ?
Merci d'avance de votre réponse