__array__#

rlemasklib.RLEMask.__array__(dtype=None, copy=None)[source]#

Convert the RLEMask to a dense numpy array, used by numpy functions.

Returns:

A numpy array of type uint8 representing the mask with 0 and 1 values.

See also

to_array()