|
The blo Library
|
Image gradients processor. More...
#include <ImageGradients.h>
Public Types | |
| enum class | Kernel { centralDiff3Point = 3 , centralDiff5Point = 5 , centralDiff7Point = 7 , centralDiff9Point = 9 } |
Public Member Functions | |
| ImageGradients () | |
| Default constructor. | |
| ImageGradients (int dstRoiWidth, int dstRoiHeight) | |
| Constructs image gradients processor of specified size work buffers. | |
| ImageGradients (const ImageGradients &rhs) | |
| Copy constructor. | |
| ImageGradients (ImageGradients &&rhs) noexcept | |
| Move constructor. | |
| virtual | ~ImageGradients () |
| Destructor. | |
| ImageGradients & | operator= (const ImageGradients &rhs) |
| Copy assignment operator. | |
| ImageGradients & | operator= (ImageGradients &&rhs) noexcept |
| Move assignment operator. | |
| void | setKernel (Kernel kernel) |
| Sets the kernel. | |
| Kernel | kernel () const |
| The kernel. | |
| void | resize (int dstRoiWidth, int dstRoiHeight) |
| Resizes work buffers. | |
| void | clear () |
| Resizes work buffers to zero. | |
| void | calcGradients (const T *pSrc, int srcStep, T *pDstIx, int dstIxStep, T *pDstIy, int dstIyStep, int dstRoiWidth, int dstRoiHeight) |
| Calculates the x and y derivatives of an image. | |
Image gradients processor.
| T | Data type of image. |
| U | Data type of kernel. |
| C | Number of channels. |
|
strong |
| blo::ImageGradients< T, U, C >::ImageGradients | ( | ) |
Default constructor.
| blo::ImageGradients< T, U, C >::ImageGradients | ( | int | dstRoiWidth, |
| int | dstRoiHeight | ||
| ) |
Constructs image gradients processor of specified size work buffers.
| dstRoiWidth | Width of the destination image ROI in pixels to resize work buffers to. |
| dstRoiHeight | Height of the destination image ROI in pixels to resize work buffers to. |
| blo::ImageGradients< T, U, C >::ImageGradients | ( | const ImageGradients< T, U, C > & | rhs | ) |
Copy constructor.
|
noexcept |
Move constructor.
|
virtual |
Destructor.
| void blo::ImageGradients< T, U, C >::calcGradients | ( | const T * | pSrc, |
| int | srcStep, | ||
| T * | pDstIx, | ||
| int | dstIxStep, | ||
| T * | pDstIy, | ||
| int | dstIyStep, | ||
| int | dstRoiWidth, | ||
| int | dstRoiHeight | ||
| ) |
Calculates the x and y derivatives of an image.
| pSrc | Pointer to the source image. |
| srcStep | Step in bytes between the rows in the source image. |
| pDstIx | Pointer to the destination x-derivative image. |
| dstIxStep | Step in bytes between the rows in the destination x-derivative image. |
| pDstIy | Pointer to the destination y-derivative image. |
| dstIyStep | Step in bytes between the rows in the destination y-derivative image. |
| dstRoiWidth | Width of the destination image ROI in pixels. |
| dstRoiHeight | Height of the destination image ROI in pixels. |
| void blo::ImageGradients< T, U, C >::clear | ( | ) |
Resizes work buffers to zero.
| Kernel blo::ImageGradients< T, U, C >::kernel | ( | ) | const |
The kernel.
| ImageGradients & blo::ImageGradients< T, U, C >::operator= | ( | const ImageGradients< T, U, C > & | rhs | ) |
Copy assignment operator.
|
noexcept |
Move assignment operator.
| void blo::ImageGradients< T, U, C >::resize | ( | int | dstRoiWidth, |
| int | dstRoiHeight | ||
| ) |
Resizes work buffers.
| dstRoiWidth | Width of the destination image ROI in pixels to resize work buffers to. |
| dstRoiHeight | Height of the destination image ROI in pixels to resize work buffers to. |
| void blo::ImageGradients< T, U, C >::setKernel | ( | Kernel | kernel | ) |
Sets the kernel.
| kernel | The kernel. |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |