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

Direct methods processor. More...

#include <DirectMethods.h>

Public Member Functions

 DirectMethods ()
 Default constructor.
 
 DirectMethods (int width, int height)
 Constructs direct methods processor of specified size work buffers.
 
 DirectMethods (const DirectMethods &rhs)
 Copy constructor.
 
 DirectMethods (DirectMethods &&rhs) noexcept
 Move constructor.
 
virtual ~DirectMethods ()
 Destructor.
 
DirectMethods & operator= (const DirectMethods &rhs)
 Copy assignment operator.
 
DirectMethods & operator= (DirectMethods &&rhs) noexcept
 Move assignment operator.
 
void resize (int width, int height)
 Resizes work buffers.
 
void clear ()
 Resizes work buffers to zero width and zero height.
 
int width () const
 Width of the work buffers.
 
int height () const
 Height of the work buffers.
 
void setTolerance (const U &tolerance)
 Sets the termination tolerance.
 
const U tolerance () const
 The termination tolerance.
 
void setMaxIterations (int maxIterations)
 Sets the maximum number of iterations for each level.
 
int maxIterations () const
 The maximum number of iterations for each level.
 
const SmallMatrix< U, 2, 1 > estimateTranslation (const MultiscaleImage< T, C > &pyramid1, const MultiscaleImage< T, C > &pyramid2)
 Estimates the translation.
 
void estimateEuclideanTransformation (const MultiscaleImage< T, C > &pyramid1, const MultiscaleImage< T, C > &pyramid2, SmallMatrix< U, 2, 2 > &R, SmallMatrix< U, 2, 1 > &t)
 Estimates the Euclidean transformation.
 
void estimateSimilarityTransformation (const MultiscaleImage< T, C > &pyramid1, const MultiscaleImage< T, C > &pyramid2, U &s, SmallMatrix< U, 2, 2 > &R, SmallMatrix< U, 2, 1 > &t)
 Estimates the similarity transformation.
 
void estimateAffineTransformation (const MultiscaleImage< T, C > &pyramid1, const MultiscaleImage< T, C > &pyramid2, SmallMatrix< U, 2, 2 > &A, SmallMatrix< U, 2, 1 > &t)
 Estimates the affine transformation.
 
void estimateProjectiveTransformation (const MultiscaleImage< T, C > &pyramid1, const MultiscaleImage< T, C > &pyramid2, SmallMatrix< U, 3, 3 > &H)
 Estimates the projective transformation.
 

Related Functions

(Note that these are not member functions.)

BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 1, int16_t, float >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 1, int16_t, double >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 1, float, float >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 1, float, double >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 3, int16_t, float >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 3, int16_t, double >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 3, float, float >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 3, float, double >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint16_t, 1, float, float >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint16_t, 1, float, double >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint16_t, 3, float, float >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint16_t, 3, float, double >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< float, 1, float, float >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< float, 1, float, double >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< float, 3, float, float >
 
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< float, 3, float, double >
 

Detailed Description

template<typename T, size_t C, typename V, typename U>
class blo::DirectMethods< T, C, V, U >

Direct methods processor.

Template Parameters
TData type of pyramid.
CNumber of channels.
VIntermediate data type.
UData type of linear transform matrix and translation vector.

Constructor & Destructor Documentation

◆ DirectMethods() [1/4]

template<typename T , size_t C, typename V , typename U >
blo::DirectMethods< T, C, V, U >::DirectMethods ( )

Default constructor.

◆ DirectMethods() [2/4]

template<typename T , size_t C, typename V , typename U >
blo::DirectMethods< T, C, V, U >::DirectMethods ( int  width,
int  height 
)

Constructs direct methods processor of specified size work buffers.

Parameters
widthWidth of the work buffers in pixels.
heightHeight of the work buffers in pixels.

◆ DirectMethods() [3/4]

template<typename T , size_t C, typename V , typename U >
blo::DirectMethods< T, C, V, U >::DirectMethods ( const DirectMethods< T, C, V, U > &  rhs)

Copy constructor.

◆ DirectMethods() [4/4]

template<typename T , size_t C, typename V , typename U >
blo::DirectMethods< T, C, V, U >::DirectMethods ( DirectMethods< T, C, V, U > &&  rhs)
noexcept

Move constructor.

◆ ~DirectMethods()

template<typename T , size_t C, typename V , typename U >
virtual blo::DirectMethods< T, C, V, U >::~DirectMethods ( )
virtual

Destructor.

Member Function Documentation

◆ clear()

template<typename T , size_t C, typename V , typename U >
void blo::DirectMethods< T, C, V, U >::clear ( )

Resizes work buffers to zero width and zero height.

◆ estimateAffineTransformation()

template<typename T , size_t C, typename V , typename U >
void blo::DirectMethods< T, C, V, U >::estimateAffineTransformation ( const MultiscaleImage< T, C > &  pyramid1,
const MultiscaleImage< T, C > &  pyramid2,
SmallMatrix< U, 2, 2 > &  A,
SmallMatrix< U, 2, 1 > &  t 
)

Estimates the affine transformation.

Given 2 Gaussian pyramids, this function determines the affine transformation from pyramid1 (level 0) to pyramid2 (level 0).
If necessary, the work buffers are resized.

Parameters
pyramid1,pyramid2The source pyramids.
AThe linear transform matrix.
tThe translation vector.

◆ estimateEuclideanTransformation()

template<typename T , size_t C, typename V , typename U >
void blo::DirectMethods< T, C, V, U >::estimateEuclideanTransformation ( const MultiscaleImage< T, C > &  pyramid1,
const MultiscaleImage< T, C > &  pyramid2,
SmallMatrix< U, 2, 2 > &  R,
SmallMatrix< U, 2, 1 > &  t 
)

Estimates the Euclidean transformation.

Given 2 Gaussian pyramids, this function determines the Euclidean transformation from pyramid1 (level 0) to pyramid2 (level 0). If necessary, the work buffers are resized.

Parameters
pyramid1,pyramid2The source pyramids.
RThe rotation matrix.
tThe translation vector.

◆ estimateProjectiveTransformation()

template<typename T , size_t C, typename V , typename U >
void blo::DirectMethods< T, C, V, U >::estimateProjectiveTransformation ( const MultiscaleImage< T, C > &  pyramid1,
const MultiscaleImage< T, C > &  pyramid2,
SmallMatrix< U, 3, 3 > &  H 
)

Estimates the projective transformation.

Given 2 Gaussian pyramids, this function determines the projective transformation from pyramid1 (level 0) to pyramid2 (level 0). If necessary, the work buffers are resized.

Parameters
pyramid1,pyramid2The source pyramids.
HThe projective transformation matrix.

◆ estimateSimilarityTransformation()

template<typename T , size_t C, typename V , typename U >
void blo::DirectMethods< T, C, V, U >::estimateSimilarityTransformation ( const MultiscaleImage< T, C > &  pyramid1,
const MultiscaleImage< T, C > &  pyramid2,
U &  s,
SmallMatrix< U, 2, 2 > &  R,
SmallMatrix< U, 2, 1 > &  t 
)

Estimates the similarity transformation.

Given 2 Gaussian pyramids, this function determines the similarity transformation from pyramid1 (level 0) to pyramid2 (level 0). If necessary, the work buffers are resized.

Parameters
pyramid1,pyramid2The source pyramids.
sThe scale.
RThe rotation matrix.
tThe translation vector.

◆ estimateTranslation()

template<typename T , size_t C, typename V , typename U >
const SmallMatrix< U, 2, 1 > blo::DirectMethods< T, C, V, U >::estimateTranslation ( const MultiscaleImage< T, C > &  pyramid1,
const MultiscaleImage< T, C > &  pyramid2 
)

Estimates the translation.

Given 2 Gaussian pyramids, this function determines the translation from pyramid1 (level 0) to pyramid2 (level 0).
If necessary, the work buffers are resized.

Parameters
pyramid1,pyramid2The source pyramids.
Returns
The translation vector.

◆ height()

template<typename T , size_t C, typename V , typename U >
int blo::DirectMethods< T, C, V, U >::height ( ) const

Height of the work buffers.

Returns
Height of the work buffers in pixels.

◆ maxIterations()

template<typename T , size_t C, typename V , typename U >
int blo::DirectMethods< T, C, V, U >::maxIterations ( ) const

The maximum number of iterations for each level.

Returns
maxIterations The maximum number of iterations for each level.

◆ operator=() [1/2]

template<typename T , size_t C, typename V , typename U >
DirectMethods & blo::DirectMethods< T, C, V, U >::operator= ( const DirectMethods< T, C, V, U > &  rhs)

Copy assignment operator.

◆ operator=() [2/2]

template<typename T , size_t C, typename V , typename U >
DirectMethods & blo::DirectMethods< T, C, V, U >::operator= ( DirectMethods< T, C, V, U > &&  rhs)
noexcept

Move assignment operator.

◆ resize()

template<typename T , size_t C, typename V , typename U >
void blo::DirectMethods< T, C, V, U >::resize ( int  width,
int  height 
)

Resizes work buffers.

Parameters
widthWidth in pixels to resize work buffers to.
heightHeight in pixels to resize work buffers to.

◆ setMaxIterations()

template<typename T , size_t C, typename V , typename U >
void blo::DirectMethods< T, C, V, U >::setMaxIterations ( int  maxIterations)

Sets the maximum number of iterations for each level.

Parameters
maxIterationsThe maximum number of iterations for each level.

◆ setTolerance()

template<typename T , size_t C, typename V , typename U >
void blo::DirectMethods< T, C, V, U >::setTolerance ( const U &  tolerance)

Sets the termination tolerance.

Parameters
toleranceThe termination tolerance.

◆ tolerance()

template<typename T , size_t C, typename V , typename U >
const U blo::DirectMethods< T, C, V, U >::tolerance ( ) const

The termination tolerance.

Returns
tolerance The termination tolerance.

◆ width()

template<typename T , size_t C, typename V , typename U >
int blo::DirectMethods< T, C, V, U >::width ( ) const

Width of the work buffers.

Returns
Width of the work buffers in pixels.

Friends And Related Function Documentation

◆ DirectMethods< float, 1, float, double >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< float, 1, float, double >
related

◆ DirectMethods< float, 1, float, float >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< float, 1, float, float >
related

◆ DirectMethods< float, 3, float, double >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< float, 3, float, double >
related

◆ DirectMethods< float, 3, float, float >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< float, 3, float, float >
related

◆ DirectMethods< uint16_t, 1, float, double >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint16_t, 1, float, double >
related

◆ DirectMethods< uint16_t, 1, float, float >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint16_t, 1, float, float >
related

◆ DirectMethods< uint16_t, 3, float, double >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint16_t, 3, float, double >
related

◆ DirectMethods< uint16_t, 3, float, float >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint16_t, 3, float, float >
related

◆ DirectMethods< uint8_t, 1, float, double >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 1, float, double >
related

◆ DirectMethods< uint8_t, 1, float, float >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 1, float, float >
related

◆ DirectMethods< uint8_t, 1, int16_t, double >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 1, int16_t, double >
related

◆ DirectMethods< uint8_t, 1, int16_t, float >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 1, int16_t, float >
related

◆ DirectMethods< uint8_t, 3, float, double >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 3, float, double >
related

◆ DirectMethods< uint8_t, 3, float, float >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 3, float, float >
related

◆ DirectMethods< uint8_t, 3, int16_t, double >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 3, int16_t, double >
related

◆ DirectMethods< uint8_t, 3, int16_t, float >

template<typename T , size_t C, typename V , typename U >
BLO_EXPIMP_TEMPLATE template class BLO_API DirectMethods< uint8_t, 3, int16_t, float >
related

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