complement#

rlemasklib.RLEMask.complement(inplace=False)[source]#

Compute the complement of an RLE mask.

Parameters:

inplace (bool) – whether to perform the operation in place or to return a new object

Returns:

The RLEMask object representing the complement of the mask (self if inplace=True)

Return type:

RLEMask

Examples

~ ==

See also

__invert__(), which provides the complement as the ~ operator.