retrieving image after encoding
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
my code is
A=imread('imagcp.bmp');
A=A(:);
YourVector=double(A);
symbols = unique(YourVector(:));
counts = hist(YourVector(:), symbols);
p = double(counts) ./ sum(counts)
[dict,avglen]=huffmandict(symbols,p);
comp=huffmanenco(A,dict);
I want to dispaly image after encoding,plz help
0 commentaires
Réponse acceptée
Walter Roberson
le 26 Déc 2012
"comp" is not something that can be displayed. You need to do a huffman decoding of "comp" with "dict" in order to restore the image.
7 commentaires
Walter Roberson
le 27 Déc 2012
Each element of the output represents one bit. The original data was 8 bits per element.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Large Files and Big Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!