The function RecalcCalibPieces analyses the current calibration coefficients of the axis given by the parameter dim and fills the internal table of calibration pieces. Please note that this internal table is required to be up to date for a perfect function of ImageLab. Thus you have to call it whenever you change the calibration parameters programmatically (i.e. by using the function SetCalibCoeffs).
The function returns the number of found calibration pieces.