SLIP
1.4
|
Define a PinholeFaugerasCamera class. More...
#include <PinholeFaugerasCamera.hpp>
Public Member Functions | |
Constructors & Destructors | |
PinholeFaugerasCamera () | |
Default constructor of PinholeFaugerasCamera. More... | |
PinholeFaugerasCamera (const self &rhs) | |
Constructs a copy of the PinholeFaugerasCamera rhs. More... | |
Assignment operators and methods | |
self & | operator= (const self &rhs) |
Assign a PinholeFaugerasCamera. More... | |
Computation methods | |
void | compute (const slip::Matrix< Type > &P) |
Computes the parameters of the pinhole camera model. More... | |
input/output methods | |
void | read (const std::string &file) |
Read a calibration matrix from an ASCII file. More... | |
void | write (const std::string &file) |
Write a calibration matrix to an ASCII file. More... | |
Accessor/Mutator operators | |
slip::Matrix< Type > & | calibration_matrix () const |
Get calibration matrix. More... | |
void | calibration_matrix (const slip::Matrix< Type > &calibration_matrix) |
Set the calibration matrix. More... | |
slip::Matrix< Type > & | d_calibration_matrix () const |
Get back d_calibration matrix. More... | |
void | d_calibration_matrix (const slip::Matrix< Type > &d_calibration_matrix) |
Set the d_calibration matrix. More... | |
Projection methods | |
slip::Point2d< Type > | projection (const slip::Point3d< Type > &p) |
Computes the projection of a 3d world point onto the image plane. More... | |
slip::Point3d< Type > | backprojection (const slip::Point2d< Type > &p2, const Type &z) |
Computes the 3d world point corresponding to the backprojection of an image point. More... | |
Decomposition methods | |
virtual int | decompose (slip::Matrix< Type > &K, slip::Matrix< Type > &R, slip::Vector3d< Type > &c, slip::DECOMP_TYPE flag) |
Decomposes a pinhole camera matrix. More... | |
Public Attributes | |
slip::Matrix< Type > * | calibration_matrix_ |
slip::Matrix< Type > * | d_calibration_matrix_ |
Friends | |
class | boost::serialization::access |
Define a PinholeFaugerasCamera class.
Type | Type of the coordinates of the PinholeFaugerasCamera |
Definition at line 99 of file PinholeFaugerasCamera.hpp.
|
inline |
Default constructor of PinholeFaugerasCamera.
Definition at line 130 of file PinholeFaugerasCamera.hpp.
|
inline |
Constructs a copy of the PinholeFaugerasCamera rhs.
rhs | an other PinholeFaugerasCamera |
Definition at line 138 of file PinholeFaugerasCamera.hpp.
|
inlinevirtualinherited |
Computes the 3d world point corresponding to the backprojection of an image point.
p | Point2d. |
z | Depth coordinate. |
Computes the 3d world point corresponding to the backprojection of an image point.
p | Point2d. |
z | Depth coordinate. |
Implements slip::CameraModel< Type >.
Definition at line 391 of file PinholeCamera.hpp.
|
inlineinherited |
Get calibration matrix.
Definition at line 257 of file PinholeCamera.hpp.
|
inlineinherited |
Set the calibration matrix.
calibration_matrix | Calibration matrix. |
Definition at line 274 of file PinholeCamera.hpp.
|
inlinevirtual |
Computes the parameters of the pinhole camera model.
P | Matrix containing the input data. |
s | Structure containing different parameter settings. |
Reimplemented from slip::PinholeCamera< Type >.
Definition at line 184 of file PinholeFaugerasCamera.hpp.
|
inlineinherited |
Get back d_calibration matrix.
Definition at line 265 of file PinholeCamera.hpp.
|
inlineinherited |
Set the d_calibration matrix.
d_calibration_matrix | Back-calibration matrix. |
Definition at line 286 of file PinholeCamera.hpp.
|
inlinevirtualinherited |
Decomposes a pinhole camera matrix.
K | Matrix containing the internal parameters |
R | Matrix containing the external parameters |
c | Vector3d containing the camera centre |
flag | Flag of type DECOMP_TYPE, can be 'RQ' or 'direct' |
Definition at line 466 of file PinholeCamera.hpp.
|
inline |
Assign a PinholeFaugerasCamera.
Assign elements of PinholeFaugerasCamera in rhs
rhs | PinholeFaugerasCamera to get the values from. |
Definition at line 153 of file PinholeFaugerasCamera.hpp.
|
inlinevirtualinherited |
Computes the projection of a 3d world point onto the image plane.
p | Point3d. |
Implements slip::CameraModel< Type >.
Definition at line 322 of file PinholeCamera.hpp.
|
inlinevirtualinherited |
Read a calibration matrix from an ASCII file.
file | File path name. |
Implements slip::CameraModel< Type >.
Definition at line 193 of file PinholeCamera.hpp.
|
inlinevirtualinherited |
Write a calibration matrix to an ASCII file.
file | File path name. |
Implements slip::CameraModel< Type >.
Definition at line 212 of file PinholeCamera.hpp.
|
friend |
Definition at line 191 of file PinholeFaugerasCamera.hpp.
|
inherited |
Definition at line 490 of file PinholeCamera.hpp.
|
inherited |
Definition at line 491 of file PinholeCamera.hpp.