zeros_like#

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

Create a new RLE mask of zeros 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 zeros with the same shape as the input

mask.

Return type:

RLEMask