답변 (1개)

Walter Roberson
Walter Roberson 2014년 3월 24일

0 개 추천

Rearrange the matrix into a vector and do RLE on that.
For images you might wish to investigate zig-zag rearrangements of the matrix into a vector, as that apparently gets better RLE for blocks of the same color.

댓글 수: 3

Jitesh Bhanushali
Jitesh Bhanushali 2014년 3월 24일
sir what is command for rearranging matrix into vector?
Walter Roberson
Walter Roberson 2014년 3월 24일
편집: Walter Roberson 2014년 3월 24일
One of them is reshape(). The zig-zag approach would not use reshape() though.

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

질문:

2014년 3월 24일

댓글:

2014년 3월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by