what will be the output of the following code for JPEG image compression

3 visualizaciones (últimos 30 días)
thank you
but there is another problem in the coding for jpeg image compression.
r(p:q) = [y(1:i, j); eob]; %truncate trailing zeros, and add EOB,
count= count + i + 1; %and add to output vactor
r((count+1):end) = []; %delete unused portion of r
y.size=uint16([xm xn]);
y.numblocks = uint16(xb);
y.quality = uint16(quality * 100);
y.huffman = mat2huff(r);
end
the error is :-
"Error in ==> Untitled
y.huffman = mat2huff(r);"
reference:-digital image processing using matlab,
author :-Rafael C. Gonzalez etc
chap:-jpeg compression

Respuestas (1)

Walter Roberson
Walter Roberson el 10 de Mzo. de 2011
You did not mention what the error is.
mat2huff is not a Mathworks routine. It appears you can get it here

Categorías

Más información sobre Denoising and Compression en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by