IMcSpatialCalibSetPolynomialMapping Method
|
|
Generic way to set a spatial calibration polynomial mapping of the type:
x' = (A00 + A01.y +...+ A0n.y^n) + (A10 + A11.y +...+ A1n.y^n).x +...+ (An0 + An1.y +...+ Ann.y^n).x^n
y' = (B00 + B01.y +...+ B0n.y^n) + (B10 + B11.y +...+ B1n.y^n).x +...+ (Bn0 + Bn1.y +...+ Bnn.y^n).x^n
where x',y' describe a point in calibrated space, x,y represent that same point in pixel coordinate space.
n = Degree of both y and x polynomials, and Coefficients = A00,..., Ann, B00,..., Bnn
Namespace:
MediaCy.IQL.Calibrations
Assembly:
MediaCy.IQL.Calibrations (in MediaCy.IQL.Calibrations.dll) Version: 10.0.6912.0
SyntaxSub SetPolynomialMapping (
Degree As Integer,
Coefficients As Object
)
Parameters
- Degree
- Type: SystemInt32
Degree of the mixed polynomials in x and y - Coefficients
- Type: SystemObject
Array of doubles containing A00, A01,..., Ann, B00, B01,..., Bnn
Return Value
Type:
HRESULT
RemarksThe linear case, where the calibration is defined by a uniform scaling in both the x and y axis, can
be represented by a limited version of the case n=m=1 (x' = A00 + A10.x, y' = B00 + B01.y)
where A00, A10, B00, and B01 correspond respectively to PixelOriginX, PixelSizeX, PixelOriginY, and PixelSizeY
See Also