|
The blo Library
|
Convolution processor. More...
#include <ImageConvolution.h>
Public Types | |
| enum class | Shape { full = 0x00000000 , valid = 0x00010000 } |
Public Member Functions | |
| ImageConvolution () | |
| Default constructor. | |
| ImageConvolution (int src1Width, int src1Height, int src2Width, int src2Height) | |
| Constructs convolution processor of specified size work buffers. | |
| ImageConvolution (const ImageConvolution &rhs) | |
| Copy constructor. | |
| ImageConvolution (ImageConvolution &&rhs) noexcept | |
| Move constructor. | |
| virtual | ~ImageConvolution () |
| Destructor. | |
| ImageConvolution & | operator= (const ImageConvolution &rhs) |
| Copy assignment operator. | |
| ImageConvolution & | operator= (ImageConvolution &&rhs) noexcept |
| Move assignment operator. | |
| void | setShape (Shape shape) |
| Sets shape parameter. | |
| Shape | shape () const |
| Retrieves shape parameter. | |
| void | resize (int src1Width, int src1Height, int src2Width, int src2Height) |
| Resizes work buffers. | |
| void | clear () |
| Resizes work buffers to zero width and zero height. | |
| void | calcConvolution (const T *pSrc1, int src1Step, int src1Width, int src1Height, const T *pSrc2, int src2Step, int src2Width, int src2Height, T *pDst, int dstStep, int divisor) |
| Calculates the convolution between two images. | |
Related Functions | |
(Note that these are not member functions.) | |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< uint8_t, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< int16_t, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< uint8_t, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< int16_t, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< uint8_t, 4 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< int16_t, 4 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< float, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< float, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageConvolution< float, 4 > |
Convolution processor.
| T | Data type. |
| C | Number of channels. |
|
strong |
| blo::ImageConvolution< T, C >::ImageConvolution | ( | ) |
Default constructor.
| blo::ImageConvolution< T, C >::ImageConvolution | ( | int | src1Width, |
| int | src1Height, | ||
| int | src2Width, | ||
| int | src2Height | ||
| ) |
Constructs convolution processor of specified size work buffers.
| src1Width | Width of the first source image in pixels to size work buffers to. |
| src1Height | Height of the first source image in pixels to size work buffers to. |
| src2Width | Width of the second source image in pixels to size work buffers to. |
| src2Height | Height of the second source image in pixels to size work buffers to. |
| blo::ImageConvolution< T, C >::ImageConvolution | ( | const ImageConvolution< T, C > & | rhs | ) |
Copy constructor.
|
noexcept |
Move constructor.
|
virtual |
Destructor.
| void blo::ImageConvolution< T, C >::calcConvolution | ( | const T * | pSrc1, |
| int | src1Step, | ||
| int | src1Width, | ||
| int | src1Height, | ||
| const T * | pSrc2, | ||
| int | src2Step, | ||
| int | src2Width, | ||
| int | src2Height, | ||
| T * | pDst, | ||
| int | dstStep, | ||
| int | divisor | ||
| ) |
Calculates the convolution between two images.
This function calculates the convolution between two images.
The assumed zero-padding of the first source image and the size of the destination image is determined by the shape parameter.
| pSrc1 | Pointer to the first source image. |
| src1Step | Step in bytes between the rows in the first source image. |
| src1Width | Width of the first source image ROI in pixels. |
| src1Height | Height of the first source image ROI in pixels. |
| pSrc2 | Pointer to the second source image. |
| src2Step | Step in bytes between the rows in the second source image. |
| src2Width | Width of the second source image ROI in pixels. |
| src2Height | Height of the second source image ROI in pixels. |
| pDst | Pointer to the destination image. |
| dstStep | Step in bytes between the rows in the destination image. |
| divisor | The value the computed result is divided by. |
| void blo::ImageConvolution< T, C >::clear | ( | ) |
Resizes work buffers to zero width and zero height.
| ImageConvolution & blo::ImageConvolution< T, C >::operator= | ( | const ImageConvolution< T, C > & | rhs | ) |
Copy assignment operator.
|
noexcept |
Move assignment operator.
| void blo::ImageConvolution< T, C >::resize | ( | int | src1Width, |
| int | src1Height, | ||
| int | src2Width, | ||
| int | src2Height | ||
| ) |
Resizes work buffers.
| src1Width | Width of the first source image in pixels to resize work buffers to. |
| src1Height | Height of the first source image in pixels to resize work buffers to. |
| src2Width | Width of the second source image in pixels to resize work buffers to. |
| src2Height | Height of the second source image in pixels to resize work buffers to. |
| void blo::ImageConvolution< T, C >::setShape | ( | Shape | shape | ) |
Sets shape parameter.
| shape | Shape parameter. |
| Shape blo::ImageConvolution< T, C >::shape | ( | ) | const |
Retrieves shape parameter.
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |