Back to FabImage Studio website

You are here: Start » Filter Reference » Region » Region Features » RegionContours

RegionContours


Module: FoundationBasic

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

Name Type Description
Input value inRegion Region Input region
Input value inContourMode RegionContourMode
Input value inRegionConnectivity RegionConnectivity Region connectivity semantics
Output value outContours PathArray

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

Description of usage of this filter can be found in examples and tutorial: Rubber Ring, Rubber Ring (Simple).

The computed outContours array drawn onto an empty image.

Complexity Level

This filter is available on Advanced Complexity Level.

See Also