The blo Library
Loading...
Searching...
No Matches
Public Member Functions | Related Functions | List of all members
blo::PushbroomCamera< D, T > Class Template Reference

Pushbroom camera. More...

#include <PushbroomCamera.h>

Public Member Functions

 PushbroomCamera ()
 Default constructor.
 
 PushbroomCamera (const SmallMatrix< T, 2, 4 > &Paffine, const SmallMatrix< T, 2, 4 > &Pperspective)
 Constructs pushbroom camera and sets projection matrices.
 
 PushbroomCamera (const PushbroomCamera &rhs)
 Copy constructor.
 
 PushbroomCamera (PushbroomCamera &&rhs) noexcept
 Move constructor.
 
virtual ~PushbroomCamera ()
 Destructor.
 
PushbroomCamera & operator= (const PushbroomCamera &rhs)
 Copy assignment operator.
 
PushbroomCamera & operator= (PushbroomCamera &&rhs) noexcept
 Move assignment operator.
 
void setProjectionMatrices (const SmallMatrix< T, 2, 4 > &Paffine, const SmallMatrix< T, 2, 4 > &Pperspective)
 Sets projection matrices.
 
void projectionMatrices (SmallMatrix< T, 2, 4 > &Paffine, SmallMatrix< T, 2, 4 > &Pperspective) const
 Retrieves projection matrices.
 
void estimateModelLinear (const Point< T, 3 > *pSrc3D, const Point< T, 2 > *pSrc2D, int count)
 Estimates the pushbroom camera model from point correspondences.
 
const Point< T, 2 > projectPoint3DTo2D (const Point< T, 3 > &src) const
 Projects a 3D point to a 2D point.
 
void projectPoints3DTo2D (const Point< T, 3 > *pSrc, Point< T, 2 > *pDst, int count) const
 Projects 3D points to 2D points.
 

Related Functions

(Note that these are not member functions.)

BLO_EXPIMP_TEMPLATE template class BLO_API PushbroomCamera
 
BLO_EXPIMP_TEMPLATE template class BLO_API PushbroomCamera
 
BLO_EXPIMP_TEMPLATE template class BLO_API PushbroomCamera
 
BLO_EXPIMP_TEMPLATE template class BLO_API PushbroomCamera
 

Detailed Description

template<PushbroomCameraDirection D, typename T>
class blo::PushbroomCamera< D, T >

Pushbroom camera.

Template Parameters
DPushbroom camera direction.
TData type.

Constructor & Destructor Documentation

◆ PushbroomCamera() [1/4]

template<PushbroomCameraDirection D, typename T >
blo::PushbroomCamera< D, T >::PushbroomCamera ( )

Default constructor.

◆ PushbroomCamera() [2/4]

template<PushbroomCameraDirection D, typename T >
blo::PushbroomCamera< D, T >::PushbroomCamera ( const SmallMatrix< T, 2, 4 > &  Paffine,
const SmallMatrix< T, 2, 4 > &  Pperspective 
)

Constructs pushbroom camera and sets projection matrices.

Paffine must have the form [Paffine11, Paffine12, Paffine13, Paffine14; 0, 0, 0, 1]

Parameters
PaffineThe affine projection matrix.
PperspectiveThe perspective projection matrix.

◆ PushbroomCamera() [3/4]

template<PushbroomCameraDirection D, typename T >
blo::PushbroomCamera< D, T >::PushbroomCamera ( const PushbroomCamera< D, T > &  rhs)

Copy constructor.

◆ PushbroomCamera() [4/4]

template<PushbroomCameraDirection D, typename T >
blo::PushbroomCamera< D, T >::PushbroomCamera ( PushbroomCamera< D, T > &&  rhs)
noexcept

Move constructor.

◆ ~PushbroomCamera()

template<PushbroomCameraDirection D, typename T >
virtual blo::PushbroomCamera< D, T >::~PushbroomCamera ( )
virtual

Destructor.

Member Function Documentation

◆ estimateModelLinear()

template<PushbroomCameraDirection D, typename T >
void blo::PushbroomCamera< D, T >::estimateModelLinear ( const Point< T, 3 > *  pSrc3D,
const Point< T, 2 > *  pSrc2D,
int  count 
)

Estimates the pushbroom camera model from point correspondences.

Given 7 or more point correspondences, this function determines the pushbroom camera model using a linear estimation method.

Parameters
pSrc3D,pSrc2DPointers to the point correspondences.
countNumber of point correspondences.

◆ operator=() [1/2]

template<PushbroomCameraDirection D, typename T >
PushbroomCamera & blo::PushbroomCamera< D, T >::operator= ( const PushbroomCamera< D, T > &  rhs)

Copy assignment operator.

◆ operator=() [2/2]

template<PushbroomCameraDirection D, typename T >
PushbroomCamera & blo::PushbroomCamera< D, T >::operator= ( PushbroomCamera< D, T > &&  rhs)
noexcept

Move assignment operator.

◆ projectionMatrices()

template<PushbroomCameraDirection D, typename T >
void blo::PushbroomCamera< D, T >::projectionMatrices ( SmallMatrix< T, 2, 4 > &  Paffine,
SmallMatrix< T, 2, 4 > &  Pperspective 
) const

Retrieves projection matrices.

Parameters
PaffineThe affine projection matrix.
PperspectiveThe perspective projection matrix.

◆ projectPoint3DTo2D()

template<PushbroomCameraDirection D, typename T >
const Point< T, 2 > blo::PushbroomCamera< D, T >::projectPoint3DTo2D ( const Point< T, 3 > &  src) const

Projects a 3D point to a 2D point.

Parameters
srcThe source 3D point.
Returns
The destination 2D point.

◆ projectPoints3DTo2D()

template<PushbroomCameraDirection D, typename T >
void blo::PushbroomCamera< D, T >::projectPoints3DTo2D ( const Point< T, 3 > *  pSrc,
Point< T, 2 > *  pDst,
int  count 
) const

Projects 3D points to 2D points.

Parameters
pSrcPointer to the source 3D points.
pDstPointer to the destination 2D points.
countNumber of points.

◆ setProjectionMatrices()

template<PushbroomCameraDirection D, typename T >
void blo::PushbroomCamera< D, T >::setProjectionMatrices ( const SmallMatrix< T, 2, 4 > &  Paffine,
const SmallMatrix< T, 2, 4 > &  Pperspective 
)

Sets projection matrices.

Paffine must have the form [Paffine11, Paffine12, Paffine13, Paffine14; 0, 0, 0, 1]

Parameters
PaffineThe affine projection matrix.
PperspectiveThe perspective projection matrix.

Friends And Related Function Documentation

◆ PushbroomCamera() [1/4]

◆ PushbroomCamera() [2/4]

◆ PushbroomCamera() [3/4]

◆ PushbroomCamera() [4/4]


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