finalintthreadsMax,// maximal number of threads to launch
finalbooleanupdateStatus,
finalbooleanbatch_mode,
finalintdebugLevel)
{
finalbooleanbatch_mode=clt_parameters.batch_run;
this.startStepTime=System.nanoTime();
finalinttilesX=tp.getTilesX();
finalinttilesY=tp.getTilesY();
...
...
@@ -8155,9 +8156,9 @@ public class QuadCLT {
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
finalintdebugLevel)
{
finalbooleanbatch_mode=clt_parameters.batch_run;//disable any debug images
if(debugLevel>0)System.out.println(numFilesToProcess+" files to process (of "+sourceFiles.length+"), "+numImagesToProcess+" images to process");
}
double[]referenceExposures=eyesisCorrections.calcReferenceExposures(debugLevel);// multiply each image by this and divide by individual (if not NaN)
double[]referenceExposures=eyesisCorrections.calcReferenceExposures(debugLevelInner);// multiply each image by this and divide by individual (if not NaN)
int[][]fileIndices=newint[numImagesToProcess][2];// file index, channel number
clt_parameters.batch_run=false;// disable batch_run for single image if clt_batch_dbg1 is on
}
// Do per 4-image set processing
intnSet=0;
...
...
@@ -8490,8 +8496,7 @@ public class QuadCLT {
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;
!batch_dbg,// final boolean batch_mode, // disable any debug images
debugLevel);// final int debugLevel)
debugLevelInner);// final int debugLevel)
// once per quad here
if(imp_srcs==null)continue;
...
...
@@ -8565,7 +8570,7 @@ public class QuadCLT {
rgbParameters,
threadsMax,// maximal number of threads to launch
updateStatus,
debugLevel);
debugLevelInner);
if(ok){
System.out.println("Adjusting extrinsics");
extrinsicsCLT(
...
...
@@ -8573,8 +8578,7 @@ public class QuadCLT {
false,// adjust_poly,
threadsMax,//final int threadsMax, // maximal number of threads to launch
updateStatus,// final boolean updateStatus,
!batch_dbg,// final boolean batch_mode,
debugLevel);// final int debugLevel)
debugLevelInner);// final int debugLevel)
}
}
if(correctionsParameters.clt_batch_poly){
...
...
@@ -8590,7 +8594,7 @@ public class QuadCLT {
rgbParameters,
threadsMax,// maximal number of threads to launch
updateStatus,
debugLevel);
debugLevelInner);
if(ok){
System.out.println("Adjusting polynomial fine crorection");
extrinsicsCLT(
...
...
@@ -8598,8 +8602,7 @@ public class QuadCLT {
true,// adjust_poly,
threadsMax,//final int threadsMax, // maximal number of threads to launch
updateStatus,// final boolean updateStatus,
!batch_dbg,// final boolean batch_mode,
debugLevel);// final int debugLevel)
debugLevelInner);// final int debugLevel)
}
}
...
...
@@ -8618,9 +8621,8 @@ public class QuadCLT {
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
!batch_dbg,// batch_mode
updateStatus,
debugLevel);
debugLevelInner);
}
if(correctionsParameters.clt_batch_explore){
if(tp!=null)tp.resetCLTPasses();
...
...
@@ -8635,7 +8637,7 @@ public class QuadCLT {
rgbParameters,
threadsMax,// maximal number of threads to launch
updateStatus,
debugLevel);
debugLevelInner);
if(ok){
System.out.println("Explore 3d space");
expandCLTQuad3d(// returns ImagePlus, but it already should be saved/shown
...
...
@@ -8648,8 +8650,7 @@ public class QuadCLT {
rgbParameters,
threadsMax,// maximal number of threads to launch
updateStatus,
!batch_dbg,// final boolean batch_mode,
debugLevel);
debugLevelInner);
}elsecontinue;
}elsecontinue;// if (correctionsParameters.clt_batch_explore)
...
...
@@ -8660,8 +8661,7 @@ public class QuadCLT {
geometryCorrection,
threadsMax,
updateStatus,
!batch_dbg,// batch_mode
debugLevel);
debugLevelInner);
}elsecontinue;// if (correctionsParameters.clt_batch_surf)
...
...
@@ -8671,8 +8671,7 @@ public class QuadCLT {
geometryCorrection,
threadsMax,
updateStatus,
!batch_dbg,// boolean batch_mode,
debugLevel);
debugLevelInner);
if(!ok)continue;
}elsecontinue;// if (correctionsParameters.clt_batch_assign)
@@ -4572,9 +4572,10 @@ public class TileProcessor {
GeometryCorrectiongeometryCorrection,
finalintthreadsMax,// maximal number of threads to launch
finalbooleanupdateStatus,
finalbooleanbatch_mode,
// final boolean batch_mode,
finalintdebugLevel)
{
finalbooleanbatch_mode=clt_parameters.batch_run;
finalintdebugLevelInner=batch_mode?-5:debugLevel;
trimCLTPasses();// make possible to run this method multiple times - remove extra passes added by it last time
CLTPass3dscan_prev=clt_3d_passes.get(clt_3d_passes.size()-1);// get last one
...
...
@@ -5140,9 +5141,9 @@ public class TileProcessor {
GeometryCorrectiongeometryCorrection,
finalintthreadsMax,// maximal number of threads to launch
finalbooleanupdateStatus,
finalbooleanbatch_mode,
finalintdebugLevel)
{
finalbooleanbatch_mode=clt_parameters.batch_run;//disable any debug images
trimCLTPasses();// make possible to run this method multiple time - remove extra passes added by it last time
CLTPass3dscan_prev=clt_3d_passes.get(clt_3d_passes.size()-1);// get last one
...
...
@@ -5311,7 +5312,7 @@ public class TileProcessor {
clt_parameters.stHighMix,// stHighMix = 0.4; // Consider merging initial planes if jumps between ratio above
world_hor,// final double [] world_hor, // horizontal plane normal (default [0.0, 1.0, 0.0])
clt_parameters.show_histograms,// final boolean show_histograms,
1,// -1, // debugLevel, // final int debugLevel)
clt_parameters.batch_run?-1:1,// -1, // debugLevel, // final int debugLevel)
clt_parameters.tileX,
clt_parameters.tileY);
// showDoubleFloatArrays sdfa_instance = null;
...
...
@@ -5334,7 +5335,7 @@ public class TileProcessor {
lp.conditionSuperTiles(
st.planes,// final TilePlanes.PlaneData [][] planes,
10,// final int max_num_merge_try,
0);// 1); // debugLevel); // final int debugLevel);
clt_parameters.batch_run?-2:0);// 1); // debugLevel); // final int debugLevel);
// Used only by conflicts (not processed currently)
lp.calcStarValueStrength(
true,// boolean set_start_planes,
...
...
@@ -5398,7 +5399,7 @@ public class TileProcessor {
clt_parameters.plDiscrXMedian,// final double plDiscrXMedian, // = 1.5; // Remove outliers from the final selection that have distance more than scaled median
debugLevel,// -1, // debugLevel, // final int debugLevel)