|
The blo Library
|
Cross-correlation processor. More...
#include <ImageCrossCorrelation.h>
Public Types | |
| enum class | Method { crossCorr = 0x00000000 , normCrossCorr = 0x00000100 , corrCoeff = 0x00000200 } |
| enum class | Shape { full = 0x00000000 , same = 0x00020000 , valid = 0x00010000 } |
Public Member Functions | |
| ImageCrossCorrelation () | |
| Default constructor. | |
| ImageCrossCorrelation (int srcWidth, int srcHeight, int tplWidth, int tplHeight) | |
| Constructs cross-correlation processor of specified size work buffers. | |
| ImageCrossCorrelation (const ImageCrossCorrelation &rhs) | |
| Copy constructor. | |
| ImageCrossCorrelation (ImageCrossCorrelation &&rhs) noexcept | |
| Move constructor. | |
| virtual | ~ImageCrossCorrelation () |
| Destructor. | |
| ImageCrossCorrelation & | operator= (const ImageCrossCorrelation &rhs) |
| Copy assignment operator. | |
| ImageCrossCorrelation & | operator= (ImageCrossCorrelation &&rhs) noexcept |
| Move assignment operator. | |
| void | setMethod (Method method) |
| Sets cross-correlation method. | |
| Method | method () const |
| Retrieves cross-correlation method. | |
| void | setShape (Shape shape) |
| Sets shape parameter. | |
| Shape | shape () const |
| Retrieves shape parameter. | |
| void | resize (int srcWidth, int srcHeight, int tplWidth, int tplHeight) |
| Resizes work buffers. | |
| void | clear () |
| Resizes work buffers to zero width and zero height. | |
| void | calcCrossCorrelation (const T *pSrc, int srcStep, int srcRoiWidth, int srcRoiHeight, const T *pTpl, int tplStep, int tplRoiWidth, int tplRoiHeight, float *pDst, int dstStep) |
| Calculates the cross-correlation between an image and a template. | |
Related Functions | |
(Note that these are not member functions.) | |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageCrossCorrelation< uint8_t, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageCrossCorrelation< uint16_t, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageCrossCorrelation< float, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageCrossCorrelation< uint8_t, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageCrossCorrelation< uint16_t, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageCrossCorrelation< float, 3 > |
Cross-correlation processor.
| T | Data type. |
| C | Number of channels. |
|
strong |
|
strong |
| blo::ImageCrossCorrelation< T, C >::ImageCrossCorrelation | ( | ) |
Default constructor.
| blo::ImageCrossCorrelation< T, C >::ImageCrossCorrelation | ( | int | srcWidth, |
| int | srcHeight, | ||
| int | tplWidth, | ||
| int | tplHeight | ||
| ) |
Constructs cross-correlation processor of specified size work buffers.
| srcWidth | Width of the source image in pixels to size work buffers to. |
| srcHeight | Height of the source image in pixels to size work buffers to. |
| tplWidth | Width of the template image in pixels to size work buffers to. |
| tplHeight | Height of the template image in pixels to size work buffers to. |
| blo::ImageCrossCorrelation< T, C >::ImageCrossCorrelation | ( | const ImageCrossCorrelation< T, C > & | rhs | ) |
Copy constructor.
|
noexcept |
Move constructor.
|
virtual |
Destructor.
| void blo::ImageCrossCorrelation< T, C >::calcCrossCorrelation | ( | const T * | pSrc, |
| int | srcStep, | ||
| int | srcRoiWidth, | ||
| int | srcRoiHeight, | ||
| const T * | pTpl, | ||
| int | tplStep, | ||
| int | tplRoiWidth, | ||
| int | tplRoiHeight, | ||
| float * | pDst, | ||
| int | dstStep | ||
| ) |
Calculates the cross-correlation between an image and a template.
This function calculates the cross-correlation between an image and a template using a specified method. The assumed zero-padding of the source image and the size of the destination image is determined by the shape parameter.
| pSrc | Pointer to the source image. |
| srcStep | Step in bytes between the rows in the source image. |
| srcRoiWidth | Width of the source image ROI in pixels. |
| srcRoiHeight | Height of the source image ROI in pixels. |
| pTpl | Pointer to the template image. |
| tplStep | Step in bytes between the rows in the template image. |
| tplRoiWidth | Width of the template image ROI in pixels. |
| tplRoiHeight | Height of the template image ROI in pixels. |
| pDst | Pointer to the destination image. |
| dstStep | Step in bytes between the rows in the destination image. |
| void blo::ImageCrossCorrelation< T, C >::clear | ( | ) |
Resizes work buffers to zero width and zero height.
| Method blo::ImageCrossCorrelation< T, C >::method | ( | ) | const |
Retrieves cross-correlation method.
| ImageCrossCorrelation & blo::ImageCrossCorrelation< T, C >::operator= | ( | const ImageCrossCorrelation< T, C > & | rhs | ) |
Copy assignment operator.
|
noexcept |
Move assignment operator.
| void blo::ImageCrossCorrelation< T, C >::resize | ( | int | srcWidth, |
| int | srcHeight, | ||
| int | tplWidth, | ||
| int | tplHeight | ||
| ) |
Resizes work buffers.
| srcWidth | Width of the source image in pixels to size work buffers to. |
| srcHeight | Height of the source image in pixels to size work buffers to. |
| tplWidth | Width of the template image in pixels to size work buffers to. |
| tplHeight | Height of the template image in pixels to size work buffers to. |
| void blo::ImageCrossCorrelation< T, C >::setMethod | ( | Method | method | ) |
Sets cross-correlation method.
| method | Cross-correlation method. |
| void blo::ImageCrossCorrelation< T, C >::setShape | ( | Shape | shape | ) |
Sets shape parameter.
| shape | Shape parameter. |
| Shape blo::ImageCrossCorrelation< T, C >::shape | ( | ) | const |
Retrieves shape parameter.
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |