This container class handles the selection of a subset of coded elements taken from a coded image. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructs an EObjectSelection. | |
| None | __init__ (self, eVision.ERegion region, eVision.EFrame frame, eVision.EEncodingConnexity connexity) |
| Constructs an EObjectSelection. | |
| None | __init__ (self, eVision.ERegion region, eVision.EFrame frame) |
| Constructs an EObjectSelection. | |
| None | __init__ (self, eVision.ERegion region) |
| Constructs an EObjectSelection. | |
| None | __init__ (self, eVision.EObjectSelection other) |
| Constructs an EObjectSelection. | |
| None | Clear (self) |
| Remove all the coded elements that are contained in the selection. | |
| None | Add (self, eVision.ECodedElement element) |
| Add a coded element to the selection. | |
| None | Remove (self, eVision.ECodedElement element) |
| Remove a coded element from the selection. | |
| eVision.ECodedElement | GetElement (self, int index) |
| Index-based access to the coded elements of the selection. | |
| int | GetIndexOfElement (self, eVision.ECodedElement element) |
| Retrieves the index of a given coded element in the selection. | |
| None | AddObjects (self, eVision.ECodedImage2 image) |
| Adds all the objects of all the layers of a given coded image. | |
| None | ClearFeatureCache (self) |
| Clears the internal cache for the computed features. | |
| bool | IsSelected (self, eVision.ECodedElement element) |
| Tests whether a given coded element is present in the selection. | |
| bool | IsSelected (self, eVision.ECodedImage2 codedImage, int objectIndex) |
| Tests whether a given coded element is present in the selection. | |
| bool | IsSelected (self, eVision.ECodedImage2 codedImage, int layerIndex, int objectIndex) |
| Tests whether a given coded element is present in the selection. | |
| bool | IsSelected (self, eVision.ECodedImage2 codedImage, int layerIndex, int objectIndex, int holeIndex) |
| Tests whether a given coded element is present in the selection. | |
| None | AddLayer (self, eVision.ECodedImage2 codedImage, int layerIndex) |
| Adds all the objects of a single layer in a coded image. | |
| None | AddLayer (self, eVision.ECodedImage2 codedImage) |
| Adds all the objects of a single layer in a coded image. | |
| None | RemoveLayer (self, eVision.ECodedImage2 codedImage) |
| Removes all the objects of a single layer in a coded image. | |
| None | RemoveLayer (self, eVision.ECodedImage2 codedImage, int layerIndex) |
| Removes all the objects of a single layer in a coded image. | |
| None | AddObject (self, eVision.ECodedImage2 codedImage, int objectIndex) |
| Adds a single object of a layer in a coded image. | |
| None | AddObject (self, eVision.ECodedImage2 codedImage, int layerIndex, int objectIndex) |
| Adds a single object of a layer in a coded image. | |
| None | RemoveObject (self, eVision.ECodedImage2 codedImage, int objectIndex) |
| Removes a single object of a layer in a coded image. | |
| None | RemoveObject (self, eVision.ECodedImage2 codedImage, int layerIndex, int objectIndex) |
| Removes a single object of a layer in a coded image. | |
| None | AddHole (self, eVision.ECodedImage2 codedImage, int objectIndex, int holeIndex) |
| Adds a single hole of a coded image. | |
| None | AddHole (self, eVision.ECodedImage2 codedImage, int layerIndex, int objectIndex, int holeIndex) |
| Adds a single hole of a coded image. | |
| None | RemoveHole (self, eVision.ECodedImage2 codedImage, int objectIndex, int holeIndex) |
| Removes a single hole of a coded image. | |
| None | RemoveHole (self, eVision.ECodedImage2 codedImage, int layerIndex, int objectIndex, int holeIndex) |
| Removes a single hole of a coded image. | |
| None | AddHolesOfSelectedObjects (self) |
| Adds the holes of all the objects that are currently selected. | |
| None | AddHoles (self, eVision.ECodedImage2 codedImage) |
| Adds all the holes contained in an object, in a layer or in a coded image. | |
| None | AddHoles (self, eVision.ECodedImage2 codedImage, int layerIndex) |
| Adds all the holes contained in an object, in a layer or in a coded image. | |
| None | AddHoles (self, eVision.ECodedImage2 codedImage, int layerIndex, int objectIndex) |
| Adds all the holes contained in an object, in a layer or in a coded image. | |
| None | RemoveSelectedHoles (self) |
| Remove all the holes that are currently present in the selection. | |
| None | RemoveHoles (self, eVision.ECodedImage2 codedImage) |
| Removes all the holes contained in an object, in a layer or in a coded image. | |
| None | RemoveHoles (self, eVision.ECodedImage2 codedImage, int layerIndex) |
| Removes all the holes contained in an object, in a layer or in a coded image. | |
| None | RemoveHoles (self, eVision.ECodedImage2 codedImage, int layerIndex, int objectIndex) |
| Removes all the holes contained in an object, in a layer or in a coded image. | |
| None | AddRegionAsObjects (self, eVision.ERegion region, eVision.EFrame frame, eVision.EEncodingConnexity connexity) |
| Add the objects corresponding to the given region to the eVision.EObjectSelection. | |
| None | AddRegionAsObjects (self, eVision.ERegion region, eVision.EFrame frame) |
| Add the objects corresponding to the given region to the eVision.EObjectSelection. | |
| None | AddRegionAsObjects (self, eVision.ERegion region) |
| Add the objects corresponding to the given region to the eVision.EObjectSelection. | |
| None | AddObjectUsingPosition (self, eVision.ECodedImage2 codedImage, int x, int y) |
| Adds the object of a coded image that lies at a particular location. | |
| None | AddObjectUsingPosition (self, eVision.ECodedImage2 codedImage, eVision.EPoint position, eVision.EFrame frame) |
| Adds the object of a coded image that lies at a particular location. | |
| None | AddObjectUsingPosition (self, eVision.ECodedImage2 codedImage, eVision.EPoint position) |
| Adds the object of a coded image that lies at a particular location. | |
| None | RemoveObjectUsingPosition (self, eVision.ECodedImage2 codedImage, int x, int y) |
| Removes the object of a coded image that lies at a particular location. | |
| None | RemoveObjectUsingPosition (self, eVision.ECodedImage2 codedImage, eVision.EPoint position, eVision.EFrame frame) |
| Removes the object of a coded image that lies at a particular location. | |
| None | RemoveObjectUsingPosition (self, eVision.ECodedImage2 codedImage, eVision.EPoint position) |
| Removes the object of a coded image that lies at a particular location. | |
| None | AddObjectsUsingRegion (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.ERegion region, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on an arbitrary region. | |
| None | AddObjectsUsingRegion (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.ERegion region, eVision.EFrame frame, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on an arbitrary region. | |
| None | AddObjectsUsingRegion (self, eVision.ECodedImage2 codedImage, eVision.ERegion region, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on an arbitrary region. | |
| None | AddObjectsUsingRegion (self, eVision.ECodedImage2 codedImage, eVision.ERegion region, eVision.EFrame frame, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on an arbitrary region. | |
| None | RemoveObjectsUsingRegion (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.ERegion region, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on an arbitrary region. | |
| None | RemoveObjectsUsingRegion (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.ERegion region, eVision.EFrame frame, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on an arbitrary region. | |
| None | RemoveObjectsUsingRegion (self, eVision.ECodedImage2 codedImage, eVision.ERegion region, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on an arbitrary region. | |
| None | RemoveObjectsUsingRegion (self, eVision.ECodedImage2 codedImage, eVision.ERegion region, eVision.EFrame frame, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on an arbitrary region. | |
| None | AddObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, int x, int y, int width, int height, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | AddObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, eVision.ERectangle rectangle, eVision.EFrame frame, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | AddObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, eVision.ERectangle rectangle, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | AddObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, int layerIndex, int x, int y, int width, int height, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | AddObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.ERectangle rectangle, eVision.EFrame frame, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | AddObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.ERectangle rectangle, eVision.ERectangleMode mode) |
| Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | RemoveObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, int x, int y, int width, int height, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | RemoveObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, eVision.ERectangle rectangle, eVision.EFrame frame, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | RemoveObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, eVision.ERectangle rectangle, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | RemoveObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, int layerIndex, int x, int y, int width, int height, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | RemoveObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.ERectangle rectangle, eVision.EFrame frame, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | RemoveObjectsUsingRectangle (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.ERectangle rectangle, eVision.ERectangleMode mode) |
| Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle. | |
| None | RenderMask (self, eVision.EROIBW8 result, int offsetX, int offsetY) |
| Creates a Flexible Mask from the selection. | |
| None | RenderMask (self, eVision.EROIBW8 result) |
| Creates a Flexible Mask from the selection. | |
| eVision.ERegion | ToRegion (self) |
| Converts the object selection to a region. | |
| None | AddObjectsUsingUnsignedIntegerFeature (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode) |
| Selects the objects that fullfil a condition on an unsigned integer feature. | |
| None | AddObjectsUsingUnsignedIntegerFeature (self, eVision.ECodedImage2 codedImage, eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode) |
| Selects the objects that fullfil a condition on an unsigned integer feature. | |
| None | AddObjectsUsingUnsignedIntegerFeature (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.EFeature feature, int lowBound, int highBound, eVision.EDoubleThresholdMode mode) |
| Selects the objects that fullfil a condition on an unsigned integer feature. | |
| None | AddObjectsUsingUnsignedIntegerFeature (self, eVision.ECodedImage2 codedImage, eVision.EFeature feature, int lowBound, int highBound, eVision.EDoubleThresholdMode mode) |
| Selects the objects that fullfil a condition on an unsigned integer feature. | |
| None | AddObjectsUsingIntegerFeature (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode) |
| Selects the objects that fullfil a condition on an integer feature. | |
| None | AddObjectsUsingIntegerFeature (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.EFeature feature, int lowBound, int highBound, eVision.EDoubleThresholdMode mode) |
| Selects the objects that fullfil a condition on an integer feature. | |
| None | AddObjectsUsingIntegerFeature (self, eVision.ECodedImage2 codedImage, eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode) |
| Selects the objects that fullfil a condition on an integer feature. | |
| None | AddObjectsUsingIntegerFeature (self, eVision.ECodedImage2 codedImage, eVision.EFeature feature, int lowBound, int highBound, eVision.EDoubleThresholdMode mode) |
| Selects the objects that fullfil a condition on an integer feature. | |
| None | AddObjectsUsingFloatFeature (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.EFeature feature, float threshold, eVision.ESingleThresholdMode mode) |
| Selects the objects that fullfil a condition on a floating-point feature. | |
| None | AddObjectsUsingFloatFeature (self, eVision.ECodedImage2 codedImage, int layerIndex, eVision.EFeature feature, float lowBound, float highBound, eVision.EDoubleThresholdMode mode) |
| Selects the objects that fullfil a condition on a floating-point feature. | |
| None | AddObjectsUsingFloatFeature (self, eVision.ECodedImage2 codedImage, eVision.EFeature feature, float threshold, eVision.ESingleThresholdMode mode) |
| Selects the objects that fullfil a condition on a floating-point feature. | |
| None | AddObjectsUsingFloatFeature (self, eVision.ECodedImage2 codedImage, eVision.EFeature feature, float lowBound, float highBound, eVision.EDoubleThresholdMode mode) |
| Selects the objects that fullfil a condition on a floating-point feature. | |
| None | RemoveUsingUnsignedIntegerFeature (self, eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode) |
| Removes the selected coded elements that fullfil a condition on an unsigned integer feature. | |
| None | RemoveUsingUnsignedIntegerFeature (self, eVision.EFeature feature, int low, int high, eVision.EDoubleThresholdMode mode) |
| Removes the selected coded elements that fullfil a condition on an unsigned integer feature. | |
| None | RemoveUsingIntegerFeature (self, eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode) |
| Removes the selected coded elements that fullfil a condition on an unsigned integer feature. | |
| None | RemoveUsingIntegerFeature (self, eVision.EFeature feature, int low, int high, eVision.EDoubleThresholdMode mode) |
| Removes the selected coded elements that fullfil a condition on an unsigned integer feature. | |
| None | RemoveUsingFloatFeature (self, eVision.EFeature feature, float threshold, eVision.ESingleThresholdMode mode) |
| Removes the selected coded elements that fullfil a condition on a floating-point feature. | |
| None | RemoveUsingFloatFeature (self, eVision.EFeature feature, float low, float high, eVision.EDoubleThresholdMode mode) |
| Removes the selected coded elements that fullfil a condition on a floating-point feature. | |
| int | GetUnsignedIntegerFeature (self, int index, eVision.EFeature feature) |
| Returns the value of an unsigned integer feature for a selected coded element. | |
| int | GetIntegerFeature (self, int index, eVision.EFeature feature) |
| Returns the value of an integer feature for a selected coded element. | |
| float | GetFloatFeature (self, int index, eVision.EFeature feature) |
| Returns the value of a floating-point feature for a selected coded element. | |
| None | Sort (self, eVision.EFeature feature) |
| Sorts the selected coded elements according to the value of a feature. | |
| None | Sort (self, eVision.EFeature feature, eVision.ESortDirection direction) |
| Sorts the selected coded elements according to the value of a feature. | |
| float | FeatureAverage (self, eVision.EFeature feature) |
| Computes the average of the values of the given feature across the selection. | |
| float | FeatureDeviation (self, eVision.EFeature feature) |
| Computes the standard deviation of the values of the given feature across the selection. | |
| float | FeatureVariance (self, eVision.EFeature feature) |
| Computes the variance of the values of the given feature across the selection. | |
| int | UnsignedIntegerFeatureMinimum (self, eVision.EFeature feature) |
| Computes the minimum value of the given feature across the selection. | |
| int | IntegerFeatureMinimum (self, eVision.EFeature feature) |
| Computes the minimum value of the given feature across the selection. | |
| float | FloatFeatureMinimum (self, eVision.EFeature feature) |
| Computes the minimum value of the given feature across the selection. | |
| int | UnsignedIntegerFeatureMaximum (self, eVision.EFeature feature) |
| Computes the maximum value of the given feature across the selection. | |
| int | IntegerFeatureMaximum (self, eVision.EFeature feature) |
| Computes the maximum value of the given feature across the selection. | |
| float | FloatFeatureMaximum (self, eVision.EFeature feature) |
| Computes the maximum value of the given feature across the selection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, float zoomX, float zoomY, float panX, float panY) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, float zoomX, float zoomY, float panX) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, float zoomX, float zoomY) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, float zoomX) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, eVision.EFrame frame, float zoomX, float zoomY) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, eVision.EFrame frame, float zoomX) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| None | DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, int elementIndex, eVision.EFrame frame) |
| Draw a given feature of all the coded elements from eVision.EObjectSelection. | |
| list[eVision._eVision.ECodedElement] | AllElements (self) |
| All elements in the object selection. | |
| int | ElementCount (self) |
| Returns the number of coded elements selection. | |
| eVision.EROIBW8|None | AttachedImage (self) |
| Returns the currently attached image. | |
| AttachedImage (self, eVision.EROIBW8|None value) | |
| Returns the currently attached image. | |
| float | FeretAngle (self) |
| Angle of the Feret box (in the current angle units). | |
| FeretAngle (self, float value) | |
| Angle of the Feret box (in the current angle units). | |
This container class handles the selection of a subset of coded elements taken from a coded image.
Remarks:
This class provides methods to perform a selection of objects or holes and to retrieve the features of the coded elements in the collection.
License(s): EasyObject
| None eVision.EObjectSelection.__init__ | ( | self | ) |
Constructs an EObjectSelection.
| None eVision.EObjectSelection.__init__ | ( | self, | |
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| eVision.EEncodingConnexity | connexity ) |
Constructs an EObjectSelection.
| region | Region to construct the eVision.EObjectSelection from. All contiguous elements on the region are grouped together to form objects. |
| frame | Frame associated with the region. Defaults to identity frame. |
| connexity | The connexity mode that specifies the conditions that must hold for neighboring pixels to belong to the same object. Defaults to eVision.EEncodingConnexity.Eight. |
| None eVision.EObjectSelection.__init__ | ( | self, | |
| eVision.ERegion | region, | ||
| eVision.EFrame | frame ) |
Constructs an EObjectSelection.
| region | Region to construct the eVision.EObjectSelection from. All contiguous elements on the region are grouped together to form objects. |
| frame | Frame associated with the region. Defaults to identity frame. |
| None eVision.EObjectSelection.__init__ | ( | self, | |
| eVision.ERegion | region ) |
Constructs an EObjectSelection.
| region | Region to construct the eVision.EObjectSelection from. All contiguous elements on the region are grouped together to form objects. |
| None eVision.EObjectSelection.__init__ | ( | self, | |
| eVision.EObjectSelection | other ) |
Constructs an EObjectSelection.
| other | The other eVision.EObjectSelection to copy into this one. |
| None eVision.EObjectSelection.Add | ( | self, | |
| eVision.ECodedElement | element ) |
Add a coded element to the selection.
| element | The coded element. |
| None eVision.EObjectSelection.AddHole | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | objectIndex, | ||
| int | holeIndex ) |
Adds a single hole of a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration. |
| objectIndex | The index of the parent object in the layer. |
| holeIndex | The index of the hole in the parent object. |
| None eVision.EObjectSelection.AddHole | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | objectIndex, | ||
| int | holeIndex ) |
Adds a single hole of a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| objectIndex | The index of the parent object in the layer. |
| holeIndex | The index of the hole in the parent object. |
| None eVision.EObjectSelection.AddHoles | ( | self, | |
| eVision.ECodedImage2 | codedImage ) |
Adds all the holes contained in an object, in a layer or in a coded image.
| codedImage | The source coded image. |
| None eVision.EObjectSelection.AddHoles | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex ) |
Adds all the holes contained in an object, in a layer or in a coded image.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, all the layers are taken into consideration. |
| None eVision.EObjectSelection.AddHoles | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | objectIndex ) |
Adds all the holes contained in an object, in a layer or in a coded image.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, all the layers are taken into consideration. |
| objectIndex | The index of the parent object. If this parameter is left unspecified, all the objects are taken into consideration. |
| None eVision.EObjectSelection.AddHolesOfSelectedObjects | ( | self | ) |
Adds the holes of all the objects that are currently selected.
| None eVision.EObjectSelection.AddLayer | ( | self, | |
| eVision.ECodedImage2 | codedImage ) |
Adds all the objects of a single layer in a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| None eVision.EObjectSelection.AddLayer | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex ) |
Adds all the objects of a single layer in a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration. |
| None eVision.EObjectSelection.AddObject | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | objectIndex ) |
Adds a single object of a layer in a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration. |
| objectIndex | The index of the object in the layer. |
| None eVision.EObjectSelection.AddObject | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | objectIndex ) |
Adds a single object of a layer in a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| objectIndex | The index of the object in the layer. |
| None eVision.EObjectSelection.AddObjects | ( | self, | |
| eVision.ECodedImage2 | image ) |
Adds all the objects of all the layers of a given coded image.
| image | The coded image. |
| None eVision.EObjectSelection.AddObjectsUsingFloatFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EFeature | feature, | ||
| float | lowBound, | ||
| float | highBound, | ||
| eVision.EDoubleThresholdMode | mode ) |
Selects the objects that fullfil a condition on a floating-point feature.
Remarks:
Most features are floating-point. These methods thus tend to be the most widely used.
| codedImage | The source coded image. |
| feature | The feature that serves as a filter. |
| lowBound | The low bound of the range on the feature. |
| highBound | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingFloatFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EFeature | feature, | ||
| float | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Selects the objects that fullfil a condition on a floating-point feature.
Remarks:
Most features are floating-point. These methods thus tend to be the most widely used.
| codedImage | The source coded image. |
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingFloatFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.EFeature | feature, | ||
| float | lowBound, | ||
| float | highBound, | ||
| eVision.EDoubleThresholdMode | mode ) |
Selects the objects that fullfil a condition on a floating-point feature.
Remarks:
Most features are floating-point. These methods thus tend to be the most widely used.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If left unspecified, all the layers are taken into consideration. |
| feature | The feature that serves as a filter. |
| lowBound | The low bound of the range on the feature. |
| highBound | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingFloatFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.EFeature | feature, | ||
| float | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Selects the objects that fullfil a condition on a floating-point feature.
Remarks:
Most features are floating-point. These methods thus tend to be the most widely used.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If left unspecified, all the layers are taken into consideration. |
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingIntegerFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EFeature | feature, | ||
| int | lowBound, | ||
| int | highBound, | ||
| eVision.EDoubleThresholdMode | mode ) |
Selects the objects that fullfil a condition on an integer feature.
| codedImage | The source coded image. |
| feature | The feature that serves as a filter. |
| lowBound | The low bound of the range on the feature. |
| highBound | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingIntegerFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EFeature | feature, | ||
| int | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Selects the objects that fullfil a condition on an integer feature.
| codedImage | The source coded image. |
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingIntegerFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.EFeature | feature, | ||
| int | lowBound, | ||
| int | highBound, | ||
| eVision.EDoubleThresholdMode | mode ) |
Selects the objects that fullfil a condition on an integer feature.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If left unspecified, all the layers are taken into consideration. |
| feature | The feature that serves as a filter. |
| lowBound | The low bound of the range on the feature. |
| highBound | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingIntegerFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.EFeature | feature, | ||
| int | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Selects the objects that fullfil a condition on an integer feature.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If left unspecified, all the layers are taken into consideration. |
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.EFrame | frame, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| rectangle | The selection rectangle. |
| frame | The frame of reference in which the selection rectangle was defined. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.AddObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| rectangle | The selection rectangle. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.AddObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.EFrame | frame, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| rectangle | The selection rectangle. |
| frame | The frame of reference in which the selection rectangle was defined. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.AddObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| rectangle | The selection rectangle. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.AddObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| x | The X-coordinate of the top-left corner of the selection rectangle. |
| y | The Y-coordinate of the top-left corner of the selection rectangle. |
| width | The width of the selection rectangle. |
| height | The height of the selection rectangle. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.AddObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| x | The X-coordinate of the top-left corner of the selection rectangle. |
| y | The Y-coordinate of the top-left corner of the selection rectangle. |
| width | The width of the selection rectangle. |
| height | The height of the selection rectangle. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.AddObjectsUsingRegion | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on an arbitrary region.
| codedImage | The source coded image. |
| region | The region defining the geometric domain. |
| frame | The frame of reference in which the region was defined. |
| mode | The comparison mode with respect to the region. |
| None eVision.EObjectSelection.AddObjectsUsingRegion | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.ERegion | region, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on an arbitrary region.
| codedImage | The source coded image. |
| region | The region defining the geometric domain. |
| mode | The comparison mode with respect to the region. |
| None eVision.EObjectSelection.AddObjectsUsingRegion | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on an arbitrary region.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| region | The region defining the geometric domain. |
| frame | The frame of reference in which the region was defined. |
| mode | The comparison mode with respect to the region. |
| None eVision.EObjectSelection.AddObjectsUsingRegion | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.ERegion | region, | ||
| eVision.ERectangleMode | mode ) |
Adds all the objects of a coded image whose location fullfil a criterion based on an arbitrary region.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| region | The region defining the geometric domain. |
| mode | The comparison mode with respect to the region. |
| None eVision.EObjectSelection.AddObjectsUsingUnsignedIntegerFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EFeature | feature, | ||
| int | lowBound, | ||
| int | highBound, | ||
| eVision.EDoubleThresholdMode | mode ) |
Selects the objects that fullfil a condition on an unsigned integer feature.
| codedImage | The source coded image. |
| feature | The feature that serves as a filter. |
| lowBound | The low bound of the range on the feature. |
| highBound | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingUnsignedIntegerFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EFeature | feature, | ||
| int | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Selects the objects that fullfil a condition on an unsigned integer feature.
| codedImage | The source coded image. |
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingUnsignedIntegerFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.EFeature | feature, | ||
| int | lowBound, | ||
| int | highBound, | ||
| eVision.EDoubleThresholdMode | mode ) |
Selects the objects that fullfil a condition on an unsigned integer feature.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If left unspecified, all the layers are taken into consideration. |
| feature | The feature that serves as a filter. |
| lowBound | The low bound of the range on the feature. |
| highBound | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectsUsingUnsignedIntegerFeature | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.EFeature | feature, | ||
| int | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Selects the objects that fullfil a condition on an unsigned integer feature.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If left unspecified, all the layers are taken into consideration. |
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.AddObjectUsingPosition | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EPoint | position ) |
Adds the object of a coded image that lies at a particular location.
Remarks:
If no object lies at the specified coordinate, the selection is not changed.
| codedImage | The source coded image. |
| position | The position of the object. |
| None eVision.EObjectSelection.AddObjectUsingPosition | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EPoint | position, | ||
| eVision.EFrame | frame ) |
Adds the object of a coded image that lies at a particular location.
Remarks:
If no object lies at the specified coordinate, the selection is not changed.
| codedImage | The source coded image. |
| position | The position of the object. |
| frame | The frame of reference in which the position was defined. |
| None eVision.EObjectSelection.AddObjectUsingPosition | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | x, | ||
| int | y ) |
Adds the object of a coded image that lies at a particular location.
Remarks:
If no object lies at the specified coordinate, the selection is not changed.
| codedImage | The source coded image. |
| x | The X-coordinate of the object. |
| y | The Y-coordinate of the object. |
| None eVision.EObjectSelection.AddRegionAsObjects | ( | self, | |
| eVision.ERegion | region ) |
Add the objects corresponding to the given region to the eVision.EObjectSelection.
| region | Region to add the objects from. All contiguous elements on the region are grouped together to form objects. |
| None eVision.EObjectSelection.AddRegionAsObjects | ( | self, | |
| eVision.ERegion | region, | ||
| eVision.EFrame | frame ) |
Add the objects corresponding to the given region to the eVision.EObjectSelection.
| region | Region to add the objects from. All contiguous elements on the region are grouped together to form objects. |
| frame | Frame associated with the region. Defaults to identity frame. |
| None eVision.EObjectSelection.AddRegionAsObjects | ( | self, | |
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| eVision.EEncodingConnexity | connexity ) |
Add the objects corresponding to the given region to the eVision.EObjectSelection.
| region | Region to add the objects from. All contiguous elements on the region are grouped together to form objects. |
| frame | Frame associated with the region. Defaults to identity frame. |
| connexity | The connexity mode that specifies the conditions that must hold for neighboring pixels to belong to the same object. Defaults to eVision.EEncodingConnexity.Eight. |
| list[eVision._eVision.ECodedElement] eVision.EObjectSelection.AllElements | ( | self | ) |
All elements in the object selection.
| eVision.EROIBW8 | None eVision.EObjectSelection.AttachedImage | ( | self | ) |
Returns the currently attached image.
| eVision.EObjectSelection.AttachedImage | ( | self, | |
| eVision.EROIBW8 | None | value ) |
Returns the currently attached image.
| None eVision.EObjectSelection.Clear | ( | self | ) |
Remove all the coded elements that are contained in the selection.
| None eVision.EObjectSelection.ClearFeatureCache | ( | self | ) |
Clears the internal cache for the computed features.
Remarks:
This is useful to reduce memory consumption.
| None eVision.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| None eVision.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| eVision.EFrame | frame ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| frame | Frame of reference used to compute the coded image. |
| None eVision.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| frame | Frame of reference used to compute the coded image. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| None eVision.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| frame | Frame of reference used to compute the coded image. |
| 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.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| frame | Frame of reference used to compute the coded image. |
| 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.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| frame | Frame of reference used to compute the coded image. |
| 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 value expressed in pixels. By default, no panning occurs. |
| None eVision.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| frame | Frame of reference used to compute the coded image. |
| 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 value expressed in pixels. By default, no panning occurs. |
| drawDiagonals | Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false. |
| None eVision.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| float | zoomX ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| None eVision.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| 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.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| 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.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| 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 value expressed in pixels. By default, no panning occurs. |
| None eVision.EObjectSelection.DrawFeature | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EDrawableFeature | feature, | ||
| int | elementIndex, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) |
Draw a given feature of all the coded elements from eVision.EObjectSelection.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| elementIndex | The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration. |
| 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 value expressed in pixels. By default, no panning occurs. |
| drawDiagonals | Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false. |
| int eVision.EObjectSelection.ElementCount | ( | self | ) |
Returns the number of coded elements selection.
| float eVision.EObjectSelection.FeatureAverage | ( | self, | |
| eVision.EFeature | feature ) |
Computes the average of the values of the given feature across the selection.
| feature | The feature of interest. |
| float eVision.EObjectSelection.FeatureDeviation | ( | self, | |
| eVision.EFeature | feature ) |
Computes the standard deviation of the values of the given feature across the selection.
| feature | The feature of interest. |
| float eVision.EObjectSelection.FeatureVariance | ( | self, | |
| eVision.EFeature | feature ) |
Computes the variance of the values of the given feature across the selection.
| feature | The feature of interest. |
| float eVision.EObjectSelection.FeretAngle | ( | self | ) |
Angle of the Feret box (in the current angle units).
Remarks:
A Feret angle must be set for the following features: eVision.EFeature.FeretBoxCenterX, eVision.EFeature.FeretBoxCenterY, eVision.EFeature.FeretBoxWidth, eVision.EFeature.FeretBoxHeight.
| eVision.EObjectSelection.FeretAngle | ( | self, | |
| float | value ) |
Angle of the Feret box (in the current angle units).
Remarks:
A Feret angle must be set for the following features: eVision.EFeature.FeretBoxCenterX, eVision.EFeature.FeretBoxCenterY, eVision.EFeature.FeretBoxWidth, eVision.EFeature.FeretBoxHeight.
| float eVision.EObjectSelection.FloatFeatureMaximum | ( | self, | |
| eVision.EFeature | feature ) |
Computes the maximum value of the given feature across the selection.
Remarks:
Most features are floating-point. This method thus tends to be the most widely used.
| feature | The feature of interest. |
| float eVision.EObjectSelection.FloatFeatureMinimum | ( | self, | |
| eVision.EFeature | feature ) |
Computes the minimum value of the given feature across the selection.
Remarks:
Most features are floating-point. This method thus tends to be the most widely used.
| feature | The feature of interest. |
| eVision.ECodedElement eVision.EObjectSelection.GetElement | ( | self, | |
| int | index ) |
Index-based access to the coded elements of the selection.
| index | The index of the coded element of interest. |
| float eVision.EObjectSelection.GetFloatFeature | ( | self, | |
| int | index, | ||
| eVision.EFeature | feature ) |
Returns the value of a floating-point feature for a selected coded element.
Remarks:
Most features are floating-point. This method thus tends to be the most widely used.
| index | The index of the selected coded element. |
| feature | The feature of interest. |
| int eVision.EObjectSelection.GetIndexOfElement | ( | self, | |
| eVision.ECodedElement | element ) |
Retrieves the index of a given coded element in the selection.
Remarks:
An exception is thrown if the coded element is not present in the selection.
| element | The coded element of interest. |
| int eVision.EObjectSelection.GetIntegerFeature | ( | self, | |
| int | index, | ||
| eVision.EFeature | feature ) |
Returns the value of an integer feature for a selected coded element.
| index | The index of the selected coded element. |
| feature | The feature of interest. |
| int eVision.EObjectSelection.GetUnsignedIntegerFeature | ( | self, | |
| int | index, | ||
| eVision.EFeature | feature ) |
Returns the value of an unsigned integer feature for a selected coded element.
| index | The index of the selected coded element. |
| feature | The feature of interest. |
| int eVision.EObjectSelection.IntegerFeatureMaximum | ( | self, | |
| eVision.EFeature | feature ) |
Computes the maximum value of the given feature across the selection.
| feature | The feature of interest. |
| int eVision.EObjectSelection.IntegerFeatureMinimum | ( | self, | |
| eVision.EFeature | feature ) |
Computes the minimum value of the given feature across the selection.
| feature | The feature of interest. |
| bool eVision.EObjectSelection.IsSelected | ( | self, | |
| eVision.ECodedElement | element ) |
Tests whether a given coded element is present in the selection.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| element | The coded element. |
| bool eVision.EObjectSelection.IsSelected | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | objectIndex ) |
Tests whether a given coded element is present in the selection.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration. |
| objectIndex | The index of the object in the layer of interest. |
| bool eVision.EObjectSelection.IsSelected | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | objectIndex, | ||
| int | holeIndex ) |
Tests whether a given coded element is present in the selection.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration. |
| objectIndex | The index of the object in the layer of interest. |
| holeIndex | If specified, the index of the hole in the object. If unspecified, one tests the presence of the object. |
| bool eVision.EObjectSelection.IsSelected | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | objectIndex ) |
Tests whether a given coded element is present in the selection.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| objectIndex | The index of the object in the layer of interest. |
| None eVision.EObjectSelection.Remove | ( | self, | |
| eVision.ECodedElement | element ) |
Remove a coded element from the selection.
| element | The coded element. |
| None eVision.EObjectSelection.RemoveHole | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | objectIndex, | ||
| int | holeIndex ) |
Removes a single hole of a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration. |
| objectIndex | The index of the parent object in the layer. |
| holeIndex | The index of the hole in the parent object. |
| None eVision.EObjectSelection.RemoveHole | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | objectIndex, | ||
| int | holeIndex ) |
Removes a single hole of a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| objectIndex | The index of the parent object in the layer. |
| holeIndex | The index of the hole in the parent object. |
| None eVision.EObjectSelection.RemoveHoles | ( | self, | |
| eVision.ECodedImage2 | codedImage ) |
Removes all the holes contained in an object, in a layer or in a coded image.
| codedImage | The source coded image. |
| None eVision.EObjectSelection.RemoveHoles | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex ) |
Removes all the holes contained in an object, in a layer or in a coded image.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, all the layers are taken into consideration. |
| None eVision.EObjectSelection.RemoveHoles | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | objectIndex ) |
Removes all the holes contained in an object, in a layer or in a coded image.
| codedImage | The source coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, all the layers are taken into consideration. |
| objectIndex | The index of the parent object. If this parameter is left unspecified, all the objects are taken into consideration. |
| None eVision.EObjectSelection.RemoveLayer | ( | self, | |
| eVision.ECodedImage2 | codedImage ) |
Removes all the objects of a single layer in a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| None eVision.EObjectSelection.RemoveLayer | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex ) |
Removes all the objects of a single layer in a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration. |
| None eVision.EObjectSelection.RemoveObject | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | objectIndex ) |
Removes a single object of a layer in a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| layerIndex | The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration. |
| objectIndex | The index of the object in the layer. |
| None eVision.EObjectSelection.RemoveObject | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | objectIndex ) |
Removes a single object of a layer in a coded image.
Remarks:
This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.
| codedImage | The coded image. |
| objectIndex | The index of the object in the layer. |
| None eVision.EObjectSelection.RemoveObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.EFrame | frame, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| rectangle | The selection rectangle. |
| frame | The frame of reference in which the selection rectangle was defined. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.RemoveObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| rectangle | The selection rectangle. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.RemoveObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.EFrame | frame, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| rectangle | The selection rectangle. |
| frame | The frame of reference in which the selection rectangle was defined. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.RemoveObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| rectangle | The selection rectangle. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.RemoveObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| x | The X-coordinate of the top-left corner of the selection rectangle. |
| y | The Y-coordinate of the top-left corner of the selection rectangle. |
| width | The width of the selection rectangle. |
| height | The height of the selection rectangle. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.RemoveObjectsUsingRectangle | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
| codedImage | The source coded image. |
| x | The X-coordinate of the top-left corner of the selection rectangle. |
| y | The Y-coordinate of the top-left corner of the selection rectangle. |
| width | The width of the selection rectangle. |
| height | The height of the selection rectangle. |
| mode | The comparison mode with respect to the selection rectangle. |
| None eVision.EObjectSelection.RemoveObjectsUsingRegion | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on an arbitrary region.
| codedImage | The source coded image. |
| region | The region defining the geometric domain. |
| frame | The frame of reference in which the region was defined. |
| mode | The comparison mode with respect to the region. |
| None eVision.EObjectSelection.RemoveObjectsUsingRegion | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.ERegion | region, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on an arbitrary region.
| codedImage | The source coded image. |
| region | The region defining the geometric domain. |
| mode | The comparison mode with respect to the region. |
| None eVision.EObjectSelection.RemoveObjectsUsingRegion | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on an arbitrary region.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| region | The region defining the geometric domain. |
| frame | The frame of reference in which the region was defined. |
| mode | The comparison mode with respect to the region. |
| None eVision.EObjectSelection.RemoveObjectsUsingRegion | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | layerIndex, | ||
| eVision.ERegion | region, | ||
| eVision.ERectangleMode | mode ) |
Removes all the objects of a coded image whose location fullfil a criterion based on an arbitrary region.
| codedImage | The source coded image. |
| layerIndex | If specified, only the specified layer is taken into consideration. |
| region | The region defining the geometric domain. |
| mode | The comparison mode with respect to the region. |
| None eVision.EObjectSelection.RemoveObjectUsingPosition | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EPoint | position ) |
Removes the object of a coded image that lies at a particular location.
Remarks:
If no object lies at the specified coordinate, the selection is not changed.
| codedImage | The source coded image. |
| position | The position of the object. |
| None eVision.EObjectSelection.RemoveObjectUsingPosition | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| eVision.EPoint | position, | ||
| eVision.EFrame | frame ) |
Removes the object of a coded image that lies at a particular location.
Remarks:
If no object lies at the specified coordinate, the selection is not changed.
| codedImage | The source coded image. |
| position | The position of the object. |
| frame | The frame of reference in which the point was defined. |
| None eVision.EObjectSelection.RemoveObjectUsingPosition | ( | self, | |
| eVision.ECodedImage2 | codedImage, | ||
| int | x, | ||
| int | y ) |
Removes the object of a coded image that lies at a particular location.
Remarks:
If no object lies at the specified coordinate, the selection is not changed.
| codedImage | The source coded image. |
| x | The X-coordinate of the object. |
| y | The Y-coordinate of the object. |
| None eVision.EObjectSelection.RemoveSelectedHoles | ( | self | ) |
Remove all the holes that are currently present in the selection.
| None eVision.EObjectSelection.RemoveUsingFloatFeature | ( | self, | |
| eVision.EFeature | feature, | ||
| float | low, | ||
| float | high, | ||
| eVision.EDoubleThresholdMode | mode ) |
Removes the selected coded elements that fullfil a condition on a floating-point feature.
Remarks:
Most features are floating-point. These methods thus tend to be the most widely used.
| feature | The feature that serves as a filter. |
| low | The low bound of the range on the feature. |
| high | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.RemoveUsingFloatFeature | ( | self, | |
| eVision.EFeature | feature, | ||
| float | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Removes the selected coded elements that fullfil a condition on a floating-point feature.
Remarks:
Most features are floating-point. These methods thus tend to be the most widely used.
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.RemoveUsingIntegerFeature | ( | self, | |
| eVision.EFeature | feature, | ||
| int | low, | ||
| int | high, | ||
| eVision.EDoubleThresholdMode | mode ) |
Removes the selected coded elements that fullfil a condition on an unsigned integer feature.
| feature | The feature that serves as a filter. |
| low | The low bound of the range on the feature. |
| high | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.RemoveUsingIntegerFeature | ( | self, | |
| eVision.EFeature | feature, | ||
| int | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Removes the selected coded elements that fullfil a condition on an unsigned integer feature.
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.RemoveUsingUnsignedIntegerFeature | ( | self, | |
| eVision.EFeature | feature, | ||
| int | low, | ||
| int | high, | ||
| eVision.EDoubleThresholdMode | mode ) |
Removes the selected coded elements that fullfil a condition on an unsigned integer feature.
| feature | The feature that serves as a filter. |
| low | The low bound of the range on the feature. |
| high | The high bound of the range on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.RemoveUsingUnsignedIntegerFeature | ( | self, | |
| eVision.EFeature | feature, | ||
| int | threshold, | ||
| eVision.ESingleThresholdMode | mode ) |
Removes the selected coded elements that fullfil a condition on an unsigned integer feature.
| feature | The feature that serves as a filter. |
| threshold | The single threshold on the feature. |
| mode | Specifies the way the threshold is interpreted. |
| None eVision.EObjectSelection.RenderMask | ( | self, | |
| eVision.EROIBW8 | result ) |
Creates a Flexible Mask from the selection.
Remarks:
The size of the result image will not be changed: It must be properly sized beforehand.
This method generates an exception if several layers are encoded, in which case no default layer exists.
| result | The image in which the generated mask will be stored. |
| None eVision.EObjectSelection.RenderMask | ( | self, | |
| eVision.EROIBW8 | result, | ||
| int | offsetX, | ||
| int | offsetY ) |
Creates a Flexible Mask from the selection.
Remarks:
The size of the result image will not be changed: It must be properly sized beforehand.
This method generates an exception if several layers are encoded, in which case no default layer exists.
| result | The image in which the generated mask will be stored. |
| offsetX | The X-offset that must be applied to bring the zero X-coordinate in the coded image on the first column of the result image (defaults to zero). |
| offsetY | The Y-offset that must be applied to bring the zero Y-coordinate in the coded image on the first row of the result image (defaults to zero). |
| None eVision.EObjectSelection.Sort | ( | self, | |
| eVision.EFeature | feature ) |
Sorts the selected coded elements according to the value of a feature.
| feature | The feature to sort with. |
| None eVision.EObjectSelection.Sort | ( | self, | |
| eVision.EFeature | feature, | ||
| eVision.ESortDirection | direction ) |
Sorts the selected coded elements according to the value of a feature.
| feature | The feature to sort with. |
| direction | The sorting direction. By default, the features are sorted by increasing values. |
| eVision.ERegion eVision.EObjectSelection.ToRegion | ( | self | ) |
Converts the object selection to a region.
| int eVision.EObjectSelection.UnsignedIntegerFeatureMaximum | ( | self, | |
| eVision.EFeature | feature ) |
Computes the maximum value of the given feature across the selection.
| feature | The feature of interest. |
| int eVision.EObjectSelection.UnsignedIntegerFeatureMinimum | ( | self, | |
| eVision.EFeature | feature ) |
Computes the minimum value of the given feature across the selection.
| feature | The feature of interest. |