Run Length Encoding (2-D)

2 ビュー (過去 30 日間)
Jitesh Bhanushali
Jitesh Bhanushali 2014 年 3 月 24 日
コメント済み: Sagar Damle 2014 年 3 月 24 日
How do Run Length Encoding works in Matrix (2-D)??

回答 (1 件)

Walter Roberson
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
Walter Roberson 2014 年 3 月 24 日
編集済み: Walter Roberson 2014 年 3 月 24 日
One of them is reshape(). The zig-zag approach would not use reshape() though.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by