__isub__#

rlemasklib.RLEMask.__isub__(other)[source]#

Compute the difference with another RLEMask in place.

Parameters:

other (RLEMask) – the other RLEMask

Returns:

Self

Return type:

RLEMask

Examples

>>> rle1 = RLEMask(np.eye(3))
>>> rle2 = RLEMask(np.eye(3)[::-1])
>>> rle1 -= rle2
>>> np.array(rle1)
array([[1, 0, 0],
       [0, 0, 0],
       [0, 0, 1]], dtype=uint8)