Added matrix and calibration

release/4.3a0
Frank Dellaert 2012-06-17 15:14:22 +00:00
parent 8cf867bdbd
commit 77cab0a248
1 changed files with 7 additions and 3 deletions

View File

@ -68,6 +68,12 @@ namespace gtsam {
/// @name Standard Interface
/// @{
/// return calibration, same for left and right
const Cal3_S2& calibration() const { return K_;}
/// return calibration matrix K, same for left and right
Matrix matrix() const { return K_.matrix();}
/// focal length x
inline double fx() const { return K_.fx();}
@ -84,9 +90,7 @@ namespace gtsam {
inline double py() const { return K_.py();}
/// return the principal point
Point2 principalPoint() const {
return K_.principalPoint();
}
Point2 principalPoint() const { return K_.principalPoint();}
/// return baseline
inline double baseline() const { return b_; }