Description
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
-
Return Type
-
None
-
Syntax
-
object.SetPolynomialMapping Degree, Coefficients
The SetPolynomialMapping Method syntax has these parts: |
| object | An expression evaluating to an object of type McSpatialCalib. | | Degree | Required. A Long value. Degree of the mixed polynomials in x and y
| | Coefficients | Required. A Variant value. Array of doubles containing A00, A01,..., Ann, B00, B01,..., Bnn
| Remarks
The 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
|