Run Length Encoding (2-D)
Show older comments
How do Run Length Encoding works in Matrix (2-D)??
Answers (1)
Walter Roberson
on 24 Mar 2014
0 votes
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 Comments
Jitesh Bhanushali
on 24 Mar 2014
Walter Roberson
on 24 Mar 2014
Edited: Walter Roberson
on 24 Mar 2014
One of them is reshape(). The zig-zag approach would not use reshape() though.
Categories
Find more on Image Arithmetic 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!