필터 지우기
필터 지우기

data compression LZ77 impelementation

조회 수: 4 (최근 30일)
EDEN
EDEN 2019년 3월 29일
댓글: Walter Roberson 2019년 3월 30일
Any one who can help me with the implementation of digtionary coding using LZ77 coding algorithm.
  댓글 수: 2
Simard Clauss
Simard Clauss 2019년 3월 30일
I work on projecto to program lz77 to compresse the signal 0010102102102124010102100. here so far what I did, but didn't work: Can you help me please
function [position, lenght, nextsymbol] = lz77(inputVar,windowSize,lookAheadWindowLen)
%Search Buffer
sbuffer = char();
%Look Ahead Buffer
labuffer = fread(read_file, '*char');
token_all= char();
searchWindowLen=18;
lookAheadWindowLen=9;
while lookAheadBuffer not end of {
get a reference (position ,length) to longest match;
if (length > 0)
output (position, length, nextsymbol);
shift the window length+1 positions along;
else {;
output (0, 0, first symbol in lookahead buffer);
shift the window 1 position ;long;
}
}
for i = 1:length(labuffer)
if(strcmpi(' ', labuffer(i)))
labuffer(i) = strrep(labuffer(i), ' ', replace_space);
end
end
end
Walter Roberson
Walter Roberson 2019년 3월 30일
in MATLAB {} is only used for indexing cell arrays and for creating cell arrays. MATLAB never uses {} for flow control.
It looks to me as if you are thinking in C.

댓글을 달려면 로그인하십시오.

답변 (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