partie 2 :DeCompression :

Décodage Huffman

 

function coderle=traitement_huffman_inverse(code_huff,dico)

%Retourne le coderle de l'image compressée à partir du code huffman et le

% dictionnaire

k=1;

for i=1:length(code_huff)

   for j=1:length(dico)

     if strcmp(dico{2,j},code_huff{i})

      coderle{k}=dico{1,j} ;    

      k=k+1;

     end % end if

   end % end for

end % end for