// fittingStrategy.distortionCalibrationData.pars[imgNum], // 22-long parameter vector for the image
fittingStrategy.distortionCalibrationData.getParameters(imgNum),// 22-long parameter vector for the image
...
...
@@ -9482,683 +9504,6 @@ M * V = B
publicintgetGridHeight(){
returnpatternParameters.gridGeometry.length;
}
/**
* Calculate/set this.lensDistortionParameters and this.interParameterDerivatives
* UPDATE - Modifies lensDistortionParameters, not "this" formulti-threaded
* @param parVect 21-element vector for eyesis sub-camera, including common and individual parameters
* @param mask -mask - which partial derivatives are needed to be calculated (others will be null)
* @param calculateDerivatives calculate array of partial derivatives, if false - just the values
*/
publicvoidcalcInterParamers(
LensDistortionParameterslensDistortionParameters,
double[][]interParameterDerivatives,//partial derivative matrix from subcamera-camera-goniometer to single camera (12x21) if null - just values, no derivatives
double[]parVect,
boolean[]mask// calculate only selected derivatives (all parVect values are still
interParameterDerivatives[6]=lensDistortionParameters.d_parametersFromMAMB(dMA_goniometerHorizontal,dMB_goniometerHorizontal,MA,MB,true);// all after 6 are 0;
interParameterDerivatives[8]=lensDistortionParameters.d_parametersFromMAMB(dMA_interAxisDistance,dMB_interAxisDistance,MA,MB,false);// all after 6 are 0;
interParameterDerivatives[12]=lensDistortionParameters.d_parametersFromMAMB(dMA_entrancePupilForward,dMB_entrancePupilForward,MA,MB,false);// all after 6 are 0;
interParameterDerivatives[13]=lensDistortionParameters.d_parametersFromMAMB(dMA_centerAboveHorizontal,dMB_centerAboveHorizontal,MA,MB,false);// all after 6 are 0;
double[][]interParameterDerivatives,//partial derivative matrix from subcamera-camera-goniometer to single camera (12x21) if null - just values, no derivatives
double[]parVect,
boolean[]mask// calculate only selected derivatives (all parVect values are still