System.out.println("combo_dsi did not exist, updating DSI-MAIN with updated disparity at infinity for reference scene "+quadCLTs[ref_index].getImageName());
}
}else{
if(debugLevel>-3){
System.out.println("Updated combo_dsi (-INTER-INTRA) for reference scene "+quadCLTs[ref_index].getImageName());
}
}
quadCLTs[ref_index].incDispInfinityRef(// add to previous value that was used to generate INTER-INTRA... (intersceneExport or SFM
inf_disp);// double disp)
// correct xyz
OpticalFlow.scaleImgXYZ(
1.0/scale_img,// double scale_xyz,
quadCLTs,//, // QuadCLT [] quadCLTs,
quadCLTs[ref_index]);//QuadCLT master_CLT)
quadCLTs[ref_index].saveInterProperties(// save properties for interscene processing (extrinsics, ers, ...)
null,// String path, // full name with extension or w/o path to use x3d directory
// null, // Properties properties, // if null - will only save extrinsics)
debugLevel);
/*
if (debugLevel > -3) {
System.out.println("Updating DSI-MAIN with updated disparity at infinity for reference scene "+quadCLTs[ref_index].getImageName());
}
quadCLTs[ref_index].saveDSIAll (
"-DSI_MAIN", // String suffix, // "-DSI_MAIN"
quadCLTs[ref_index].dsi);
*/
}else{
if(debugLevel>-3){
System.out.println("Skipping application of disparity adjustment in reference scene "+quadCLTs[ref_index].getImageName()+", scale_img="+scale_img);
}
}
}
}else{
earliest_scene=Interscene.reAdjustPairsLMAInterscene(// after combo dsi is available and preliminary poses are known
earliest_scene=Interscene.reAdjustPairsLMAInterscene(// after combo dsi is available and preliminary poses are known
clt_parameters,// CLTParameters clt_parameters,
clt_parameters,// CLTParameters clt_parameters,
mb_max_gain,// double mb_max_gain,
mb_max_gain,// double mb_max_gain,
...
@@ -5858,6 +5954,7 @@ public class OpticalFlow {
...
@@ -5858,6 +5954,7 @@ public class OpticalFlow {
!batch_mode,// boolean test_motion_blur,
!batch_mode,// boolean test_motion_blur,
debugLevel);// int debugLevel)
debugLevel);// int debugLevel)
}
}
}
// should update earliest_scene
// should update earliest_scene
if((last_index-earliest_scene+1)<min_num_scenes){
if((last_index-earliest_scene+1)<min_num_scenes){
System.out.println("After reAdjustPairsLMAInterscene() total number of useful scenes = "+(ref_index-earliest_scene+1)+
System.out.println("After reAdjustPairsLMAInterscene() total number of useful scenes = "+(ref_index-earliest_scene+1)+
...
@@ -5951,6 +6048,7 @@ public class OpticalFlow {
...
@@ -5951,6 +6048,7 @@ public class OpticalFlow {
quadCLTs,// QuadCLT [] quadCLTs,
quadCLTs,// QuadCLT [] quadCLTs,
master_CLT,// QuadCLT master_CLT,
master_CLT,// QuadCLT master_CLT,
quadCLT_main,// QuadCLT quadCLT_main,
quadCLT_main,// QuadCLT quadCLT_main,
earliest_scene,// int earliest_scene)
debugLevel);// final int debugLevel)
debugLevel);// final int debugLevel)
returnnull;
returnnull;
}
}
...
@@ -7492,10 +7590,12 @@ public class OpticalFlow {
...
@@ -7492,10 +7590,12 @@ public class OpticalFlow {