Interpixel Redudancy with Huffman

7 Ansichten (letzte 30 Tage)
Hendra Napit
Hendra Napit am 31 Okt. 2011
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

Antworten (1)

Walter Roberson
Walter Roberson am 31 Okt. 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.

Kategorien

Mehr zu Denoising and Compression finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by