Skip to content

Commit

Permalink
remove some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Mar 9, 2017
1 parent 0f0e67b commit d24aa5e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/stitch/incremental_bundle_adjuster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,6 @@ IncrementalBundleAdjuster::ErrorStats IncrementalBundleAdjuster::calcError(
ret.residuals[idx] = from.x - transformed.x;
ret.residuals[idx+1] = from.y - transformed.y;

// TODO for the moment, ignore circlic error
/*
*if (fabs(ret.residuals[idx]) > ERROR_IGNORE) {
* auto transfed = spherical::homo2proj(Hto_to_from.trans(to));
* auto from3d = spherical::homo2proj(Vec{from.x, from.y, 1});
* PP(from);PP(transformed);
* PP(transfed); PP(from3d);
* //ret.residuals[idx] = 0;
*}
*/
idx += 2;
}
}
Expand Down Expand Up @@ -314,20 +304,6 @@ void IncrementalBundleAdjuster::calcJacobianSymbolic(const ParamState& state) {
double hz_sqr_inv = 1.0 / sqr(homo.z);
double hz_inv = 1.0 / homo.z;

// TODO use spherical projection instead of flat projection
/*
*if (fabs(from.x - homo.x / homo.z) > ERROR_IGNORE) {
* REP(i, 6) {
* J(idx, param_idx_from+i) = 0;
* J(idx, param_idx_to+i) = 0;
* J(idx+1, param_idx_from+i) = 0;
* J(idx+1, param_idx_to+i) = 0;
* }
* idx += 2;
* continue;
*}
*/

Vec dhdv; // d(homo)/d(variable)
// calculate d(residual) / d(variable) = -d(point 2d) / d(variable)
// d(point 2d coor) / d(variable) = d(p2d)/d(homo3d) * d(homo3d)/d(variable)
Expand Down

0 comments on commit d24aa5e

Please sign in to comment.