Commit 94868cb1 authored by Andrey Filippov's avatar Andrey Filippov

Working, but with temporary manual correction of the getInterseqScale()

parent 052eebbb
......@@ -285,7 +285,13 @@ public class CuasMotion {
}
public double getInterseqScale() { // multiply target velocity to get offset in the middle between the key frames
return 0.5* getCorrInc()/corr_offset;
// double inter_scale = 0.5* getCorrInc()/corr_offset;
double inter_scale = 0.5*1.25 * getCorrInc()/corr_offset;
System.out.println("getInterseqScale(): getCorrInc()="+getCorrInc()+" corr_offset="+corr_offset+
" clt_parameters.imp.cuas_half_step="+clt_parameters.imp.cuas_half_step+
" clt_parameters.imp.cuas_corr_offset="+clt_parameters.imp.cuas_corr_offset+
" inter_scale="+inter_scale);
return inter_scale; // 0.5* getCorrInc()/corr_offset;
}
/**
......@@ -1594,8 +1600,8 @@ public class CuasMotion {
double yc = tileSize * tileY + tileSize/2;
double xtk = xc + target[CuasMotionLMA.RSLT_X];
double ytk = yc + target[CuasMotionLMA.RSLT_Y];
double vx = target[CuasMotionLMA.RSLT_VX]/corr_offset;
double vy = target[CuasMotionLMA.RSLT_VY]/corr_offset;
double vx = target[CuasMotionLMA.RSLT_VX]/corr_offset; // here vx is pixel offset between consecutive frames
double vy = target[CuasMotionLMA.RSLT_VY]/corr_offset; // and target[CuasMotionLMA.RSLT_V{X,Y}] is the raw offset in a pair
double disp = target[CuasMotionLMA.RSLT_DISPARITY];
if (Double.isNaN(disp)) {
disp = 0.0;
......@@ -1632,7 +1638,7 @@ public class CuasMotion {
double yc = tileSize * tileY + tileSize/2;
double xtk = xc + target[CuasMotionLMA.RSLT_X];
double ytk = yc + target[CuasMotionLMA.RSLT_Y];
double vx = target[CuasMotionLMA.RSLT_VX]/corr_offset;
double vx = target[CuasMotionLMA.RSLT_VX]/corr_offset; // here vx is pixel offset between consecutive frames
double vy = target[CuasMotionLMA.RSLT_VY]/corr_offset;
double disp = disparity; // target[CuasMotionLMA.RSLT_DISPARITY];
if (Double.isNaN(disp)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment