Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Features » RegionContours
RegionContours
Header: | AVL.h |
---|---|
Namespace: | avl |
Computes an array of closed paths corresponding to the contours of the input region.
Syntax
C++
C#
void avl::RegionContours ( const avl::Region& inRegion, const avl::RegionContourMode::Type inContourMode, avl::RegionConnectivity::Type inRegionConnectivity, atl::Array<avl::Path>& outContours )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inRegion | const Region& | Input region | ||
inContourMode | const RegionContourMode::Type | |||
inRegionConnectivity | RegionConnectivity::Type | EightDirections | Region connectivity semantics | |
outContours | Array<Path>& |
Description
The operation forms an array of paths that, depending on the value of the inContourMode parameter:
- Pass through the centers of boundary pixels of the region, if inContourMode is set to PixelCenters
- Run along the edges of boundary pixels of the region, if inContourMode is set to PixelEdges
To compute the approximation of the region perimeter length, one can use RegionPerimeterLength filter.
Examples
See Also
- RegionBoundaries – Removes interior pixels from a region.
- RegionPerimeterLength – Computes the length of the input region perimeter.