target_disparity,// double [][] target_disparity, // null or programmed disparity (1 per each 14 entries of scans_14)
target_disparity,// double [][] target_disparity, // null or programmed disparity (1 per each 14 entries of scans_14)
tp.getTilesX(),// int tilesX,
tp.getTilesX(),// int tilesX,
clt_parameters.corr_magic_scale,// double magic_coeff, // still not understood coefficent that reduces reported disparity value. Seems to be around 8.5
clt_parameters.corr_magic_scale,// double magic_coeff, // still not understood coefficent that reduces reported disparity value. Seems to be around 8.5
debugLevel-1);// + (clt_parameters.fine_dbg ? 1:0)); // int debugLevel)
debugLevelInner-1);// + (clt_parameters.fine_dbg ? 1:0)); // int debugLevel)
finalint[][]fileIndices,// =new int [numImagesToProcess][2]; // file index, channel number
finalArrayList<String>setNames,// = new ArrayList<String>();
finalArrayList<ArrayList<Integer>>setFiles,// = new ArrayList<ArrayList<Integer>>();
finaldouble[]referenceExposures,// =eyesisCorrections.calcReferenceExposures(debugLevel); // multiply each image by this and divide by individual (if not NaN)
finaldouble[]scaleExposures,// = new double[channelFiles.length]; //
finalboolean[][]saturation_imp,// = (clt_parameters.sat_level > 0.0)? new boolean[channelFiles.length][] : null;
finalbooleanbatch_mode,// disable any debug images
System.out.println("Vignetting data for channel "+srcChannel+" has "+eyesisCorrections.channelVignettingCorrection[srcChannel].length+" pixels, image "+sourceFiles[nFile]+" has "+pixels.length);
nSet,// final int nSet, // index of the 4-image set
clt_parameters,// final EyesisCorrectionParameters.CLTParameters clt_parameters,
fileIndices,// final int [][] fileIndices, // =new int [numImagesToProcess][2]; // file index, channel number
setNames,// final ArrayList<String> setNames, // = new ArrayList<String>();
setFiles,// final ArrayList<ArrayList<Integer>> setFiles, // = new ArrayList<ArrayList<Integer>>();
referenceExposures,//final double [] referenceExposures, // =eyesisCorrections.calcReferenceExposures(debugLevel); // multiply each image by this and divide by individual (if not NaN)
scaleExposures,// final double [] scaleExposures, // = new double[channelFiles.length]; //
saturation_imp,// final boolean [][] saturation_imp, // = (clt_parameters.sat_level > 0.0)? new boolean[channelFiles.length][] : null;
true,// final boolean batch_mode, // disable any debug images
debugLevel);// final int debugLevel)
// once per quad here
if(imp_srcs==null)continue;
if(correctionsParameters.clt_batch_4img){
processCLTQuadCorr(// returns ImagePlus, but it already should be saved/shown
imp_srcs,// [srcChannel], // should have properties "name"(base for saving results), "channel","path"
saturation_imp,// boolean [][] saturation_imp, // (near) saturated pixels or null
clt_parameters,
debayerParameters,
nonlinParameters,
colorProcParameters,
channelGainParameters,
rgbParameters,
convolveFFTSize,// 128 - fft size, kernel size should be size/2
scaleExposures,
false,// apply_corr, // calculate and apply additional fine geometry correction
false,// infinity_corr, // calculate and apply geometry correction at infinity
threadsMax,// maximal number of threads to launch
true,// batch_mode
updateStatus,
debugLevel);
}
if(correctionsParameters.clt_batch_extrinsic){
if(tp!=null)tp.resetCLTPasses();
booleanok=preExpandCLTQuad3d(// returns ImagePlus, but it already should be saved/shown
imp_srcs,// [srcChannel], // should have properties "name"(base for saving results), "channel","path"
saturation_imp,// boolean [][] saturation_imp, // (near) saturated pixels or null