This class represents a rotated bounding box. More...
Public Member Functions | |
| None | __init__ (self, float centerX, float centerY, float width, float height, float angle) |
| Constructor of the rotated bounding box. | |
| None | __init__ (self, float centerX, float centerY, float width, float height) |
| Constructor of the rotated bounding box. | |
| None | __init__ (self) |
| Constructor of the rotated bounding box. | |
| None | __init__ (self, eVision.ERotatedBoundingBox other) |
| eVision.ERotatedBoundingBox | LocalToGlobalBox (self, eVision.ERotatedBoundingBox localBox) |
| Transforms a (local) rotated bounding box, as another (global) rotated bounding box whose coordinates are defined relatively to the current rotated bounding box. | |
| eVision.EPoint | LocalToGlobalPoint (self, eVision.EPoint localPoint) |
| Transforms a (local) point, as another (global) point whose coordinates are defined relatively to the current rotated bounding box. | |
| None | Translate (self, float offsetX, float offsetY) |
| Applies a translation on the center of the bounding box. | |
| None | Scale (self, float scaleWidth, float scaleHeight) |
| Applies a scale to the size of the bounding box. | |
| None | Rotate (self, float angle) |
| Applies a rotation to the bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX) |
| Draws the rotated bounding box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame) |
| Draws the rotated bounding box. | |
| eVision.ERotatedBoundingBox | LocalToSensor (self, eVision.EFrame frame) |
| Transforms a eVision.ERotatedBoundingBox from local to sensor coordinates. | |
| eVision.ERotatedBoundingBox | SensorToLocal (self, eVision.EFrame frame) |
| Transforms a eVision.ERotatedBoundingBox from sensor to local coordinates. | |
| eVision.EQuadrangle | Quadrangle (self) |
| Returns the coordinates of the four corners of the bounding box. | |
| float | CenterX (self) |
| Returns the abscissa of the center of the bounding box. | |
| float | CenterY (self) |
| Returns the ordinate of the center of the bounding box. | |
| eVision.EPoint | Center (self) |
| Returns the coordinate of the center of the bounding box. | |
| float | Width (self) |
| Returns the width of the bounding box. | |
| float | Height (self) |
| Returns the height of the bounding box. | |
| float | Angle (self) |
| Returns the angle of the bounding box (in the current angle units). | |
| eVision.EPoint | UpperLeftCorner (self) |
| Returns the coordinates of the upper left corner of the bounding box (the position with the minimum Y and then minimum X). | |
| eVision.ELine | MajorAxis (self) |
| Returns the major axis of the eVision.ERotatedBoundingBox as an eVision.ELine. | |
This class represents a rotated bounding box.
Remarks:
The rotated bounding box is a rotated, rectangular surface. Its coordinates are floating-point, which makes this class appropriate to handle sub-pixel surfaces.
License(s): BasicTypes
| None eVision.ERotatedBoundingBox.__init__ | ( | self, | |
| float | centerX, | ||
| float | centerY, | ||
| float | width, | ||
| float | height, | ||
| float | angle ) |
Constructor of the rotated bounding box.
| centerX | The abscissa of the center of the bounding box. |
| centerY | The ordinate of the center of the bounding box. |
| width | The width of the bounding box. |
| height | The height of the bounding box. |
| angle | The angle of the bounding box (in the current angle units). |
| None eVision.ERotatedBoundingBox.__init__ | ( | self, | |
| float | centerX, | ||
| float | centerY, | ||
| float | width, | ||
| float | height ) |
Constructor of the rotated bounding box.
| centerX | The abscissa of the center of the bounding box. |
| centerY | The ordinate of the center of the bounding box. |
| width | The width of the bounding box. |
| height | The height of the bounding box. |
| None eVision.ERotatedBoundingBox.__init__ | ( | self | ) |
Constructor of the rotated bounding box.
| None eVision.ERotatedBoundingBox.__init__ | ( | self, | |
| eVision.ERotatedBoundingBox | other ) |
| other | The other eVision.ERotatedBoundingBox that we will copy into this one. |
| float eVision.ERotatedBoundingBox.Angle | ( | self | ) |
Returns the angle of the bounding box (in the current angle units).
| eVision.EPoint eVision.ERotatedBoundingBox.Center | ( | self | ) |
Returns the coordinate of the center of the bounding box.
| float eVision.ERotatedBoundingBox.CenterX | ( | self | ) |
Returns the abscissa of the center of the bounding box.
| float eVision.ERotatedBoundingBox.CenterY | ( | self | ) |
Returns the ordinate of the center of the bounding box.
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| frame | Frame associated with the rectangle. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| frame | Frame associated with the rectangle. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| frame | Frame associated with the rectangle. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| frame | Frame associated with the rectangle. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| frame | Frame associated with the rectangle. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| frame | Frame associated with the rectangle. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
| drawDiagonals | Specifies whether the diagonals of the bounding box are drawn. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
| None eVision.ERotatedBoundingBox.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) |
Draws the rotated bounding box.
Remarks:
Drawing is done in the device context associated to the desired window.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning factor. By default, no panning occurs. |
| drawDiagonals | Specifies whether the diagonals of the bounding box are drawn. |
| float eVision.ERotatedBoundingBox.Height | ( | self | ) |
Returns the height of the bounding box.
| eVision.ERotatedBoundingBox eVision.ERotatedBoundingBox.LocalToGlobalBox | ( | self, | |
| eVision.ERotatedBoundingBox | localBox ) |
Transforms a (local) rotated bounding box, as another (global) rotated bounding box whose coordinates are defined relatively to the current rotated bounding box.
| localBox | The local rotated box. |
| eVision.EPoint eVision.ERotatedBoundingBox.LocalToGlobalPoint | ( | self, | |
| eVision.EPoint | localPoint ) |
Transforms a (local) point, as another (global) point whose coordinates are defined relatively to the current rotated bounding box.
| localPoint | The local point. |
| eVision.ERotatedBoundingBox eVision.ERotatedBoundingBox.LocalToSensor | ( | self, | |
| eVision.EFrame | frame ) |
Transforms a eVision.ERotatedBoundingBox from local to sensor coordinates.
| frame | Reference frame in which the region is defined. Frame must be affine and isotropic. |
| eVision.ELine eVision.ERotatedBoundingBox.MajorAxis | ( | self | ) |
Returns the major axis of the eVision.ERotatedBoundingBox as an eVision.ELine.
| eVision.EQuadrangle eVision.ERotatedBoundingBox.Quadrangle | ( | self | ) |
Returns the coordinates of the four corners of the bounding box.
| None eVision.ERotatedBoundingBox.Rotate | ( | self, | |
| float | angle ) |
Applies a rotation to the bounding box.
The bounding box center is the center of rotation.
| angle | The rotation angle. |
| None eVision.ERotatedBoundingBox.Scale | ( | self, | |
| float | scaleWidth, | ||
| float | scaleHeight ) |
Applies a scale to the size of the bounding box.
| scaleWidth | The scale to apply to the width. |
| scaleHeight | The scale to apply to the height. |
| eVision.ERotatedBoundingBox eVision.ERotatedBoundingBox.SensorToLocal | ( | self, | |
| eVision.EFrame | frame ) |
Transforms a eVision.ERotatedBoundingBox from sensor to local coordinates.
| frame | Reference frame in which the region is defined. Frame must be affine and isotropic. |
| None eVision.ERotatedBoundingBox.Translate | ( | self, | |
| float | offsetX, | ||
| float | offsetY ) |
Applies a translation on the center of the bounding box.
| offsetX | The offset along the X-axis. |
| offsetY | The offset along the Y-axis. |
| eVision.EPoint eVision.ERotatedBoundingBox.UpperLeftCorner | ( | self | ) |
Returns the coordinates of the upper left corner of the bounding box (the position with the minimum Y and then minimum X).
| float eVision.ERotatedBoundingBox.Width | ( | self | ) |
Returns the width of the bounding box.