Curve.EstimateInterpolationFactor Method (Curve, CurveMinMaxPair)

Estimates the factor of interpolation between the identity curve and one of the min and max curves supplied that should be used to get as close to target curve as possible.

Namespace: Lumia.Imaging.Adjustments
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255

Lumia.Imaging.Adjustments.Curve.EstimateInterpolationFactor = function(targetCurve, curvePair);

Parameters

targetCurve
Type: Lumia.Imaging.Adjustments.Curve
The curve to target with the interpolation.
curvePair
Type: Lumia.Imaging.Adjustments.CurveMinMaxPair
Curve pair where the max curve corresponds to an 1.0 interpolation factor and the min curve corresponds to an -1.0 interpolation factor. 0.0 corresponds to the identity curve.

Return Value

Type: Double
The factor of interpolation between the identity curve and one of the min and max curve supplied that should be used to get as close to target curve as possible. If the result is negative, it represents the negative interpolation between the identity curve and the supplied min curve, otherwise the interpolation between the identity curve and the supplied max curve.

Lumia Imaging SDK

Supported in: 3.0, 2.0
Show: