FUNCTION REFERENCE
bwperim
Find foreground pixels adjacent to background.
Find foreground pixels adjacent to background.
Syntax
BW2 = bwperim(BW, conn)conn defaults to 4, or may be 8. Outside the image is background. Numeric nonzero pixels are foreground. Returns logical with the input dimensions.
Example
bwperim(true(3))Differences from MATLAB: 2-D only; no interactive display form.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.