필터 지우기
필터 지우기

How to compress an image?

조회 수: 1 (최근 30일)
Moon Shadow
Moon Shadow 2014년 3월 10일
I'm trying to Compress an image by using Run Length coding and Huffman coding but I get errors Please would you like to help by showing me the correct codes
This my codes:
EDU>> D=imread('M.png');
F=im2double(D);
symbols = unique(F(:));
counts = hist(F(:), symbols);
p = double(counts) ./ sum(counts);
r(p:q) = [y(1:i, j); eob];
count= count + i + 1; %and add to output vactor
F((count+1):end) = []; %delete unused portion of B
y.size=uint16([xm xn]);
y.numblocks = uint16(xb);
y.quality = uint16(quality * 100);
y.huffman = mat2huff(B)
Warning: Colon operands must be real scalars. Undefined function 'y' for input arguments of type 'double'.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by