Back to FabImage Library website

You are here: Start » Function Reference » Profile » Profile Features » ProfileMinimum

ProfileMinimum


Header: FIL.h
Namespace: fil
Module: FoundationPro

Finds the lowest value of the input profile, its precise location and the corresponding index.

Syntax

C++
C#
 
void fil::ProfileMinimum
(
	const fil::Profile& inProfile,
	ftl::Optional<const fil::Range&> inRange,
	fil::ProfileInterpolationMethod::Type inInterpolationMethod,
	float& outMinimumPoint,
	ftl::Optional<int&> outMinimumIndex = ftl::NIL,
	ftl::Optional<float&> outMinimumValue = ftl::NIL
)

Parameters

Name Type Default Description
Input value inProfile const Profile& Input profile
Input value inRange Optional<const Range&> NIL
Input value inInterpolationMethod ProfileInterpolationMethod::Type Quadratic4 Profile points' interpolation method
Output value outMinimumPoint float& Position of lowest value with respect to profile's offset and scale
Output value outMinimumIndex Optional<int&> NIL Index of lowest value
Output value outMinimumValue Optional<float&> NIL Lowest value

Optional Outputs

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

Read more about Optional Outputs.

Errors

List of possible exceptions:

Error type Description
DomainError Empty profile in ProfileMinimum.
DomainError Empty profile range in ProfileMinimum.
DomainError Range exceeds the input profile in ProfileMinimum.
DomainError Unsupported interpolation method in ProfileMinimum.