eVision Python API
Loading...
Searching...
No Matches
eVision.ERotatedBoundingBox Class Reference

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.

Properties

 Quadrangle = property(_Quadrangle__getter, None)
 Returns the coordinates of the four corners of the bounding box.
 CenterX = property(_CenterX__getter, None)
 Returns the abscissa of the center of the bounding box.
 CenterY = property(_CenterY__getter, None)
 Returns the ordinate of the center of the bounding box.
 Center = property(_Center__getter, None)
 Returns the coordinate of the center of the bounding box.
 Width = property(_Width__getter, None)
 Returns the width of the bounding box.
 Height = property(_Height__getter, None)
 Returns the height of the bounding box.
 Angle = property(_Angle__getter, None)
 Returns the angle of the bounding box (in the current angle units).
 UpperLeftCorner = property(_UpperLeftCorner__getter, None)
 Returns the coordinates of the upper left corner of the bounding box (the position with the minimum Y and then minimum X).
 MajorAxis = property(_MajorAxis__getter, None)
 Returns the major axis of the eVision.ERotatedBoundingBox as an eVision.ELine.

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.ERotatedBoundingBox.__init__ ( self,
float centerX,
float centerY,
float width,
float height,
float angle )

Constructor of the rotated bounding box.

Parameters
centerXThe abscissa of the center of the bounding box.
centerYThe ordinate of the center of the bounding box.
widthThe width of the bounding box.
heightThe height of the bounding box.
angleThe angle of the bounding box (in the current angle units).

◆ __init__() [2/4]

None eVision.ERotatedBoundingBox.__init__ ( self,
float centerX,
float centerY,
float width,
float height )

Constructor of the rotated bounding box.

Parameters
centerXThe abscissa of the center of the bounding box.
centerYThe ordinate of the center of the bounding box.
widthThe width of the bounding box.
heightThe height of the bounding box.

◆ __init__() [3/4]

None eVision.ERotatedBoundingBox.__init__ ( self)

Constructor of the rotated bounding box.

◆ __init__() [4/4]

None eVision.ERotatedBoundingBox.__init__ ( self,
eVision.ERotatedBoundingBox other )
Parameters
otherThe other eVision.ERotatedBoundingBox that we will copy into this one.

Member Function Documentation

◆ Draw() [1/12]

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.

Parameters
graphicContextGraphic context on which to draw.

◆ Draw() [2/12]

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.

Parameters
graphicContextGraphic context on which to draw.
frameFrame associated with the rectangle.

◆ Draw() [3/12]

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.

Parameters
graphicContextGraphic context on which to draw.
frameFrame associated with the rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [4/12]

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.

Parameters
graphicContextGraphic context on which to draw.
frameFrame associated with the rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [5/12]

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.

Parameters
graphicContextGraphic context on which to draw.
frameFrame associated with the rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [6/12]

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.

Parameters
graphicContextGraphic context on which to draw.
frameFrame associated with the rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning factor. By default, no panning occurs.

◆ Draw() [7/12]

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.

Parameters
graphicContextGraphic context on which to draw.
frameFrame associated with the rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning factor. By default, no panning occurs.
drawDiagonalsSpecifies whether the diagonals of the bounding box are drawn.

◆ Draw() [8/12]

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.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [9/12]

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.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [10/12]

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.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [11/12]

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.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning factor. By default, no panning occurs.

◆ Draw() [12/12]

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.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning factor. By default, no panning occurs.
drawDiagonalsSpecifies whether the diagonals of the bounding box are drawn.

◆ LocalToGlobalBox()

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.

Parameters
localBoxThe local rotated box.

◆ LocalToGlobalPoint()

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.

Parameters
localPointThe local point.

◆ LocalToSensor()

eVision.ERotatedBoundingBox eVision.ERotatedBoundingBox.LocalToSensor ( self,
eVision.EFrame frame )

Transforms a eVision.ERotatedBoundingBox from local to sensor coordinates.

Parameters
frameReference frame in which the region is defined. Frame must be affine and isotropic.

◆ Rotate()

None eVision.ERotatedBoundingBox.Rotate ( self,
float angle )

Applies a rotation to the bounding box.

The bounding box center is the center of rotation.

Parameters
angleThe rotation angle.

◆ Scale()

None eVision.ERotatedBoundingBox.Scale ( self,
float scaleWidth,
float scaleHeight )

Applies a scale to the size of the bounding box.

Parameters
scaleWidthThe scale to apply to the width.
scaleHeightThe scale to apply to the height.

◆ SensorToLocal()

eVision.ERotatedBoundingBox eVision.ERotatedBoundingBox.SensorToLocal ( self,
eVision.EFrame frame )

Transforms a eVision.ERotatedBoundingBox from sensor to local coordinates.

Parameters
frameReference frame in which the region is defined. Frame must be affine and isotropic.

◆ Translate()

None eVision.ERotatedBoundingBox.Translate ( self,
float offsetX,
float offsetY )

Applies a translation on the center of the bounding box.

Parameters
offsetXThe offset along the X-axis.
offsetYThe offset along the Y-axis.

Property Documentation

◆ Angle

eVision.ERotatedBoundingBox.Angle = property(_Angle__getter, None)
static

Returns the angle of the bounding box (in the current angle units).

◆ Center

eVision.ERotatedBoundingBox.Center = property(_Center__getter, None)
static

Returns the coordinate of the center of the bounding box.

◆ CenterX

eVision.ERotatedBoundingBox.CenterX = property(_CenterX__getter, None)
static

Returns the abscissa of the center of the bounding box.

◆ CenterY

eVision.ERotatedBoundingBox.CenterY = property(_CenterY__getter, None)
static

Returns the ordinate of the center of the bounding box.

◆ Height

eVision.ERotatedBoundingBox.Height = property(_Height__getter, None)
static

Returns the height of the bounding box.

◆ MajorAxis

eVision.ERotatedBoundingBox.MajorAxis = property(_MajorAxis__getter, None)
static

Returns the major axis of the eVision.ERotatedBoundingBox as an eVision.ELine.

◆ Quadrangle

eVision.ERotatedBoundingBox.Quadrangle = property(_Quadrangle__getter, None)
static

Returns the coordinates of the four corners of the bounding box.

◆ UpperLeftCorner

eVision.ERotatedBoundingBox.UpperLeftCorner = property(_UpperLeftCorner__getter, None)
static

Returns the coordinates of the upper left corner of the bounding box (the position with the minimum Y and then minimum X).

◆ Width

eVision.ERotatedBoundingBox.Width = property(_Width__getter, None)
static

Returns the width of the bounding box.