#include <Cal3.h>
|
GTSAM_EXPORT friend std::ostream & | operator<< (std::ostream &os, const Cal3 &cal) |
| Output stream operator. More...
|
|
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...
|
|
Definition at line 69 of file Cal3.h.
Create a default calibration that leaves coordinates unchanged.
gtsam::Cal3::Cal3 |
( |
double |
fx, |
|
|
double |
fy, |
|
|
double |
s, |
|
|
double |
u0, |
|
|
double |
v0 |
|
) |
| |
|
inline |
constructor from doubles
Definition at line 87 of file Cal3.h.
gtsam::Cal3::Cal3 |
( |
const Vector5 & |
d | ) |
|
|
inline |
constructor from vector
Definition at line 91 of file Cal3.h.
gtsam::Cal3::Cal3 |
( |
double |
fov, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
Easy constructor, takes fov in degrees, asssumes zero skew, unit aspect
- Parameters
-
fov | field of view in degrees |
w | image width |
h | image height |
Definition at line 27 of file Cal3.cpp.
virtual gtsam::Cal3::~Cal3 |
( |
| ) |
|
|
inlinevirtual |
gtsam::Cal3::Cal3 |
( |
const std::string & |
path | ) |
|
Load calibration parameters from calibration_info.txt
file located in path
directory.
The contents of calibration file should be the 5 parameters in order: fx, fy, s, u0, v0
- Parameters
-
path | path to directory containing calibration_info.txt . |
Definition at line 35 of file Cal3.cpp.
double gtsam::Cal3::aspectRatio |
( |
| ) |
const |
|
inline |
aspect ratio
Definition at line 145 of file Cal3.h.
virtual size_t gtsam::Cal3::dim |
( |
| ) |
const |
|
inlinevirtual |
static size_t gtsam::Cal3::Dim |
( |
| ) |
|
|
inlinestatic |
return DOF, dimensionality of tangent space
Definition at line 185 of file Cal3.h.
bool gtsam::Cal3::equals |
( |
const Cal3 & |
K, |
|
|
double |
tol = 10e-9 |
|
) |
| const |
Check if equal up to specified tolerance.
Definition at line 59 of file Cal3.cpp.
double gtsam::Cal3::fx |
( |
| ) |
const |
|
inline |
focal length x
Definition at line 139 of file Cal3.h.
double gtsam::Cal3::fy |
( |
| ) |
const |
|
inline |
focal length y
Definition at line 142 of file Cal3.h.
Matrix3 gtsam::Cal3::inverse |
( |
| ) |
const |
Return inverted calibration matrix inv(K)
Definition at line 65 of file Cal3.cpp.
virtual Matrix3 gtsam::Cal3::K |
( |
| ) |
const |
|
inlinevirtual |
Point2 gtsam::Cal3::principalPoint |
( |
| ) |
const |
|
inline |
return the principal point
Definition at line 157 of file Cal3.h.
void gtsam::Cal3::print |
( |
const std::string & |
s = "" | ) |
const |
|
virtual |
double gtsam::Cal3::px |
( |
| ) |
const |
|
inline |
image center in x
Definition at line 151 of file Cal3.h.
double gtsam::Cal3::py |
( |
| ) |
const |
|
inline |
image center in y
Definition at line 154 of file Cal3.h.
template<class Archive >
void gtsam::Cal3::serialize |
( |
Archive & |
ar, |
|
|
const unsigned |
int |
|
) |
| |
|
inlineprivate |
double gtsam::Cal3::skew |
( |
| ) |
const |
|
inline |
Vector5 gtsam::Cal3::vector |
( |
| ) |
const |
|
inline |
vectorized form (column-wise)
Definition at line 160 of file Cal3.h.
friend class boost::serialization::access |
|
friend |
Serialization function.
Definition at line 193 of file Cal3.h.
GTSAM_EXPORT friend std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Cal3 & |
cal |
|
) |
| |
|
friend |
Output stream operator.
Definition at line 49 of file Cal3.cpp.
double gtsam::Cal3::fx_ = 1.0f |
|
protected |
double gtsam::Cal3::fy_ = 1.0f |
|
protected |
focal length
Definition at line 71 of file Cal3.h.
double gtsam::Cal3::s_ = 0.0f |
|
protected |
skew
Definition at line 72 of file Cal3.h.
double gtsam::Cal3::u0_ = 0.0f |
|
protected |
double gtsam::Cal3::v0_ = 0.0f |
|
protected |
principal point
Definition at line 73 of file Cal3.h.
The documentation for this class was generated from the following files: