SLIP
1.4
|
Define an abstract CameraModel class. More...
#include <CameraModel.hpp>
Public Member Functions | |
Constructors & Destructors | |
CameraModel (const self &other) | |
Constructs a copy of the CameraModel rhs. More... | |
virtual | ~CameraModel () |
Destructor of the CameraModel. More... | |
i/o methods | |
virtual void | read (const std::string &file)=0 |
Read the CameraModel from a file. More... | |
virtual void | write (const std::string &file)=0 |
Write the CameraModel to a file. More... | |
Assignment operators and methods | |
self & | operator= (const self &other) |
Assign a CameraModel. More... | |
Projection methods | |
virtual slip::Point2d< Type > | projection (const slip::Point3d< Type > &p)=0 |
Computes the projection of a 3d world point onto the image plane. More... | |
virtual slip::Point3d< Type > | backprojection (const slip::Point2d< Type > &p2, const Type &z)=0 |
Computes the 3d world point corresponding to the backprojection of an image point. More... | |
Computation methods | |
virtual void | compute (const slip::Matrix< Type > &P)=0 |
Computes the parameters of a camera model. More... | |
Protected Member Functions | |
Constructors | |
CameraModel () | |
Default constructor of CameraModel. More... | |
Friends | |
class | boost::serialization::access |
Define an abstract CameraModel class.
Type | Type of the coordinates of the CameraModel |
Definition at line 93 of file CameraModel.hpp.
|
inline |
Constructs a copy of the CameraModel rhs.
other |
Definition at line 252 of file CameraModel.hpp.
|
inlinevirtual |
Destructor of the CameraModel.
Definition at line 258 of file CameraModel.hpp.
|
inlineprotected |
Default constructor of CameraModel.
Definition at line 247 of file CameraModel.hpp.
|
pure virtual |
Computes the 3d world point corresponding to the backprojection of an image point.
p | Point2d. |
z | Depth coordinate. |
Implemented in slip::SoloffCamera< Type >, slip::PinholeCamera< Type >, and slip::DistortionCamera< Type >.
|
pure virtual |
Computes the parameters of a camera model.
P | Matrix containing the input data. |
Implemented in slip::SoloffCamera< Type >, slip::PinholeCamera< Type >, slip::DistortionCamera< Type >, slip::PinholeFaugerasCamera< Type >, and slip::PinholeDLTCamera< Type >.
|
inline |
Assign a CameraModel.
Assign elements of CameraModel in other
other | CameraModel to get the values from. |
Definition at line 264 of file CameraModel.hpp.
|
pure virtual |
Computes the projection of a 3d world point onto the image plane.
p | Point3d. |
Implemented in slip::SoloffCamera< Type >, slip::PinholeCamera< Type >, and slip::DistortionCamera< Type >.
|
pure virtual |
Read the CameraModel from a file.
file | File path name. |
Implemented in slip::SoloffCamera< Type >, slip::DistortionCamera< Type >, and slip::PinholeCamera< Type >.
|
pure virtual |
Write the CameraModel to a file.
file | File path name. |
Implemented in slip::SoloffCamera< Type >, slip::DistortionCamera< Type >, and slip::PinholeCamera< Type >.
|
friend |
Definition at line 227 of file CameraModel.hpp.