You are here: Start » FIL.NET » Function Reference » Region » Region Features » FIL.RegionContours

FIL.RegionContours

Computes an array of closed paths corresponding to the contours of the input region.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void RegionContours
(
	FilNet.Region inRegion,
	FilNet.RegionContourMode inContourMode,
	FilNet.RegionConnectivity inRegionConnectivity,
	IList<FilNet.Path> outContours
)

Parameters

Name Type Range Default Description
inRegionFilNet.RegionInput region.
inContourModeFilNet.RegionContourMode
inRegionConnectivityFilNet.RegionConnectivityEightDirectionsRegion connectivity semantics. Default value: EightDirections.
outContoursSystem.Collections.Generic.IList<FilNet.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.

See also