Interpixel Redudancy with Huffman
8 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Walter Roberson
on 31 Oct 2011
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 Comments
See Also
Categories
Find more on Denoising and Compression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!