|
eLynx SDK
v3.3.0 C++ image processing API reference |
Convolution kernel in W x H dimension, used with float and double resolution. More...
#include <ConvolutionKernel.h>
Public Member Functions | |
| ConvolutionKernel () | |
| Default constructor. | |
| ConvolutionKernel (uint32 iWidth, uint32 iHeight, T iV=T(1)) | |
| Constructor from size. | |
| ConvolutionKernel (uint32 iWidth, uint32 iHeight, const T *iprArray) | |
| Constructor from size. | |
| ConvolutionKernel (const ConvolutionKernel &iOther) | |
| Copy constructor from another kernel. | |
| template<typename U > | |
| ConvolutionKernel (const ConvolutionKernel< U > &iOther) | |
| Copy constructor from another kernel type. | |
| ConvolutionKernel & | operator= (const ConvolutionKernel &iOther) |
| Assignment operator with another kernel. | |
| template<typename U > | |
| ConvolutionKernel & | operator= (const ConvolutionKernel< U > &iOther) |
| Assignment operator with another kernel type. | |
| uint32 | GetSize () const |
| Return the size of kernel, size = width * height. | |
| uint32 | GetWidth () const |
| Return the width of kernel. | |
| uint32 | GetHeight () const |
| Return the height of kernel. | |
| T | GetSum () const |
| Return the sum of all elements of kernel. | |
| void | Normalize () |
| Normalize elements so that sum of all elements equals 1. | |
| ConvolutionKernel | Rotated (const ECompassDirection iDirection) const |
| Return a rotated convolution kernel NxN sized only for square kernel. | |
| bool | IsValid () const |
| Return the height of kernel. | |
| bool | IsHorizontal () const |
| Return if kernel is W x 1 sized. | |
| bool | IsVertical () const |
| Return if kernel is 1 x H sized. | |
| bool | IsSquare () const |
| Return if kernel is N x N sized. | |
| bool | Is3x3 () const |
| Return if kernel is 3x3 sized. | |
| bool | Is5x5 () const |
| Return if kernel is 5x5 sized. | |
Public Attributes | |
| boost::shared_array< T > | _spK |
| matrix _width x _height of type T values. | |
Convolution kernel in W x H dimension, used with float and double resolution.
| eLynx::Math::ConvolutionKernel< T >::ConvolutionKernel | ( | uint32 | iWidth, |
| uint32 | iHeight, | ||
| T | iV = T(1) |
||
| ) |
Constructor from size.
| iWidth | the kernel width. |
| iHeight | the kernel height. |
| iV | the initial value for elements. |
| eLynx::Math::ConvolutionKernel< T >::ConvolutionKernel | ( | uint32 | iWidth, |
| uint32 | iHeight, | ||
| const T * | iprArray | ||
| ) |
Constructor from size.
| iWidth | the kernel width. |
| iHeight | the kernel height. |
| iprArray | pointer on a array iW x iH of element values. |
| eLynx::Math::ConvolutionKernel< T >::ConvolutionKernel | ( | const ConvolutionKernel< T > & | iOther ) |
Copy constructor from another kernel.
| iOther | kernel to copy. |
| eLynx::Math::ConvolutionKernel< T >::ConvolutionKernel | ( | const ConvolutionKernel< U > & | iOther ) |
Copy constructor from another kernel type.
| iOther | kernel to copy. |
| uint32 eLynx::Math::ConvolutionKernel< T >::GetHeight | ( | ) | const |
Return the height of kernel.
| uint32 eLynx::Math::ConvolutionKernel< T >::GetSize | ( | ) | const |
Return the size of kernel, size = width * height.
| T eLynx::Math::ConvolutionKernel< T >::GetSum | ( | ) | const |
Return the sum of all elements of kernel.
| uint32 eLynx::Math::ConvolutionKernel< T >::GetWidth | ( | ) | const |
Return the width of kernel.
| bool eLynx::Math::ConvolutionKernel< T >::Is3x3 | ( | ) | const |
Return if kernel is 3x3 sized.
| bool eLynx::Math::ConvolutionKernel< T >::Is5x5 | ( | ) | const |
Return if kernel is 5x5 sized.
| bool eLynx::Math::ConvolutionKernel< T >::IsHorizontal | ( | ) | const |
Return if kernel is W x 1 sized.
| bool eLynx::Math::ConvolutionKernel< T >::IsSquare | ( | ) | const |
Return if kernel is N x N sized.
| bool eLynx::Math::ConvolutionKernel< T >::IsVertical | ( | ) | const |
Return if kernel is 1 x H sized.
| ConvolutionKernel& eLynx::Math::ConvolutionKernel< T >::operator= | ( | const ConvolutionKernel< U > & | iOther ) |
Assignment operator with another kernel type.
| iOther | kernel to assign. |
| ConvolutionKernel& eLynx::Math::ConvolutionKernel< T >::operator= | ( | const ConvolutionKernel< T > & | iOther ) |
Assignment operator with another kernel.
| iOther | kernel to assign. |
| ConvolutionKernel eLynx::Math::ConvolutionKernel< T >::Rotated | ( | const ECompassDirection | iDirection ) | const |
Return a rotated convolution kernel NxN sized only for square kernel.
| iDirection | the new direction relative to north. |