Click or drag to resize

IMcSpatial2DCalibUnCalibratePoints Method

Calculate pixel based point from calibrated point

Namespace:  MediaCy.IQL.Calibrations.NonLinear
Assembly:  MediaCy.IQL.Calibrations.NonLinear (in MediaCy.IQL.Calibrations.NonLinear.dll) Version: 10.0.6912.0
Syntax
VB
Sub UnCalibratePoints ( 
	Axis As mcSpatial2DAxis,
	dRangeL As Double,
	dRangeR As Double,
	InPoints As Object,
	<OutAttribute> ByRef pOutPoints As Object,
	Optional dAccuracy As Double = 0.00999999977648258,
	Optional NumPoints As Integer = 0
)

Parameters

Axis
Type: MediaCy.IQL.Calibrations.NonLinearmcSpatial2DAxis
dRangeL
Type: SystemDouble
dRangeR
Type: SystemDouble
InPoints
Type: SystemObject
pOutPoints
Type: SystemObject
dAccuracy (Optional)
Type: SystemDouble
NumPoints (Optional)
Type: SystemInt32
Remarks
Use Bisection method for calculation if calibration is Polynomial; Search the lookup table for solution if calibration is LookupTalbe. There may be several solutions for one input point. All valid solutions are in the range of [dRangeL,dRangeR] with accuracy dAccuracy dAccuracy should > 0, the default value is 0.01. InPoints should be a float or double array. If NumPoints == 0(default), all points in InPoints array will be calculated; If NumPoints > 0, only NumPoints points in the beginning of InPoints will be calculated. All calculated solutions are saved in pOutPoints. pOutPoints is a two dimensions array with size n*m. n is the calculated input points number; m is maximum solutions number for one input point. If a solution<dRangeL, the value is invalid. example: Input points number = 3, solution range is [0,200] The solutions for the 1st point are 9,8 The solutions for the 2nd point are 7,6,5,4 There is no solution for the 3rd point. pOutPoints will be a 3*4 array, with value {(9,8,-1,-1),(7,6,5,4),(-1,-1,-1,-1)}. An error will be returned if no calibration is set for designated axis, or if NumPoints < 0, or if dAccuracy < 0, or if there is an error for InPoints array type or size.
See Also