Added accessor method for the calibration object to the ProjectionFactor and StereoFactor

release/4.3a0
Stephen Williams 2012-02-23 13:12:15 +00:00
parent e7562ac07f
commit 2b35d04c8e
3 changed files with 13 additions and 0 deletions

View File

@ -36,6 +36,8 @@ namespace gtsam {
public: public:
typedef boost::shared_ptr<Cal3_S2> shared_ptr; ///< shared pointer to calibration object
/// @name Standard Constructors /// @name Standard Constructors
/// @{ /// @{

View File

@ -101,6 +101,11 @@ namespace gtsam {
return z_; return z_;
} }
/** return the calibration object */
inline const Cal3_S2::shared_ptr calibration() const {
return K_;
}
private: private:
/// Serialization function /// Serialization function

View File

@ -100,6 +100,12 @@ public:
return z_; return z_;
} }
/** return the calibration object */
inline const Cal3_S2Stereo::shared_ptr calibration() const {
return K_;
}
private: private:
/** Serialization function */ /** Serialization function */
friend class boost::serialization::access; friend class boost::serialization::access;