Field |
public void ApplyErrors( dvec2 expectedBottomLeft, dvec2 expectedTopRight, double?[,,,,] errors, double[] layersSelected, double[] magnificationsSelected )
The errors describe for each axis the difference between the actual and expected position. For example, if the scan head was expected to move to 100mm, but ends up short at 90mm then the error would be -10mm (90mm minus 100mm) for that axis.
The expected positions are equal to the grid points' positions that result from dividing the area defined by "expectedBottomLeft" and "expectedTopRight" evenly into cells. The number of cells in the horizontal and vertical dimension is calculated by subtracting 1 from the "errors" array's columns and rows, respectively.
The "errors" array must not be larger than the field corrections' grid points in neither dimension (neither errors' rows must exceed "Rows", nor errors' columns must exceed "Columns"). If "errors" is smaller, then its values will be interpolated across the beam field. (InterpolateError(UAT, Int32, Int32, Int32, Double, Int32, Double, Nullabledvec2, Nullabledvec2, Nullabledvec2, Boolean))