Common base class for all calibration models. More...
#include <Cal3.h>
Public Types | |
using | shared_ptr = std::shared_ptr< Cal3 > |
Static Public Attributes | |
constexpr static auto | dimension = 5 |
shared pointer to calibration object More... | |
Protected Attributes | |
double | fx_ = 1.0f |
double | fy_ = 1.0f |
focal length More... | |
double | s_ = 0.0f |
skew More... | |
double | u0_ = 0.0f |
double | v0_ = 0.0f |
principal point More... | |
Standard Constructors | |
Cal3 ()=default | |
Create a default calibration that leaves coordinates unchanged. More... | |
Cal3 (double fx, double fy, double s, double u0, double v0) | |
constructor from doubles More... | |
Cal3 (const Vector5 &d) | |
constructor from vector More... | |
Cal3 (double fov, int w, int h) | |
virtual | ~Cal3 () |
Virtual destructor. More... | |
Advanced Constructors | |
Cal3 (const std::string &path) | |
Testable | |
virtual void | print (const std::string &s="") const |
print with optional string More... | |
bool | equals (const Cal3 &K, double tol=10e-9) const |
Check if equal up to specified tolerance. More... | |
GTSAM_EXPORT friend std::ostream & | operator<< (std::ostream &os, const Cal3 &cal) |
Output stream operator. More... | |
Standard Interface | |
double | fx () const |
focal length x More... | |
double | fy () const |
focal length y More... | |
double | aspectRatio () const |
aspect ratio More... | |
double | skew () const |
skew More... | |
double | px () const |
image center in x More... | |
double | py () const |
image center in y More... | |
Point2 | principalPoint () const |
return the principal point More... | |
Vector5 | vector () const |
vectorized form (column-wise) More... | |
virtual Matrix3 | K () const |
return calibration matrix K More... | |
Matrix3 | inverse () const |
Return inverted calibration matrix inv(K) More... | |
virtual size_t | dim () const |
return DOF, dimensionality of tangent space More... | |
static size_t | Dim () |
return DOF, dimensionality of tangent space More... | |
using gtsam::Cal3::shared_ptr = std::shared_ptr<Cal3> |
|
default |
Create a default calibration that leaves coordinates unchanged.
|
inline |
|
inline |
|
inlinevirtual |
gtsam::Cal3::Cal3 | ( | const std::string & | path | ) |
|
inline |
|
inlinestatic |
|
inlinevirtual |
return DOF, dimensionality of tangent space
Reimplemented in gtsam::Cal3Fisheye, gtsam::Cal3DS2_Base, gtsam::Cal3Unified, gtsam::Cal3Bundler, gtsam::Cal3_S2Stereo, gtsam::Cal3f, and gtsam::Cal3DS2.
bool gtsam::Cal3::equals | ( | const Cal3 & | K, |
double | tol = 10e-9 |
||
) | const |
Matrix3 gtsam::Cal3::inverse | ( | ) | const |
|
inlinevirtual |
return calibration matrix K
Reimplemented in gtsam::Cal3_S2Stereo, and gtsam::Cal3Bundler.
|
inline |
|
virtual |
print with optional string
Reimplemented in gtsam::Cal3_S2, gtsam::Cal3Fisheye, gtsam::Cal3_S2Stereo, gtsam::Cal3DS2_Base, gtsam::Cal3Unified, gtsam::Cal3Bundler, gtsam::Cal3DS2, and gtsam::Cal3f.
|
inline |
|
friend |
|
inlinestaticconstexpr |