publicstaticfinalintRSLT_FL_RANGE=59;// flight log range (meters)
publicstaticfinalintRSLT_INFINITY=60;// disparity at infinity used for range calculation
publicstaticfinalintRSLT_TARGET_ID=61;// unique target id for the whole sequence of segments. 1 is reserved for the UAS
publicstaticfinalintRSLT_VEL_AWAY=62;// axial velocity (positive - away), range derivative (m/s), calculated from the difference to the previous/next series range
publicstaticfinalintRSLT_VEL_RIGHT=63;// lateral velocity, right ( calculated from angular and RSLT_GRANGE
publicstaticfinalintRSLT_VEL_UP=64;// lateral velocity, up ( calculated from angular and RSLT_GRANGE
publicstaticfinalintRSLT_RANGE_LIN=65;// range linear interpolated using previous/next series if the same target is present there
publicstaticfinalintRSLT_VCORR=22;// Last correction of VX, VY during refine (large correction means failed correction)
publicstaticfinalintRSLT_FL_RANGE=60;// flight log range (meters)
publicstaticfinalintRSLT_INFINITY=61;// disparity at infinity used for range calculation
publicstaticfinalintRSLT_TARGET_ID=62;// unique target id for the whole sequence of segments. 1 is reserved for the UAS
publicstaticfinalintRSLT_VEL_AWAY=63;// axial velocity (positive - away), range derivative (m/s), calculated from the difference to the previous/next series range
publicstaticfinalintRSLT_VEL_RIGHT=64;// lateral velocity, right ( calculated from angular and RSLT_GRANGE
publicstaticfinalintRSLT_VEL_UP=65;// lateral velocity, up ( calculated from angular and RSLT_GRANGE
publicstaticfinalintRSLT_RANGE_LIN=66;// range linear interpolated using previous/next series if the same target is present there
// Recalculate Motion Vectors before centered \"tracking camera\"
publicbooleancuas_recalc_mv=true;// Recalculate motion vectors before centered targets accumulation by masking far-from target areas
publicintcuas_recalc_mv_num=2;// Number of recalculations of the motion vectors before centered targets accumulation by masking far-from target areas
publicdoublecuas_recalc_mv_boost=4.0;// Scale default number of correlation pairs for motion vectors calculation
publicdoublecuas_recalc_mv_r0=2.0;// Masking window parameters: for r <= r0, w = 1.0
publicdoublecuas_recalc_mv_r1=6.0;// Masking window parameters: for r >= r1, w = 0.0, r0<r<r1: w = 0.5*(cos(PI*(r-r0)/(r1-r0))+1)
publicdoublecuas_recalc_mv_corr=4.0;// Scale corr_offset for refinement pass (will use (int)Math.round()
publicdoublecuas_recalc_mv_r0=2.0;// Masking window parameters: for r <= r0, w = 1.0, first (coarse) pass
publicdoublecuas_recalc_mv_r1=6.0;// Masking window parameters: for r >= r1, w = 0.0, r0<r<r1: w = 0.5*(cos(PI*(r-r0)/(r1-r0))+1), first (coarse) pass
publicdoublecuas_recalc_mv_r0f=1.5;// Masking window parameters: for r <= r0, w = 1.0, second (narrow) pass
publicdoublecuas_recalc_mv_r1f=4.0;// Masking window parameters: for r >= r1, w = 0.0, r0<r<r1: w = 0.5*(cos(PI*(r-r0)/(r1-r0))+1), second (narrow) pass
publicdoublecuas_recalc_mv_max2=0.2;// Maximal Vx,Vy corection for the fine pass (only if cuas_recalc_mv_num >= 2)
publicintcuas_mul_samples=3;// multiply number of samples in slow mode
publicintcuas_mul_offset=5;// multiply correlation offset in slow mode
...
...
@@ -2749,14 +2754,24 @@ min_str_neib_fpn 0.35
"Number of cycles of testing and removing bad targets from compoetition with weaker neighbors.");
gd.addMessage("=== Recalculate Motion Vectors before centered \"tracking camera\" ===");
// if (properties.getProperty(prefix+"cuas_recalc_mv")!=null) this.cuas_recalc_mv=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_recalc_mv"));