Interpixel Redudancy with Huffman
7 ビュー (過去 30 日間)
古いコメントを表示
I try to compress image aligned matches.tiff (558x558 uint8) I make codes in mfile
f = imread ('Matches_Aligned.tif');
%figure, imshow (f);
e = mat2lpc(f);
figure, imshow(mat2gray(e));
entropy(e)
c = mat2huff (e);
cr = imratio (f,c)
until entropy (e), I get ans = 0.9978
but then, when I compile next code, the next codes are
c = mathuff(e)
cr = imratio (f,c)
I get error warning like this
??? Undefined function or method 'huffman' for input arguments of type 'double'.
Error in ==> mat2huff at 59
map = huffman(double(h)); % Make Huffman code map
pliss hepl me,,how to solve this error?
thanks
0 件のコメント
回答 (1 件)
Walter Roberson
2011 年 10 月 31 日
There is no MATLAB routine named "huffman". The program must be expecting you to get the routine from some other source. You will have to read the installation instructions for the "mathuff" that you found (somewhere) to see what else you should have added and in what directories.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Denoising and Compression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!