# bwboundaries

Trace region boundaries in binary image

## Syntax

## Description

traces the
exterior boundaries of objects, as well as boundaries of
holes inside these objects, in the binary image
`B`

= bwboundaries(`BW`

)`BW`

.
`bwboundaries`

also descends into
the outermost objects (parents) and traces their children
(objects completely enclosed by the parents). The function
returns `B`

, a cell array of boundary
pixel locations.

## Examples

## Input Arguments

## Output Arguments

## Algorithms

The `bwboundaries`

function implements the Moore-Neighbor tracing algorithm
modified by Jacob's stopping criteria. This function is based on the
`boundaries`

function presented in the
first edition of *Digital Image Processing Using
MATLAB*
[1].

## References

[1] Gonzalez, R. C., R. E. Woods, and S.
L. Eddins, *Digital Image Processing Using
MATLAB*, New Jersey, Pearson Prentice Hall,
2004.

## Extended Capabilities

## Version History

**Introduced before R2006a**