GSLAM
3.0.0
|
Camera model used by OpenCV Project: r^2= X^2+Y^2; X1= X*(1+k1*r^2 + k2*r^4+k3*r^6) + 2*p1*XY + p2*(r^2 + 2*X^2); Y1= Y*(1+k1*r^2 + k2*r^4+k3*r^6) + 2*p2*XY + p1*(r^2 + 2*Y^2); (x y)^T=(fx*X1+cx,fy*Y1+cy)^T. More...
Public Member Functions | |
CameraOpenCV (int Width, int Height, double Fx, double Fy, double Cx, double Cy, double K1, double K2, double P1, double P2, double K3) | |
virtual std::string | CameraType () const |
virtual bool | isValid () const |
virtual Point2d | Project (const Point3d &p3d) const |
virtual Point3d | UnProject (const Point2d &p2d) const |
virtual std::vector< double > | getParameters () const |
virtual bool | applyScale (double scale=0.5) |
Public Member Functions inherited from CameraImpl | |
CameraImpl (int _w=-1, int _h=-1) | |
virtual std::string | info () const |
Public Attributes | |
double | fx |
double | fy |
double | cx |
double | cy |
double | fx_inv |
double | fy_inv |
double | k1 |
double | k2 |
double | p1 |
double | p2 |
double | k3 |
Public Attributes inherited from CameraImpl | |
int32_t | w |
int32_t | h |
int32_t | state |
int32_t | tmp |
Camera model used by OpenCV Project: r^2= X^2+Y^2; X1= X*(1+k1*r^2 + k2*r^4+k3*r^6) + 2*p1*XY + p2*(r^2 + 2*X^2); Y1= Y*(1+k1*r^2 + k2*r^4+k3*r^6) + 2*p2*XY + p1*(r^2 + 2*Y^2); (x y)^T=(fx*X1+cx,fy*Y1+cy)^T.
UnProject: