Back to FabImage Library website

You are here: Start » Function Reference » Region Relations » SelectRegions

SelectRegions


Header:FIL.h
Namespace:fil

Selects regions according to the selected feature and range.

Syntax

C++
C#
 
void fil::SelectRegions
(
	const ftl::Array<fil::Region>& inRegions,
	fil::RegionFeature::Type inFeature,
	ftl::Optional<float> inMinimum,
	ftl::Optional<float> inMaximum,
	ftl::Array<fil::Region>& outAccepted,
	ftl::Optional<ftl::Array<float>&> outValues = ftl::NIL
)

Parameters

Name Type Default Description
inRegions const Array<Region>& Input regions
inFeature RegionFeature::Type Region feature value to be computed
inMinimum Optional<float> NIL Lowest value of the range
inMaximum Optional<float> NIL Highest value of the range
outAccepted Array<Region>& Regions with feature values matching the range
outValues Optional<Array<float>&> NIL

Optional Outputs

The computation of following outputs can be switched off by passing value ftl::NIL to these parameters: outValues.

Read more about Optional Outputs.