// set reference to scene properties and quadCLT_main
CorrVectorcorr_vector=quadCLTs[last_index].getGeometryCorrection().getCorrVector();// set in restoreFieldCalibration(true,...)
quadCLT_main.getGeometryCorrection().setCorrVector(corr_vector);// updated system corr vector with the current updated one
}else{
if(debugLevel>-3){
System.out.println("No LY data is available, using global data for quadCLT_main ("+
...
...
@@ -5454,9 +5457,18 @@ public class OpticalFlow {
if(operation_mode==RESULTS_BUILD_SEQ_LY){
if(debugLevel>-3){
System.out.println("===== LY field calibration is requested. =====");
System.out.println("===== LY field calibration is requested. force_ly="+force_ly+", extr_corr "+((extr_corr==null)?" ==":"!=")+"null, continue_ly="+continue_ly+" =====");
}
if(!force_ly&&(extr_corr!=null)&&!continue_ly){// this is valid even if it is not force_initial_orientations
// if (!force_ly && (extr_corr != null) && !continue_ly ) { // this is valid even if it is not force_initial_orientations
// Maybe if (continue_ly) still return with null, and the caller will restart. It will do initial disparity fro the reference scene twice, but the logic will be simpler
if(!force_ly&&(extr_corr!=null)){// this is valid even if it is not force_initial_orientations
if(!continue_ly){
exec_ly_correction=false;
operation_mode=RESULTS_BUILD_SEQ_DEFAULT;// so adjustment range would not be shortened for LY
if(debugLevel>-3){
System.out.println("===== LY calibration data already available, continue_ly is TRUE, and force_ly is FALSE, contiunue in normal mode =====");
}
}else{
if(debugLevel>-3){
System.out.println("===== But LY calibration data already available, continue_ly is FALSE, and force_ly is FALSE, terminating processing =====");
}
...
...
@@ -5466,6 +5478,7 @@ public class OpticalFlow {
returnnull;
}
}
}
if(debugLevel>-3){
System.out.println("===== Considering building initial orientations, force_initial_orientations="+force_initial_orientations+". =====");
}
...
...
@@ -6245,7 +6258,6 @@ public class OpticalFlow {
// Calculate and fill per-scene target disparities as scene.dsrbg
System.out.println("Continue from index "+ref_index);
continue;// and go to the to next scene sequence from the list
}
initial_operation_mode=OpticalFlow.RESULTS_BUILD_SEQ_DEFAULT;// to prevent trying to get field_calibration for all but the first (latest in time) segment in a sequence