contours#

rlemasklib.RLEMask.contours()[source]#

An RLE consisting of those foreground pixels that have at least one background neighbor.

4-neighbourhood is used.

Examples

.contours() ==

See also

perimeter() for the contour length.