booleanrng_vfy_this=(target_id==target_id0)&&rng_vfy;// only for the first target in range
double[]target_stats=rangeSingleTarget(// return {disparity, strength, last disparity difference}
double[]target_stats=rangeSingleTarget(// return {disparity, strength, last disparity difference}
targets,// final double [][][] targets, // centers
targets,// final double [][][] targets, // centers
linked_targets,// final int [][][] linked_targets,
linked_targets,// final int [][][] linked_targets,
target_id,// final int target_id, // target number, starting with 1
target_id,// final int target_id, // target number, starting with 1
log_ranging,// final boolean log_ranging,
log_ranging,// final boolean log_ranging,
accum_2d_corr,// final float [][][] accum_2d_corr, // if [1][][] - return accumulated 2d correlations (all pairs)
accum_2d_corr,// final float [][][] accum_2d_corr, // if [1][][] - return accumulated 2d correlations (all pairs)
show_mode,// final int show_mode, //+1 - disparity, +2 - correlations +4 - debug single run
show_mode,// final int show_mode, //+1 - disparity, +2 - correlations +4 - debug single run
ranging_verify,// final double [][][] ranging_verify,
// ranging_verify, // final double [][][] ranging_verify,
rng_vfy_this,// final boolean rng_vfy, // Generate/save ranging verification images (per-sensor and combined rendering from the same data) NOT implemented
debugLevel);// final int debugLevel) ;
debugLevel);// final int debugLevel) ;
target_glob_stats[target_id-1]=target_stats;
target_glob_stats[target_id-1]=target_stats;
}
}
...
@@ -751,7 +756,8 @@ public class CuasRanging {
...
@@ -751,7 +756,8 @@ public class CuasRanging {
sb.append("cuas_rng_radius0 = "+clt_parameters.imp.cuas_rng_radius0+"\n");// mask out data outside peripheral areas, keep 0.5 at the radius - first iteration
sb.append("cuas_rng_radius0 = "+clt_parameters.imp.cuas_rng_radius0+"\n");// mask out data outside peripheral areas, keep 0.5 at the radius - first iteration
sb.append("cuas_rng_radius = "+clt_parameters.imp.cuas_rng_radius+"\n");// mask out data outside peripheral areas, keep 0.5 at the radius - next iteration
sb.append("cuas_rng_radius = "+clt_parameters.imp.cuas_rng_radius+"\n");// mask out data outside peripheral areas, keep 0.5 at the radius - next iteration
sb.append("cuas_rng_blur = "+clt_parameters.imp.cuas_rng_blur+"\n");// relative transition radius range (for 0.5 the mask inside (1-0.5) radius will be 1.0, outside (1+0.5) radius will be 0
sb.append("cuas_rng_blur = "+clt_parameters.imp.cuas_rng_blur+"\n");// relative transition radius range (for 0.5 the mask inside (1-0.5) radius will be 1.0, outside (1+0.5) radius will be 0
sb.append("cuas_rng_fz = "+clt_parameters.imp.cuas_rng_fz+"\n");// Fat zero in target ranging mode
sb.append("cuas_rng_fz0 = "+clt_parameters.imp.cuas_rng_fz0+"\n");// Fat zero in target ranging mode (first iteration)
sb.append("cuas_rng_fz = "+clt_parameters.imp.cuas_rng_fz+"\n");// Fat zero in target ranging mode (next iterations)
sb.append("cuas_rng_scale = "+clt_parameters.imp.cuas_rng_scale+"\n");// Scale alt_data to use same strength as for normal ranging because targets
sb.append("cuas_rng_scale = "+clt_parameters.imp.cuas_rng_scale+"\n");// Scale alt_data to use same strength as for normal ranging because targets
sb.append("cuas_lma_bypass = "+clt_parameters.imp.cuas_lma_bypass+"\n");// Bypass solution tests, OK weak
sb.append("cuas_lma_bypass = "+clt_parameters.imp.cuas_lma_bypass+"\n");// Bypass solution tests, OK weak
sb.append("cuas_mcorr_sel = "+clt_parameters.imp.cuas_mcorr_sel+"\n");// all pairs and diagonals (as was for non-cuas ranging)
sb.append("cuas_mcorr_sel = "+clt_parameters.imp.cuas_mcorr_sel+"\n");// all pairs and diagonals (as was for non-cuas ranging)
...
@@ -784,7 +790,7 @@ public class CuasRanging {
...
@@ -784,7 +790,7 @@ public class CuasRanging {
finalfloat[][][]accum_2d_corr,// if [1][][] - return accumulated 2d correlations (all pairs)
finalfloat[][][]accum_2d_corr,// if [1][][] - return accumulated 2d correlations (all pairs)
// final int nseq,
// final int nseq,
finalintshow_mode,//+1 - disparity, +2 - correlations +4 - debug single run
finalintshow_mode,//+1 - disparity, +2 - correlations +4 - debug single run
finaldouble[][][]ranging_verify,
finalbooleanrng_vfy,// Generate/save ranging verification images (per-sensor and combined rendering from the same data) NOT implemented
finalintdebugLevel){
finalintdebugLevel){
finalintend_mode=clt_parameters.imp.cuas_glob_ends;// 1; // 0 - same as internal, 1 - cosine extended ends, 2 - rectangular extended ends // make a parameter
finalintend_mode=clt_parameters.imp.cuas_glob_ends;// 1; // 0 - same as internal, 1 - cosine extended ends, 2 - rectangular extended ends // make a parameter
finalbooleanfirst_last_extra=(end_mode>0);
finalbooleanfirst_last_extra=(end_mode>0);
...
@@ -816,7 +822,7 @@ public class CuasRanging {
...
@@ -816,7 +822,7 @@ public class CuasRanging {
doublecuas_infinity=clt_parameters.imp.cuas_infinity;// 0.63; // disparity at infinity for targets
doublecuas_infinity=clt_parameters.imp.cuas_infinity;// 0.63; // disparity at infinity for targets
finalinttilesX=center_CLT.getTilesX();
finalinttilesX=center_CLT.getTilesX();
finalinttilesY=center_CLT.getTilesY();
// final int tilesY = center_CLT.getTilesY();
// final int frame_center = cuasMotion.getFrameCenter(nseq); // for debug only
// final int frame_center = cuasMotion.getFrameCenter(nseq); // for debug only
publicdoublecuas_rng_radius0=3.0;// mask out data outside peripheral areas, keep 0.5 at the radius - first iteration
publicdoublecuas_rng_radius0=3.0;// mask out data outside peripheral areas, keep 0.5 at the radius - first iteration
publicdoublecuas_rng_radius=2.5;// mask out data outside peripheral areas, keep 0.5 at the radius - next iteration
publicdoublecuas_rng_radius=2.5;// mask out data outside peripheral areas, keep 0.5 at the radius - next iteration
publicdoublecuas_rng_blur=0.5;// relative transition radius range (for 0.5 the mask inside (1-0.5) radius will be 1.0, outside (1+0.5) radius will be 0
publicdoublecuas_rng_blur=0.5;// relative transition radius range (for 0.5 the mask inside (1-0.5) radius will be 1.0, outside (1+0.5) radius will be 0
publicdoublecuas_rng_fz0=300.0;// Fat zero in target ranging mode, first iteration (first 2?)
publicdoublecuas_rng_fz=30.0;// Fat zero in target ranging mode
publicdoublecuas_rng_fz=30.0;// Fat zero in target ranging mode
publicdoublecuas_rng_scale=8.0;// Scale alt_data to use same strength as for normal ranging because targets
publicdoublecuas_rng_scale=8.0;// Scale alt_data to use same strength as for normal ranging because targets
...
@@ -2666,8 +2667,10 @@ min_str_neib_fpn 0.35
...
@@ -2666,8 +2667,10 @@ min_str_neib_fpn 0.35
"Mask out data outside peripheral areas, keep 0.5 at the radius .");
"Mask out data outside peripheral areas, keep 0.5 at the radius .");
gd.addNumericField("Mask blur fraction for ranging",this.cuas_rng_blur,5,8,"",
gd.addNumericField("Mask blur fraction for ranging",this.cuas_rng_blur,5,8,"",
"Relative transition radius range (for 0.5 the mask inside (1-0.5) radius will be 1.0, outside (1+0.5) radius will be 0.");
"Relative transition radius range (for 0.5 the mask inside (1-0.5) radius will be 1.0, outside (1+0.5) radius will be 0.");