retrieving image after encoding
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2012 年 12 月 26 日
"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 件のコメント
Walter Roberson
2012 年 12 月 27 日
Each element of the output represents one bit. The original data was 8 bits per element.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Large Files and Big Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!