Class that defines a kernel for the morphological hit-and-miss operations. More...
Public Member Functions | |
| None | __init__ (self, int startX, int startY, int endX, int endY) |
| Constructs a eVision.EHitAndMissKernel object. | |
| None | __init__ (self, int halfSizeX, int halfSizeY) |
| None | __init__ (self) |
| Constructs a eVision.EHitAndMissKernel object. | |
| None | SetSize (self, int startX, int startY, int endX, int endY) |
| Modify the size of the kernel. | |
| None | SetSize (self, int halfSizeX, int halfSizeY) |
| Modify the size of the kernel. | |
| None | SetValue (self, int x, int y, eVision.EHitAndMissValue value) |
| Sets the value of an element of the kernel at a given coordinate. | |
| eVision.EHitAndMissValue | GetValue (self, int x, int y) |
| Returns the value of an element of the kernel at a given coordinate. | |
| int | StartX (self) |
| Returns the abscissa of the leftmost element of the kernel. | |
| int | StartY (self) |
| Returns the ordinate of the toptmost element of the kernel. | |
| int | EndX (self) |
| Returns the abscissa of the rightmost element of the kernel. | |
| int | EndY (self) |
| Returns the abscissa of the bottommost element of the kernel. | |
Class that defines a kernel for the morphological hit-and-miss operations.
Remarks:
License(s): None
| None eVision.EHitAndMissKernel.__init__ | ( | self, | |
| int | startX, | ||
| int | startY, | ||
| int | endX, | ||
| int | endY ) |
Constructs a eVision.EHitAndMissKernel object.
Remarks:
The constructor without argument creates a centered kernel of size 3x3.
All the elements of the kernel are initialized with eVision.EHitAndMissValue.DontCare values.
If the object is constructed by specifying the halves of the kernel dimensions, the width (resp. the height) of the kernel is given by 2 * halfSizeX + 1 (resp. 2 * halfSizeY + 1). Otherwise, the width (resp. the height) of the kernel is given by endX - startX + 1 (resp. endY - startY + 1).
| startX | The abscissa of the top leftmost element of the kernel. This value must be less than or equal to zero. |
| startY | The ordinate of the top leftmost element of the kernel. This value must be less than or equal to zero. |
| endX | The abscissa of the bottom rightmost element of the kernel. This value must be greater than or equal to zero. |
| endY | The ordinate of the bottom rightmost element of the kernel. This value must be greater than or equal to zero. |
| None eVision.EHitAndMissKernel.__init__ | ( | self, | |
| int | halfSizeX, | ||
| int | halfSizeY ) |
| halfSizeX | The half of the kernel width minus 1. This value must be greater than zero. |
| halfSizeY | The half of the kernel height minus 1. This value must be greater than zero. |
| None eVision.EHitAndMissKernel.__init__ | ( | self | ) |
Constructs a eVision.EHitAndMissKernel object.
Remarks:
The constructor without argument creates a centered kernel of size 3x3.
All the elements of the kernel are initialized with eVision.EHitAndMissValue.DontCare values.
If the object is constructed by specifying the halves of the kernel dimensions, the width (resp. the height) of the kernel is given by 2 * halfSizeX + 1 (resp. 2 * halfSizeY + 1). Otherwise, the width (resp. the height) of the kernel is given by endX - startX + 1 (resp. endY - startY + 1).
| int eVision.EHitAndMissKernel.EndX | ( | self | ) |
Returns the abscissa of the rightmost element of the kernel.
| int eVision.EHitAndMissKernel.EndY | ( | self | ) |
Returns the abscissa of the bottommost element of the kernel.
| eVision.EHitAndMissValue eVision.EHitAndMissKernel.GetValue | ( | self, | |
| int | x, | ||
| int | y ) |
Returns the value of an element of the kernel at a given coordinate.
| x | The abscissa of the element. |
| y | The ordinate of the element. |
| None eVision.EHitAndMissKernel.SetSize | ( | self, | |
| int | halfSizeX, | ||
| int | halfSizeY ) |
Modify the size of the kernel.
Remarks:
All the elements of the kernel are initialized with eVision.EHitAndMissValue.DontCare values.
If the object is constructed by specifying the halves of the kernel dimensions, the width (resp. the height) of the kernel is given by 2 * halfSizeX + 1 (resp. 2 * halfSizeY + 1). Otherwise, the width (resp. the height) of the kernel is given by endX - startX + 1 (resp. endY - startY + 1).
| halfSizeX | The half of the kernel width minus 1. This value must be greater than zero. |
| halfSizeY | The half of the kernel height minus 1. This value must be greater than zero. |
| None eVision.EHitAndMissKernel.SetSize | ( | self, | |
| int | startX, | ||
| int | startY, | ||
| int | endX, | ||
| int | endY ) |
Modify the size of the kernel.
Remarks:
All the elements of the kernel are initialized with eVision.EHitAndMissValue.DontCare values.
If the object is constructed by specifying the halves of the kernel dimensions, the width (resp. the height) of the kernel is given by 2 * halfSizeX + 1 (resp. 2 * halfSizeY + 1). Otherwise, the width (resp. the height) of the kernel is given by endX - startX + 1 (resp. endY - startY + 1).
| startX | The abscissa of the top leftmost element of the kernel. This value must be less than or equal to zero. |
| startY | The ordinate of the top leftmost element of the kernel. This value must be less than or equal to zero. |
| endX | The abscissa of the bottom rightmost element of the kernel. This value must be greater than or equal to zero. |
| endY | The ordinate of the bottom rightmost element of the kernel. This value must be greater than or equal to zero. |
| None eVision.EHitAndMissKernel.SetValue | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EHitAndMissValue | value ) |
Sets the value of an element of the kernel at a given coordinate.
| x | The abscissa of the element. |
| y | The ordinate of the element. |
| value | The value of the element. |
| int eVision.EHitAndMissKernel.StartX | ( | self | ) |
Returns the abscissa of the leftmost element of the kernel.
| int eVision.EHitAndMissKernel.StartY | ( | self | ) |
Returns the ordinate of the toptmost element of the kernel.