You are here: Start » AVL.NET » AVL.RegionContours(AvlNet.Region, AvlNet.RegionContourMode, AvlNet.RegionConnectivity, AvlNet.Path[])
AVL.RegionContours(AvlNet.Region, AvlNet.RegionContourMode, AvlNet.RegionConnectivity, AvlNet.Path[])
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void RegionContours( AvlNet.Region inRegion, AvlNet.RegionContourMode inContourMode, AvlNet.RegionConnectivity inRegionConnectivity, out AvlNet.Path[] outContours )
Parameters
- inRegion
- Type: AvlNet.Region
- inContourMode
- Type: AvlNet.RegionContourMode
- inRegionConnectivity
- Type: AvlNet.RegionConnectivity
- outContours
- Type: 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.
Examples
![]() |
![]() |
The computed outContours array drawn onto an empty image.


