how to use run length encoding in 2-dimensional data

조회 수: 10 (최근 30일)
Sharang Sabherwal
Sharang Sabherwal 2016년 4월 21일
댓글: Walter Roberson 2016년 4월 21일
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.

답변 (2개)

Walter Roberson
Walter Roberson 2016년 4월 21일
inverse run-length the 1D encoding, and reshape() the result to be 2D .

Sharang Sabherwal
Sharang Sabherwal 2016년 4월 21일
Sir i want to inverse run length the 2-d encoding
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 4월 21일
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.

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

카테고리

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