From 7fb691183d72c223ffdf8ac74956326525c0dca7 Mon Sep 17 00:00:00 2001 From: Kai Ni Date: Tue, 15 Sep 2009 22:32:34 +0000 Subject: [PATCH] make simulation2D work --- cpp/Cal3_S2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpp/Cal3_S2.cpp b/cpp/Cal3_S2.cpp index 0aec665c2..fff63da81 100644 --- a/cpp/Cal3_S2.cpp +++ b/cpp/Cal3_S2.cpp @@ -14,10 +14,12 @@ using namespace std; /* ************************************************************************* */ Cal3_S2::Cal3_S2(const std::string &path) { + char buffer[200]; buffer[0] = 0; sprintf(buffer, "%s/calibration_info.txt", path.c_str()); std::ifstream infile(buffer, std::ios::in); + if (infile) infile >> fx_ >> fy_ >> s_ >> u0_ >> v0_; else {