Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Trace region boundaries in binary image

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). Returns `B`

,
a cell array of boundary pixel locations.

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

Was this topic helpful?