You are here: Start » AVL.NET » AVL.ClassifyRegions(AvlNet.Region[], AvlNet.RegionFeature, float?, float?, AvlNet.Region[], AvlNet.Region[], AvlNet.Region[], AvlNet.Region[], float[])

AVL.ClassifyRegions(AvlNet.Region[], AvlNet.RegionFeature, float?, float?, AvlNet.Region[], AvlNet.Region[], AvlNet.Region[], AvlNet.Region[], float[])

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void ClassifyRegions(
	AvlNet.Region[] inRegions,
	AvlNet.RegionFeature inFeature,
	float? inMinimum,
	float? inMaximum,
	out AvlNet.Region[] outAccepted,
	out AvlNet.Region[] outRejected,
	out AvlNet.Region[] outBelow,
	out AvlNet.Region[] outAbove,
	out float[] outValues
)

Parameters

inRegions
Type: AvlNet.Region
inFeature
Type: AvlNet.RegionFeature
inMinimum
Type: System.Nullable<System.Single>
inMaximum
Type: System.Nullable<System.Single>
outAccepted
Type: AvlNet.Region
outRejected
Type: AvlNet.Region
outBelow
Type: AvlNet.Region
outAbove
Type: AvlNet.Region
outValues
Type: System.Single

Description

The filter accepts an array of regions and splits it into output arrays, depending on how each of the computed feature values fits the (inMinimum, inMaximum) range.

  • Regions corresponding to feature values lower than inMinimum are passed onto outBelow and outRejected.
  • Regions corresponding to feature values that fit closed range (inMinimum, inMaximum) are passed onto outAccepted.
  • Regions corresponding to feature values higher than inMaximum are passed onto outAbove and outRejected.

In the special case of inMinimum being greater than inMaximum, first matching condition is applied, which means that objects corresponding to values higher than inMaximum and lower than inMinimum are passed onto outBelow.

To learn about possible features to classify regions, one should see RegionFeature documentation. To know details about particular feature, corresponding filter article should be read.

Examples

ClassifyRegions performed with Elongation selected as the region feature and inMaximum = 10. The blue regions are from outAccepted output, the orange ones from outRejected.

See also