Skip to contents

Object boundaries of a mask

Usage

at_mask_boundary(mask, width = 1L, call = rlang::caller_env())

Arguments

mask

An annot_mask.

width

Integer boundary thickness in pixels. Default 1.

call

The calling environment, for error reporting.

Value

A logical matrix marking boundary pixels (where a 4-neighbour has a different value).