Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Array Statistics » GetMinimumElement

GetMinimumElement


Returns an array element that corresponds to the smallest value in the array of values.

Name Type Description
inArray <T>Array Elements from which element corresponding to smallest value will be chosen
inValues RealArray Values defining the order
outElement <T> Element from the array
outValue Real Smallest value
outIndex Integer Index of the smallest value

The type of this filter is defined using the type variable T which represents any valid type. Read more.

Applications

Choosing one object from an array on the basis of some feature, e.g. the blob having the smallest convexity.

Hints

  • If the input array is not guaranteed to be non-empty, precede this filter with SkipEmptyArray.

Errors

This filter can throw an exception to report error. Read how to deal with errors here: Error Handling

Error type Description
DomainError Inconsistent array sizes in GetMinimumElement.
DomainError Empty input array in GetMinimumElement.

Complexity Level

This filter is available on Basic Complexity Level.

See Also