Run Length Encoding (2-D)
1 次查看(过去 30 天)
显示 更早的评论
How do Run Length Encoding works in Matrix (2-D)??
0 个评论
回答(1 个)
Walter Roberson
2014-3-24
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 个评论
Walter Roberson
2014-3-24
编辑:Walter Roberson
2014-3-24
One of them is reshape(). The zig-zag approach would not use reshape() though.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Denoising and Compression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!