Run Length Encoding (2-D)

回答(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.

Community Treasure Hunt

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

Start Hunting!

Translated by