Kernel for use in convolution operations. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructs an eVision.EKernel object to be used with the eVision.EasyImage.ConvolKernel method. | |
| None | __init__ (self, int sizeX, int sizeY, float gain, int offset, eVision.EKernelRectifier rectifier, int outsideValue) |
| Constructs an eVision.EKernel object to be used with the eVision.EasyImage.ConvolKernel method. | |
| None | __init__ (self, eVision.EKernelType KernelType) |
| Constructs an eVision.EKernel object to be used with the eVision.EasyImage.ConvolKernel method. | |
| float | GetKernelData (self, int columnIndex, int rowIndex) |
| Returns the convolution coefficient of given indices. | |
| None | SetKernelData (self, int columnIndex, int rowIndex, float coefficientValue) |
| Sets the convolution coefficient values at the given indices. | |
| None | SetKernelData (self, float coefficientValue00, float coefficientValue10, float coefficientValue20, float coefficientValue01, float coefficientValue11, float coefficientValue21, float coefficientValue02, float coefficientValue12, float coefficientValue22) |
| Sets the convolution coefficient values at the given indices. | |
| None | SetKernelData (self, float coefficientValue00, float coefficientValue10, float coefficientValue20, float coefficientValue30, float coefficientValue40, float coefficientValue01, float coefficientValue11, float coefficientValue21, float coefficientValue31, float coefficientValue41, float coefficientValue02, float coefficientValue12, float coefficientValue22, float coefficientValue32, float coefficientValue42, float coefficientValue03, float coefficientValue13, float coefficientValue23, float coefficientValue33, float coefficientValue43, float coefficientValue04, float coefficientValue14, float coefficientValue24, float coefficientValue34, float coefficientValue44) |
| Sets the convolution coefficient values at the given indices. | |
| None | SetKernelData (self, float coefficientValue00, float coefficientValue10, float coefficientValue20, float coefficientValue30, float coefficientValue40, float coefficientValue50, float coefficientValue60, float coefficientValue01, float coefficientValue11, float coefficientValue21, float coefficientValue31, float coefficientValue41, float coefficientValue51, float coefficientValue61, float coefficientValue02, float coefficientValue12, float coefficientValue22, float coefficientValue32, float coefficientValue42, float coefficientValue52, float coefficientValue62, float coefficientValue03, float coefficientValue13, float coefficientValue23, float coefficientValue33, float coefficientValue43, float coefficientValue53, float coefficientValue63, float coefficientValue04, float coefficientValue14, float coefficientValue24, float coefficientValue34, float coefficientValue44, float coefficientValue54, float coefficientValue64, float coefficientValue05, float coefficientValue15, float coefficientValue25, float coefficientValue35, float coefficientValue45, float coefficientValue55, float coefficientValue65, float coefficientValue06, float coefficientValue16, float coefficientValue26, float coefficientValue36, float coefficientValue46, float coefficientValue56, float coefficientValue66) |
| Sets the convolution coefficient values at the given indices. | |
| None | SetSize (self, int n16SizeX, int n16SizeY) |
| Sets the number of coefficients along a row and along a column. | |
| int | SizeX (self) |
| Number of coefficients along a row. | |
| int | SizeY (self) |
| Number of coefficients along a column. | |
| float | Gain (self) |
| Global gain. | |
| Gain (self, float value) | |
| Global gain. | |
| int | Offset (self) |
| Global offset (a constant added to the convolution result). | |
| Offset (self, int value) | |
| Global offset (a constant added to the convolution result). | |
| eVision.EKernelRectifier | Rectifier (self) |
| Rectification mode. | |
| Rectifier (self, eVision.EKernelRectifier value) | |
| Rectification mode. | |
| int | OutsideValue (self) |
| Out-of-limits image value (only influences the result along image edges). | |
| OutsideValue (self, int value) | |
| Out-of-limits image value (only influences the result along image edges). | |
| ctypes.c_void_p | RawDataPtr (self) |
| Pointer to the upper left convolution coefficient. | |
| None eVision.EKernel.__init__ | ( | self | ) |
Constructs an eVision.EKernel object to be used with the eVision.EasyImage.ConvolKernel method.
Remarks:
The default constructor constructs a void kernel. A void kernel has no associated convolution coefficients. The sizing constructor constructs a kernel of given size and global parameters. The third constructor constructs a kernel of a predefined type. The kernel will be normalized by the sum of its components before applying the gain.
| None eVision.EKernel.__init__ | ( | self, | |
| int | sizeX, | ||
| int | sizeY, | ||
| float | gain, | ||
| int | offset, | ||
| eVision.EKernelRectifier | rectifier, | ||
| int | outsideValue ) |
Constructs an eVision.EKernel object to be used with the eVision.EasyImage.ConvolKernel method.
Remarks:
The default constructor constructs a void kernel. A void kernel has no associated convolution coefficients. The sizing constructor constructs a kernel of given size and global parameters. The third constructor constructs a kernel of a predefined type. The kernel will be normalized by the sum of its components before applying the gain.
| sizeX | Number of coefficients along a row. |
| sizeY | Number of coefficients along a column. |
| gain | Global gain of the kernel. The kernel is normalized by the sum of its components then multiplied by the gain. |
| offset | Global offset. |
| rectifier | Rectification mode, as defined by eVision.EKernelRectifier. |
| outsideValue | Out-of-limits image value. |
| None eVision.EKernel.__init__ | ( | self, | |
| eVision.EKernelType | KernelType ) |
Constructs an eVision.EKernel object to be used with the eVision.EasyImage.ConvolKernel method.
Remarks:
The default constructor constructs a void kernel. A void kernel has no associated convolution coefficients. The sizing constructor constructs a kernel of given size and global parameters. The third constructor constructs a kernel of a predefined type. The kernel will be normalized by the sum of its components before applying the gain.
| KernelType | Kernel type, as defined by eVision.EKernelType. |
| float eVision.EKernel.Gain | ( | self | ) |
Global gain.
Remarks:
Before the global gain is applied, the coefficients are normalized so that their sum equals one, unless their sum equals zero (as is the case for a derivation operator). The rectification enables to handle the negative values that may appear after convolution.
| eVision.EKernel.Gain | ( | self, | |
| float | value ) |
Global gain.
Remarks:
Before the global gain is applied, the coefficients are normalized so that their sum equals one, unless their sum equals zero (as is the case for a derivation operator). The rectification enables to handle the negative values that may appear after convolution.
| float eVision.EKernel.GetKernelData | ( | self, | |
| int | columnIndex, | ||
| int | rowIndex ) |
Returns the convolution coefficient of given indices.
| columnIndex | Column index, from 0 on, increasing rightwards. |
| rowIndex | Row index, from 0 on, increasing downwards. |
| int eVision.EKernel.Offset | ( | self | ) |
Global offset (a constant added to the convolution result).
| eVision.EKernel.Offset | ( | self, | |
| int | value ) |
Global offset (a constant added to the convolution result).
| int eVision.EKernel.OutsideValue | ( | self | ) |
Out-of-limits image value (only influences the result along image edges).
| eVision.EKernel.OutsideValue | ( | self, | |
| int | value ) |
Out-of-limits image value (only influences the result along image edges).
| ctypes.c_void_p eVision.EKernel.RawDataPtr | ( | self | ) |
Pointer to the upper left convolution coefficient.
Remarks:
This pointer is actually the base address of a float array containing all coefficients.
| eVision.EKernelRectifier eVision.EKernel.Rectifier | ( | self | ) |
Rectification mode.
This property allows specifying how negative convolution result values are handled.
| eVision.EKernel.Rectifier | ( | self, | |
| eVision.EKernelRectifier | value ) |
Rectification mode.
This property allows specifying how negative convolution result values are handled.
| None eVision.EKernel.SetKernelData | ( | self, | |
| float | coefficientValue00, | ||
| float | coefficientValue10, | ||
| float | coefficientValue20, | ||
| float | coefficientValue01, | ||
| float | coefficientValue11, | ||
| float | coefficientValue21, | ||
| float | coefficientValue02, | ||
| float | coefficientValue12, | ||
| float | coefficientValue22 ) |
Sets the convolution coefficient values at the given indices.
Remarks:
The function can also set the coefficient values for 3x3, 5x5 and 7x7 kernels.
| coefficientValue00 | Coefficient value at corresponding column and row indices. |
| coefficientValue10 | Coefficient value at corresponding column and row indices. |
| coefficientValue20 | Coefficient value at corresponding column and row indices. |
| coefficientValue01 | Coefficient value at corresponding column and row indices. |
| coefficientValue11 | Coefficient value at corresponding column and row indices. |
| coefficientValue21 | Coefficient value at corresponding column and row indices. |
| coefficientValue02 | Coefficient value at corresponding column and row indices. |
| coefficientValue12 | Coefficient value at corresponding column and row indices. |
| coefficientValue22 | Coefficient value at corresponding column and row indices. |
| None eVision.EKernel.SetKernelData | ( | self, | |
| float | coefficientValue00, | ||
| float | coefficientValue10, | ||
| float | coefficientValue20, | ||
| float | coefficientValue30, | ||
| float | coefficientValue40, | ||
| float | coefficientValue01, | ||
| float | coefficientValue11, | ||
| float | coefficientValue21, | ||
| float | coefficientValue31, | ||
| float | coefficientValue41, | ||
| float | coefficientValue02, | ||
| float | coefficientValue12, | ||
| float | coefficientValue22, | ||
| float | coefficientValue32, | ||
| float | coefficientValue42, | ||
| float | coefficientValue03, | ||
| float | coefficientValue13, | ||
| float | coefficientValue23, | ||
| float | coefficientValue33, | ||
| float | coefficientValue43, | ||
| float | coefficientValue04, | ||
| float | coefficientValue14, | ||
| float | coefficientValue24, | ||
| float | coefficientValue34, | ||
| float | coefficientValue44 ) |
Sets the convolution coefficient values at the given indices.
Remarks:
The function can also set the coefficient values for 3x3, 5x5 and 7x7 kernels.
| coefficientValue00 | Coefficient value at corresponding column and row indices. |
| coefficientValue10 | Coefficient value at corresponding column and row indices. |
| coefficientValue20 | Coefficient value at corresponding column and row indices. |
| coefficientValue30 | Coefficient value at corresponding column and row indices. |
| coefficientValue40 | Coefficient value at corresponding column and row indices. |
| coefficientValue01 | Coefficient value at corresponding column and row indices. |
| coefficientValue11 | Coefficient value at corresponding column and row indices. |
| coefficientValue21 | Coefficient value at corresponding column and row indices. |
| coefficientValue31 | Coefficient value at corresponding column and row indices. |
| coefficientValue41 | Coefficient value at corresponding column and row indices. |
| coefficientValue02 | Coefficient value at corresponding column and row indices. |
| coefficientValue12 | Coefficient value at corresponding column and row indices. |
| coefficientValue22 | Coefficient value at corresponding column and row indices. |
| coefficientValue32 | Coefficient value at corresponding column and row indices. |
| coefficientValue42 | Coefficient value at corresponding column and row indices. |
| coefficientValue03 | Coefficient value at corresponding column and row indices. |
| coefficientValue13 | Coefficient value at corresponding column and row indices. |
| coefficientValue23 | Coefficient value at corresponding column and row indices. |
| coefficientValue33 | Coefficient value at corresponding column and row indices. |
| coefficientValue43 | Coefficient value at corresponding column and row indices. |
| coefficientValue04 | Coefficient value at corresponding column and row indices. |
| coefficientValue14 | Coefficient value at corresponding column and row indices. |
| coefficientValue24 | Coefficient value at corresponding column and row indices. |
| coefficientValue34 | Coefficient value at corresponding column and row indices. |
| coefficientValue44 | Coefficient value at corresponding column and row indices. |
| None eVision.EKernel.SetKernelData | ( | self, | |
| float | coefficientValue00, | ||
| float | coefficientValue10, | ||
| float | coefficientValue20, | ||
| float | coefficientValue30, | ||
| float | coefficientValue40, | ||
| float | coefficientValue50, | ||
| float | coefficientValue60, | ||
| float | coefficientValue01, | ||
| float | coefficientValue11, | ||
| float | coefficientValue21, | ||
| float | coefficientValue31, | ||
| float | coefficientValue41, | ||
| float | coefficientValue51, | ||
| float | coefficientValue61, | ||
| float | coefficientValue02, | ||
| float | coefficientValue12, | ||
| float | coefficientValue22, | ||
| float | coefficientValue32, | ||
| float | coefficientValue42, | ||
| float | coefficientValue52, | ||
| float | coefficientValue62, | ||
| float | coefficientValue03, | ||
| float | coefficientValue13, | ||
| float | coefficientValue23, | ||
| float | coefficientValue33, | ||
| float | coefficientValue43, | ||
| float | coefficientValue53, | ||
| float | coefficientValue63, | ||
| float | coefficientValue04, | ||
| float | coefficientValue14, | ||
| float | coefficientValue24, | ||
| float | coefficientValue34, | ||
| float | coefficientValue44, | ||
| float | coefficientValue54, | ||
| float | coefficientValue64, | ||
| float | coefficientValue05, | ||
| float | coefficientValue15, | ||
| float | coefficientValue25, | ||
| float | coefficientValue35, | ||
| float | coefficientValue45, | ||
| float | coefficientValue55, | ||
| float | coefficientValue65, | ||
| float | coefficientValue06, | ||
| float | coefficientValue16, | ||
| float | coefficientValue26, | ||
| float | coefficientValue36, | ||
| float | coefficientValue46, | ||
| float | coefficientValue56, | ||
| float | coefficientValue66 ) |
Sets the convolution coefficient values at the given indices.
Remarks:
The function can also set the coefficient values for 3x3, 5x5 and 7x7 kernels.
| coefficientValue00 | Coefficient value at corresponding column and row indices. |
| coefficientValue10 | Coefficient value at corresponding column and row indices. |
| coefficientValue20 | Coefficient value at corresponding column and row indices. |
| coefficientValue30 | Coefficient value at corresponding column and row indices. |
| coefficientValue40 | Coefficient value at corresponding column and row indices. |
| coefficientValue50 | Coefficient value at corresponding column and row indices. |
| coefficientValue60 | Coefficient value at corresponding column and row indices. |
| coefficientValue01 | Coefficient value at corresponding column and row indices. |
| coefficientValue11 | Coefficient value at corresponding column and row indices. |
| coefficientValue21 | Coefficient value at corresponding column and row indices. |
| coefficientValue31 | Coefficient value at corresponding column and row indices. |
| coefficientValue41 | Coefficient value at corresponding column and row indices. |
| coefficientValue51 | Coefficient value at corresponding column and row indices. |
| coefficientValue61 | Coefficient value at corresponding column and row indices. |
| coefficientValue02 | Coefficient value at corresponding column and row indices. |
| coefficientValue12 | Coefficient value at corresponding column and row indices. |
| coefficientValue22 | Coefficient value at corresponding column and row indices. |
| coefficientValue32 | Coefficient value at corresponding column and row indices. |
| coefficientValue42 | Coefficient value at corresponding column and row indices. |
| coefficientValue52 | Coefficient value at corresponding column and row indices. |
| coefficientValue62 | Coefficient value at corresponding column and row indices. |
| coefficientValue03 | Coefficient value at corresponding column and row indices. |
| coefficientValue13 | Coefficient value at corresponding column and row indices. |
| coefficientValue23 | Coefficient value at corresponding column and row indices. |
| coefficientValue33 | Coefficient value at corresponding column and row indices. |
| coefficientValue43 | Coefficient value at corresponding column and row indices. |
| coefficientValue53 | Coefficient value at corresponding column and row indices. |
| coefficientValue63 | Coefficient value at corresponding column and row indices. |
| coefficientValue04 | Coefficient value at corresponding column and row indices. |
| coefficientValue14 | Coefficient value at corresponding column and row indices. |
| coefficientValue24 | Coefficient value at corresponding column and row indices. |
| coefficientValue34 | Coefficient value at corresponding column and row indices. |
| coefficientValue44 | Coefficient value at corresponding column and row indices. |
| coefficientValue54 | Coefficient value at corresponding column and row indices. |
| coefficientValue64 | Coefficient value at corresponding column and row indices. |
| coefficientValue05 | Coefficient value at corresponding column and row indices. |
| coefficientValue15 | Coefficient value at corresponding column and row indices. |
| coefficientValue25 | Coefficient value at corresponding column and row indices. |
| coefficientValue35 | Coefficient value at corresponding column and row indices. |
| coefficientValue45 | Coefficient value at corresponding column and row indices. |
| coefficientValue55 | Coefficient value at corresponding column and row indices. |
| coefficientValue65 | Coefficient value at corresponding column and row indices. |
| coefficientValue06 | Coefficient value at corresponding column and row indices. |
| coefficientValue16 | Coefficient value at corresponding column and row indices. |
| coefficientValue26 | Coefficient value at corresponding column and row indices. |
| coefficientValue36 | Coefficient value at corresponding column and row indices. |
| coefficientValue46 | Coefficient value at corresponding column and row indices. |
| coefficientValue56 | Coefficient value at corresponding column and row indices. |
| coefficientValue66 | Coefficient value at corresponding column and row indices. |
| None eVision.EKernel.SetKernelData | ( | self, | |
| int | columnIndex, | ||
| int | rowIndex, | ||
| float | coefficientValue ) |
Sets the convolution coefficient values at the given indices.
Remarks:
The function can also set the coefficient values for 3x3, 5x5 and 7x7 kernels.
| columnIndex | Column index, from 0 on, increasing rightwards. |
| rowIndex | Row index, from 0 on, increasing downwards. |
| coefficientValue | New coefficientValue. |
| None eVision.EKernel.SetSize | ( | self, | |
| int | n16SizeX, | ||
| int | n16SizeY ) |
Sets the number of coefficients along a row and along a column.
| n16SizeX | The number of coefficients along a row. |
| n16SizeY | The number of coefficients along a column. |
| int eVision.EKernel.SizeX | ( | self | ) |
Number of coefficients along a row.
| int eVision.EKernel.SizeY | ( | self | ) |
Number of coefficients along a column.