ones_like#

static rlemasklib.RLEMask.ones_like(mask)[source]#

Create a new RLE mask of ones with the same shape as another mask.

Parameters:

mask – any other object with a mask.shape[0] and mask.shape[1] (e.g., RLEMask, NumPy array)

Returns:

A new RLEMask object representing a mask of ones with the same shape as the input mask.

Return type:

RLEMask