Skip to content

Commit

Permalink
Fix abort of calibration due to focal length NANs by supplying a init…
Browse files Browse the repository at this point in the history
…ial guess
  • Loading branch information
skohlbr committed May 6, 2017
1 parent 1c6df87 commit 2822f6a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,11 @@ bool PinholeProjection<DISTORTION_T>::initializeIntrinsics(const std::vector<Gri
}

//get the median of the guesses
if(f_guesses.empty())
return false;
if(f_guesses.empty()){
//return false;
f_guesses.push_back(400.0);
}

double f0 = PinholeHelpers::medianOfVectorElements(f_guesses);

//set the estimate
Expand Down

0 comments on commit 2822f6a

Please sign in to comment.