Run Length Encoding (2-D)

Respuestas (1)

Walter Roberson
Walter Roberson el 24 de Mzo. de 2014

0 votos

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 comentarios

Jitesh Bhanushali
Jitesh Bhanushali el 24 de Mzo. de 2014
sir what is command for rearranging matrix into vector?
Walter Roberson
Walter Roberson el 24 de Mzo. de 2014
Editada: Walter Roberson el 24 de Mzo. de 2014
One of them is reshape(). The zig-zag approach would not use reshape() though.

Iniciar sesión para comentar.

Preguntada:

el 24 de Mzo. de 2014

Comentada:

el 24 de Mzo. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by