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

Points over multiple views. More...

#include <PointsViews.h>

Public Member Functions

 PointsViews ()
 Default constructor.
 
 PointsViews (const PointsViews &rhs)
 Copy constructor.
 
 PointsViews (PointsViews &&rhs) noexcept
 Move constructor.
 
virtual ~PointsViews ()
 Destructor.
 
PointsViews & operator= (const PointsViews &rhs)
 Copy Assignment operator.
 
PointsViews & operator= (PointsViews &&rhs) noexcept
 Move Assignment operator.
 
void clear ()
 Clears all points and views.
 
bool empty () const
 Tests if there are any points or views.
 
int numScenePoints () const
 Number of scene points.
 
int numViews () const
 Number of views.
 
void viewNumbers (int *pDstViewNumbers) const
 View numbers.
 
int numPointsInView (int viewNumber) const
 Number of image points at specified view number.
 
void pointsInView (int viewNumber, T *pDst, int *pDstScenePointNumbers) const
 Image points and their corresponding scene point numbers at specified view number.
 
int numViewsOfScenePoint (int scenePointNumber) const
 Number of views of specified scene point number.
 
void viewsOfScenePoint (int scenePointNumber, T *pDst, int *pDstViewNumbers) const
 Corresponding image points and their associated view numbers of specified scene point.
 
int insertViewOfScenePoint (const T &src, int viewNumber)
 Insert image point and its associated view number of a new scene point.
 
void insertViewOfScenePoint (const T &src, int viewNumber, int scenePointNumber)
 Insert image point and its associated view number of a specified scene point.
 
int insertViewsOfScenePoint (const T *pSrc, const int *pSrcViewNumbers, int count)
 Insert set of corresponding image points and their associated view numbers of a new scene point.
 
void insertViewsOfScenePoint (const T *pSrc, const int *pSrcViewNumbers, int count, int scenePointNumber)
 Insert set of corresponding image points and their associated view numbers of a specified scene point.
 
void insertViewOfScenePoints (const T *pSrc, int *pDstScenePointNumbers, int count, int viewNumber)
 Insert set of image points and their associated view number of new scene points.
 
void insertViewOfScenePoints (const int *pSrcScenePointNumbers, const T *pSrc, int count, int viewNumber)
 Insert set of image points and their associated view number of specified scene points.
 
void removeViewOfScenePoint (int viewNumber, int scenePointNumber)
 Remove view of a scene point.
 
void removeViewsOfScenePoint (const int *pSrcViewNumbers, int count, int scenePointNumber)
 Remove views of a scene point.
 
void removeViewOfScenePoints (const int *pSrcScenePointNumbers, int count, int viewNumber)
 Remove view of scene points.
 

Related Functions

(Note that these are not member functions.)

BLO_EXPIMP_TEMPLATE template class BLO_API PointsViews< Point< double, 2 > >
 
BLO_EXPIMP_TEMPLATE template class BLO_API PointsViews< Point< float, 2 > >
 
BLO_EXPIMP_TEMPLATE template class BLO_API PointsViews< PointCov< double, 2 > >
 
BLO_EXPIMP_TEMPLATE template class BLO_API PointsViews< PointCov< float, 2 > >
 

Detailed Description

template<typename T>
class blo::PointsViews< T >

Points over multiple views.

Template Parameters
TData type.

Constructor & Destructor Documentation

◆ PointsViews() [1/3]

template<typename T >
blo::PointsViews< T >::PointsViews ( )

Default constructor.

◆ PointsViews() [2/3]

template<typename T >
blo::PointsViews< T >::PointsViews ( const PointsViews< T > &  rhs)

Copy constructor.

◆ PointsViews() [3/3]

template<typename T >
blo::PointsViews< T >::PointsViews ( PointsViews< T > &&  rhs)
noexcept

Move constructor.

◆ ~PointsViews()

template<typename T >
virtual blo::PointsViews< T >::~PointsViews ( )
virtual

Destructor.

Member Function Documentation

◆ clear()

template<typename T >
void blo::PointsViews< T >::clear ( )

Clears all points and views.

◆ empty()

template<typename T >
bool blo::PointsViews< T >::empty ( ) const

Tests if there are any points or views.

Returns
true if there are no points or views, false otherwise.

◆ insertViewOfScenePoint() [1/2]

template<typename T >
int blo::PointsViews< T >::insertViewOfScenePoint ( const T &  src,
int  viewNumber 
)

Insert image point and its associated view number of a new scene point.

Parameters
srcImage point.
viewNumberView number.
Returns
Scene point number.

◆ insertViewOfScenePoint() [2/2]

template<typename T >
void blo::PointsViews< T >::insertViewOfScenePoint ( const T &  src,
int  viewNumber,
int  scenePointNumber 
)

Insert image point and its associated view number of a specified scene point.

Parameters
srcImage point.
viewNumberView number.
scenePointNumberScene point number.

◆ insertViewOfScenePoints() [1/2]

template<typename T >
void blo::PointsViews< T >::insertViewOfScenePoints ( const int *  pSrcScenePointNumbers,
const T *  pSrc,
int  count,
int  viewNumber 
)

Insert set of image points and their associated view number of specified scene points.

Parameters
pSrcScenePointNumbersPointer to the source set of scene points.
pSrcPointer to the source set of image points.
countNumber of image points and scene points.
viewNumberView number.

◆ insertViewOfScenePoints() [2/2]

template<typename T >
void blo::PointsViews< T >::insertViewOfScenePoints ( const T *  pSrc,
int *  pDstScenePointNumbers,
int  count,
int  viewNumber 
)

Insert set of image points and their associated view number of new scene points.

Parameters
pSrcPointer to the source set of image points.
pDstScenePointNumbersPointer to the destination set of scene points.
countNumber of image points and scene points.
viewNumberView number.

◆ insertViewsOfScenePoint() [1/2]

template<typename T >
int blo::PointsViews< T >::insertViewsOfScenePoint ( const T *  pSrc,
const int *  pSrcViewNumbers,
int  count 
)

Insert set of corresponding image points and their associated view numbers of a new scene point.

Parameters
pSrcPointer to the source set of image point correspondences.
pSrcViewNumbersPointer to the set of view numbers.
countNumber of image points and view numbers.
Returns
Scene point number.

◆ insertViewsOfScenePoint() [2/2]

template<typename T >
void blo::PointsViews< T >::insertViewsOfScenePoint ( const T *  pSrc,
const int *  pSrcViewNumbers,
int  count,
int  scenePointNumber 
)

Insert set of corresponding image points and their associated view numbers of a specified scene point.

Parameters
pSrcPointer to the source set of image point correspondences.
pSrcViewNumbersPointer to the set of view numbers.
countNumber of image points and view numbers.
scenePointNumberScene point number.

◆ numPointsInView()

template<typename T >
int blo::PointsViews< T >::numPointsInView ( int  viewNumber) const

Number of image points at specified view number.

Parameters
viewNumberView number.
Returns
Number of image points at specified view number.

◆ numScenePoints()

template<typename T >
int blo::PointsViews< T >::numScenePoints ( ) const

Number of scene points.

Returns
Number of scene points.

◆ numViews()

template<typename T >
int blo::PointsViews< T >::numViews ( ) const

Number of views.

Returns
Number of views.

◆ numViewsOfScenePoint()

template<typename T >
int blo::PointsViews< T >::numViewsOfScenePoint ( int  scenePointNumber) const

Number of views of specified scene point number.

Parameters
scenePointNumberScene point number.
Returns
Number of views of specified scene point number.

◆ operator=() [1/2]

template<typename T >
PointsViews & blo::PointsViews< T >::operator= ( const PointsViews< T > &  rhs)

Copy Assignment operator.

◆ operator=() [2/2]

template<typename T >
PointsViews & blo::PointsViews< T >::operator= ( PointsViews< T > &&  rhs)
noexcept

Move Assignment operator.

◆ pointsInView()

template<typename T >
void blo::PointsViews< T >::pointsInView ( int  viewNumber,
T *  pDst,
int *  pDstScenePointNumbers 
) const

Image points and their corresponding scene point numbers at specified view number.

Size of dst and dstScenePointNumbers must be at least numPointsInView().

Parameters
viewNumberView number.
pDstPointer to the destination image points.
pDstScenePointNumbersPointer to the destination scene point numbers.

◆ removeViewOfScenePoint()

template<typename T >
void blo::PointsViews< T >::removeViewOfScenePoint ( int  viewNumber,
int  scenePointNumber 
)

Remove view of a scene point.

Parameters
viewNumberView number.
scenePointNumberScene point number.

◆ removeViewOfScenePoints()

template<typename T >
void blo::PointsViews< T >::removeViewOfScenePoints ( const int *  pSrcScenePointNumbers,
int  count,
int  viewNumber 
)

Remove view of scene points.

Parameters
pSrcScenePointNumbersPointer to the source set of scene points.
countNumber of scene points.
viewNumberView number.

◆ removeViewsOfScenePoint()

template<typename T >
void blo::PointsViews< T >::removeViewsOfScenePoint ( const int *  pSrcViewNumbers,
int  count,
int  scenePointNumber 
)

Remove views of a scene point.

Parameters
pSrcViewNumbersPointer to the set of view numbers.
countNumber of view numbers.
scenePointNumberScene point number.

◆ viewNumbers()

template<typename T >
void blo::PointsViews< T >::viewNumbers ( int *  pDstViewNumbers) const

View numbers.

Size of dstViewNumbers must be at least numViews().

Parameters
pDstViewNumbersPointer to the destination view numbers.

◆ viewsOfScenePoint()

template<typename T >
void blo::PointsViews< T >::viewsOfScenePoint ( int  scenePointNumber,
T *  pDst,
int *  pDstViewNumbers 
) const

Corresponding image points and their associated view numbers of specified scene point.

Size of dst and dstViewNumbers must be at least numViewsOfScenePoint().

Parameters
scenePointNumberScene point number.
pDstPointer to the destination image points.
pDstViewNumbersPointer to the destination view numbers.

Friends And Related Function Documentation

◆ PointsViews< Point< double, 2 > >

template<typename T >
BLO_EXPIMP_TEMPLATE template class BLO_API PointsViews< Point< double, 2 > >
related

◆ PointsViews< Point< float, 2 > >

template<typename T >
BLO_EXPIMP_TEMPLATE template class BLO_API PointsViews< Point< float, 2 > >
related

◆ PointsViews< PointCov< double, 2 > >

template<typename T >
BLO_EXPIMP_TEMPLATE template class BLO_API PointsViews< PointCov< double, 2 > >
related

◆ PointsViews< PointCov< float, 2 > >

template<typename T >
BLO_EXPIMP_TEMPLATE template class BLO_API PointsViews< PointCov< float, 2 > >
related

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