Interpixel Redudancy with Huffman
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Walter Roberson
el 31 de Oct. de 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 comentarios
Ver también
Categorías
Más información sobre Denoising and Compression en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!