You are here: Start » AVL.NET » AVL.RegionContours
Computes an array of closed paths corresponding to the contours of the input region.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void RegionContours ( AvlNet.Region inRegion, AvlNet.RegionContourMode inContourMode, AvlNet.RegionConnectivity inRegionConnectivity, IList<AvlNet.Path> outContours )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | AvlNet.Region | Input region. | |||
inContourMode | AvlNet.RegionContourMode | ||||
inRegionConnectivity | AvlNet.RegionConnectivity | EightDirections | Region connectivity semantics. Default value: EightDirections. | ||
outContours | System.Collections.Generic.IList<AvlNet.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.