tile#

rlemasklib.RLEMask.tile(num_h, num_w)[source]#

Tile the mask multiple times along the axes, analogous to np.tile.

This repeats the mask num_h times along the vertical axis and num_w times along the horizontal axis.

Parameters:
  • num_h (int) – the number of times to repeat the mask along the vertical axis

  • num_w (int) – the number of times to repeat the mask along the horizontal axis

Returns:

A new RLEMask object representing the tiled mask.

Return type:

RLEMask

Examples

Tile the mask 2x vertically and 3x horizontally:

.tile(2, 3) ==

See also

Not to be confused with repeat()