how to use run length encoding in 2-dimensional data
6 views (last 30 days)
Show older comments
I have been using code for the code for the ecg compression from the following link http://www.mathworks.com/matlabcentral/fileexchange/49712-ecg-compression-based-on-dct-and-rle
but in this code for inverse run length coding 1-dimensional signal but i needed that for the 2-dimensional inverse run length encoding so pls kindly help me out of this as soon as possible.
0 Comments
Answers (2)
Walter Roberson
on 21 Apr 2016
inverse run-length the 1D encoding, and reshape() the result to be 2D .
0 Comments
Sharang Sabherwal
on 21 Apr 2016
1 Comment
Walter Roberson
on 21 Apr 2016
Well, where did you find your 2D RLE code? There are multiple ways of doing 2D RLE.
The easiest way to do 2D RLE encoding is to take the input signal, reshape it into a vector, and do 1D RLE encoding on the vector, giving an output. Then afterwards, do inverse 1D RLE on that output, giving a 1D vector, which you then reshape() to be a 2D array.
See Also
Categories
Find more on Denoising and Compression 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!