SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Friends | List of all members
slip::CameraModel< Type > Class Template Referenceabstract

Define an abstract CameraModel class. More...

#include <CameraModel.hpp>

Inheritance diagram for slip::CameraModel< Type >:
Inheritance graph

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
selfoperator= (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
 

Detailed Description

template<typename Type>
class slip::CameraModel< Type >

Define an abstract CameraModel class.

Author
Benoit Tremblais <tremblais_AT_sic.univ-poitiers.fr>
Guillaume Gomit <guillaume.gomit_AT_univ-poitiers.fr>
Version
0.0.2
Date
2014/03/25
Since
1.2.0
Parameters
TypeType of the coordinates of the CameraModel

Definition at line 93 of file CameraModel.hpp.

Constructor & Destructor Documentation

template<typename Type >
slip::CameraModel< Type >::CameraModel ( const self other)
inline

Constructs a copy of the CameraModel rhs.

Parameters
other

Definition at line 252 of file CameraModel.hpp.

template<typename Type >
slip::CameraModel< Type >::~CameraModel ( )
inlinevirtual

Destructor of the CameraModel.

Definition at line 258 of file CameraModel.hpp.

template<typename Type >
slip::CameraModel< Type >::CameraModel ( )
inlineprotected

Default constructor of CameraModel.

Definition at line 247 of file CameraModel.hpp.

Member Function Documentation

template<typename Type>
virtual slip::Point3d<Type> slip::CameraModel< Type >::backprojection ( const slip::Point2d< Type > &  p2,
const Type &  z 
)
pure virtual

Computes the 3d world point corresponding to the backprojection of an image point.

Parameters
pPoint2d.
zDepth coordinate.
Returns
Point3d

Implemented in slip::SoloffCamera< Type >, slip::PinholeCamera< Type >, and slip::DistortionCamera< Type >.

template<typename Type>
virtual void slip::CameraModel< Type >::compute ( const slip::Matrix< Type > &  P)
pure virtual

Computes the parameters of a camera model.

Parameters
PMatrix containing the input data.

Implemented in slip::SoloffCamera< Type >, slip::PinholeCamera< Type >, slip::DistortionCamera< Type >, slip::PinholeFaugerasCamera< Type >, and slip::PinholeDLTCamera< Type >.

template<typename Type >
CameraModel< Type > & slip::CameraModel< Type >::operator= ( const self other)
inline

Assign a CameraModel.

Assign elements of CameraModel in other

Parameters
otherCameraModel to get the values from.
Returns
self

Definition at line 264 of file CameraModel.hpp.

template<typename Type>
virtual slip::Point2d<Type> slip::CameraModel< Type >::projection ( const slip::Point3d< Type > &  p)
pure virtual

Computes the projection of a 3d world point onto the image plane.

Parameters
pPoint3d.
Returns
Point2d

Implemented in slip::SoloffCamera< Type >, slip::PinholeCamera< Type >, and slip::DistortionCamera< Type >.

template<typename Type>
virtual void slip::CameraModel< Type >::read ( const std::string &  file)
pure virtual

Read the CameraModel from a file.

Parameters
fileFile path name.

Implemented in slip::SoloffCamera< Type >, slip::DistortionCamera< Type >, and slip::PinholeCamera< Type >.

template<typename Type>
virtual void slip::CameraModel< Type >::write ( const std::string &  file)
pure virtual

Write the CameraModel to a file.

Parameters
fileFile path name.

Implemented in slip::SoloffCamera< Type >, slip::DistortionCamera< Type >, and slip::PinholeCamera< Type >.

Friends And Related Function Documentation

template<typename Type>
friend class boost::serialization::access
friend

Definition at line 227 of file CameraModel.hpp.


The documentation for this class was generated from the following file: