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

Image geometric transform processor. More...

#include <ImageGeometricTransform.h>

Public Member Functions

 ImageGeometricTransform ()
 Constructs image geometric transform processor.
 
 ImageGeometricTransform (const ImageGeometricTransform &rhs)
 Copy constructor.
 
 ImageGeometricTransform (ImageGeometricTransform &&rhs) noexcept
 Move constructor.
 
virtual ~ImageGeometricTransform ()
 Destructor.
 
ImageGeometricTransform & operator= (const ImageGeometricTransform &rhs)
 Copy assignment operator.
 
ImageGeometricTransform & operator= (ImageGeometricTransform &&rhs) noexcept
 Move assignment operator.
 
template<typename U >
void resize (int srcRoiWidth, int srcRoiHeight, int dstRoiWidth, int dstRoiHeight, const SmallMatrix< U, 2, 1 > &t)
 Resizes work buffers.
 
template<typename U >
void resize (int srcRoiWidth, int srcRoiHeight, int dstRoiWidth, int dstRoiHeight, const SmallMatrix< U, 2, 2 > &A, const SmallMatrix< U, 2, 1 > &t)
 Resizes work buffers.
 
template<typename U >
void resize (int srcRoiWidth, int srcRoiHeight, int dstRoiWidth, int dstRoiHeight, const SmallMatrix< U, 3, 3 > &H)
 Resizes work buffers.
 
void clear ()
 Resizes work buffers to zero.
 
template<typename U >
void translate (const T *pSrc, int srcStep, int srcRoiWidth, int srcRoiHeight, T *pDst, int dstStep, int dstRoiWidth, int dstRoiHeight, const SmallMatrix< U, 2, 1 > &t)
 Translates an image.
 
template<typename U >
void transform (const T *pSrc, int srcStep, int srcRoiWidth, int srcRoiHeight, T *pDst, int dstStep, int dstRoiWidth, int dstRoiHeight, const SmallMatrix< U, 2, 2 > &A, const SmallMatrix< U, 2, 1 > &t)
 Transforms an image.
 
template<typename U >
void transform (const T *pSrc, int srcStep, int srcRoiWidth, int srcRoiHeight, T *pDst, int dstStep, int dstRoiWidth, int dstRoiHeight, const SmallMatrix< U, 3, 3 > &H)
 Transforms an image.
 

Related Functions

(Note that these are not member functions.)

BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform
 

Detailed Description

template<Interpolation I, typename T, size_t C>
class blo::ImageGeometricTransform< I, T, C >

Image geometric transform processor.

Template Parameters
IInterpolation method.
TData type of image.
CNumber of channels.

Constructor & Destructor Documentation

◆ ImageGeometricTransform() [1/3]

template<Interpolation I, typename T , size_t C>
blo::ImageGeometricTransform< I, T, C >::ImageGeometricTransform ( )

Constructs image geometric transform processor.

◆ ImageGeometricTransform() [2/3]

template<Interpolation I, typename T , size_t C>
blo::ImageGeometricTransform< I, T, C >::ImageGeometricTransform ( const ImageGeometricTransform< I, T, C > &  rhs)

Copy constructor.

◆ ImageGeometricTransform() [3/3]

template<Interpolation I, typename T , size_t C>
blo::ImageGeometricTransform< I, T, C >::ImageGeometricTransform ( ImageGeometricTransform< I, T, C > &&  rhs)
noexcept

Move constructor.

◆ ~ImageGeometricTransform()

template<Interpolation I, typename T , size_t C>
virtual blo::ImageGeometricTransform< I, T, C >::~ImageGeometricTransform ( )
virtual

Destructor.

Member Function Documentation

◆ clear()

template<Interpolation I, typename T , size_t C>
void blo::ImageGeometricTransform< I, T, C >::clear ( )

Resizes work buffers to zero.

◆ operator=() [1/2]

template<Interpolation I, typename T , size_t C>
ImageGeometricTransform & blo::ImageGeometricTransform< I, T, C >::operator= ( const ImageGeometricTransform< I, T, C > &  rhs)

Copy assignment operator.

◆ operator=() [2/2]

template<Interpolation I, typename T , size_t C>
ImageGeometricTransform & blo::ImageGeometricTransform< I, T, C >::operator= ( ImageGeometricTransform< I, T, C > &&  rhs)
noexcept

Move assignment operator.

◆ resize() [1/3]

template<Interpolation I, typename T , size_t C>
template<typename U >
void blo::ImageGeometricTransform< I, T, C >::resize ( int  srcRoiWidth,
int  srcRoiHeight,
int  dstRoiWidth,
int  dstRoiHeight,
const SmallMatrix< U, 2, 1 > &  t 
)

Resizes work buffers.

Parameters
srcRoiWidthWidth of the source image ROI in pixels to resize work buffers to.
srcRoiHeightHeight of the source image ROI in pixels to resize work buffers to.
dstRoiWidthWidth of the destination image ROI in pixels to resize work buffers to.
dstRoiHeightHeight of the destination image ROI in pixels to resize work buffers to.
tThe translation vector to resize work buffers to.
Template Parameters
UData type of translation.

◆ resize() [2/3]

template<Interpolation I, typename T , size_t C>
template<typename U >
void blo::ImageGeometricTransform< I, T, C >::resize ( int  srcRoiWidth,
int  srcRoiHeight,
int  dstRoiWidth,
int  dstRoiHeight,
const SmallMatrix< U, 2, 2 > &  A,
const SmallMatrix< U, 2, 1 > &  t 
)

Resizes work buffers.

Parameters
srcRoiWidthWidth of the source image ROI in pixels to resize work buffers to.
srcRoiHeightHeight of the source image ROI in pixels to resize work buffers to.
dstRoiWidthWidth of the destination image ROI in pixels to resize work buffers to.
dstRoiHeightHeight of the destination image ROI in pixels to resize work buffers to.
AThe rotation or linear transformation matrix to resize work buffers to.
tThe translation vector to resize work buffers to.
Template Parameters
UData type of affine transformation.

◆ resize() [3/3]

template<Interpolation I, typename T , size_t C>
template<typename U >
void blo::ImageGeometricTransform< I, T, C >::resize ( int  srcRoiWidth,
int  srcRoiHeight,
int  dstRoiWidth,
int  dstRoiHeight,
const SmallMatrix< U, 3, 3 > &  H 
)

Resizes work buffers.

Parameters
srcRoiWidthWidth of the source image ROI in pixels to resize work buffers to.
srcRoiHeightHeight of the source image ROI in pixels to resize work buffers to.
dstRoiWidthWidth of the destination image ROI in pixels to resize work buffers to.
dstRoiHeightHeight of the destination image ROI in pixels to resize work buffers to.
HThe transformation matrix to resize work buffers to.
Template Parameters
UData type of projective transformation.

◆ transform() [1/2]

template<Interpolation I, typename T , size_t C>
template<typename U >
void blo::ImageGeometricTransform< I, T, C >::transform ( const T *  pSrc,
int  srcStep,
int  srcRoiWidth,
int  srcRoiHeight,
T *  pDst,
int  dstStep,
int  dstRoiWidth,
int  dstRoiHeight,
const SmallMatrix< U, 2, 2 > &  A,
const SmallMatrix< U, 2, 1 > &  t 
)

Transforms an image.

Parameters
pSrcPointer to the source image.
srcStepStep in bytes between the rows in the source image.
srcRoiWidthWidth of the source image ROI in pixels.
srcRoiHeightHeight of the source image ROI in pixels.
pDstPointer to the destination image.
dstStepStep in bytes between the rows in the destination image.
dstRoiWidthWidth of the destination image ROI in pixels.
dstRoiHeightHeight of the destination image ROI in pixels.
AThe rotation or linear transformation matrix.
tThe translation vector.
Template Parameters
UData type of affine transformation.

◆ transform() [2/2]

template<Interpolation I, typename T , size_t C>
template<typename U >
void blo::ImageGeometricTransform< I, T, C >::transform ( const T *  pSrc,
int  srcStep,
int  srcRoiWidth,
int  srcRoiHeight,
T *  pDst,
int  dstStep,
int  dstRoiWidth,
int  dstRoiHeight,
const SmallMatrix< U, 3, 3 > &  H 
)

Transforms an image.

Parameters
pSrcPointer to the source image.
srcStepStep in bytes between the rows in the source image.
srcRoiWidthWidth of the source image ROI in pixels.
srcRoiHeightHeight of the source image ROI in pixels.
pDstPointer to the destination image.
dstStepStep in bytes between the rows in the destination image.
dstRoiWidthWidth of the destination image ROI in pixels.
dstRoiHeightHeight of the destination image ROI in pixels.
HThe transformation matrix.
Template Parameters
UData type of projective transformation.

◆ translate()

template<Interpolation I, typename T , size_t C>
template<typename U >
void blo::ImageGeometricTransform< I, T, C >::translate ( const T *  pSrc,
int  srcStep,
int  srcRoiWidth,
int  srcRoiHeight,
T *  pDst,
int  dstStep,
int  dstRoiWidth,
int  dstRoiHeight,
const SmallMatrix< U, 2, 1 > &  t 
)

Translates an image.

Parameters
pSrcPointer to the source image.
srcStepStep in bytes between the rows in the source image.
srcRoiWidthWidth of the source image ROI in pixels.
srcRoiHeightHeight of the source image ROI in pixels.
pDstPointer to the destination image.
dstStepStep in bytes between the rows in the destination image.
dstRoiWidthWidth of the destination image ROI in pixels.
dstRoiHeightHeight of the destination image ROI in pixels.
tThe translation vector.
Template Parameters
UData type of translation.

Friends And Related Function Documentation

◆ ImageGeometricTransform() [1/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, uint8_t, 1 >
related

◆ ImageGeometricTransform() [2/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, uint8_t, 3 >
related

◆ ImageGeometricTransform() [3/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, uint8_t, 4 >
related

◆ ImageGeometricTransform() [4/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, uint16_t, 1 >
related

◆ ImageGeometricTransform() [5/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, uint16_t, 3 >
related

◆ ImageGeometricTransform() [6/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, uint16_t, 4 >
related

◆ ImageGeometricTransform() [7/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, float, 1 >
related

◆ ImageGeometricTransform() [8/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, float, 3 >
related

◆ ImageGeometricTransform() [9/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, float, 4 >
related

◆ ImageGeometricTransform() [10/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, double, 1 >
related

◆ ImageGeometricTransform() [11/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, double, 3 >
related

◆ ImageGeometricTransform() [12/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::nearestNeighbor, double, 4 >
related

◆ ImageGeometricTransform() [13/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, uint8_t, 1 >
related

◆ ImageGeometricTransform() [14/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, uint8_t, 3 >
related

◆ ImageGeometricTransform() [15/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, uint8_t, 4 >
related

◆ ImageGeometricTransform() [16/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, uint16_t, 1 >
related

◆ ImageGeometricTransform() [17/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, uint16_t, 3 >
related

◆ ImageGeometricTransform() [18/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, uint16_t, 4 >
related

◆ ImageGeometricTransform() [19/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, float, 1 >
related

◆ ImageGeometricTransform() [20/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, float, 3 >
related

◆ ImageGeometricTransform() [21/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, float, 4 >
related

◆ ImageGeometricTransform() [22/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, double, 1 >
related

◆ ImageGeometricTransform() [23/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, double, 3 >
related

◆ ImageGeometricTransform() [24/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::linear, double, 4 >
related

◆ ImageGeometricTransform() [25/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, uint8_t, 1 >
related

◆ ImageGeometricTransform() [26/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, uint8_t, 3 >
related

◆ ImageGeometricTransform() [27/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, uint8_t, 4 >
related

◆ ImageGeometricTransform() [28/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, uint16_t, 1 >
related

◆ ImageGeometricTransform() [29/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, uint16_t, 3 >
related

◆ ImageGeometricTransform() [30/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, uint16_t, 4 >
related

◆ ImageGeometricTransform() [31/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, float, 1 >
related

◆ ImageGeometricTransform() [32/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, float, 3 >
related

◆ ImageGeometricTransform() [33/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, float, 4 >
related

◆ ImageGeometricTransform() [34/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, double, 1 >
related

◆ ImageGeometricTransform() [35/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, double, 3 >
related

◆ ImageGeometricTransform() [36/36]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageGeometricTransform< Interpolation::cubic, double, 4 >
related

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