Permalink
Browse files

stereo: Put a limit on iterations in LSQ triangulation

A 1000 iterations is just way too many for a single pixel.
  • Loading branch information...
Zack Moratto
Zack Moratto committed Apr 20, 2012
1 parent 193decc commit 6c98691604bd75c296e4a088e7ba7caac284940e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/vw/Stereo/StereoModel.cc
@@ -166,7 +166,7 @@ void StereoModel::refine_point(Vector2 const& pix1,
Vector4 objective( pix1[0], pix1[1], pix2[0], pix2[1] );
int status = 0;
Vector3 npoint = levenberg_marquardt( model, point,
- objective, status );
+ objective, status, 1e-3, 1e-6, 10 );
if ( status > 0 )
point = npoint;
}

0 comments on commit 6c98691

Please sign in to comment.