Lempel - Ziv Decoder
Show older comments
After running Lempel-Ziv encoder, I need to decode it back . For example, We have a sequence which is 0011 . The last digit of it ( 1 ) shows first element of codebook( codebook is just 0,1 encoder constructs rest of it ) ( it should show 0 ) The other first three digits which are 001 should show decimal representation as 1 and that 1 should show the codebooks 1st element which is again 0 . ''Ps : for instance if first three digit is 111 then it must show the 8th element of codebook .'' As a result for this example 0011 should decoded as 00 . I can not turn back to real zeros and ones . As summary I can not decode what I encoded while using lempel ziv .
Answers (1)
Abhishek Ballaney
on 22 Feb 2018
1 vote
https://in.mathworks.com/matlabcentral/fileexchange/15428-lzw-compression-decompression
Categories
Find more on Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!