eVision .NET API
Loading...
Searching...
No Matches
eVision.EObjectSelection Class Reference

This container class handles the selection of a subset of coded elements taken from a coded image. More...

Inheritance diagram for eVision.EObjectSelection:
Collaboration diagram for eVision.EObjectSelection:

Public Member Functions

 EObjectSelection ()
 Constructs an EObjectSelection.
 EObjectSelection (eVision.ERegion region, eVision.EFrame frame, eVision.EEncodingConnexity connexity)
 Constructs an EObjectSelection.
 EObjectSelection (eVision.ERegion region, eVision.EFrame frame)
 Constructs an EObjectSelection.
 EObjectSelection (eVision.ERegion region)
 Constructs an EObjectSelection.
 EObjectSelection (eVision.EObjectSelection other)
 Constructs an EObjectSelection.
void Clear ()
 Remove all the coded elements that are contained in the selection.
void Add (eVision.ECodedElement element)
 Add a coded element to the selection.
void Remove (eVision.ECodedElement element)
 Remove a coded element from the selection.
eVision.ECodedElement GetElement (uint index)
 Index-based access to the coded elements of the selection.
uint GetIndexOfElement (eVision.ECodedElement element)
 Retrieves the index of a given coded element in the selection.
void AddObjects (eVision.ECodedImage2 image)
 Adds all the objects of all the layers of a given coded image.
void ClearFeatureCache ()
 Clears the internal cache for the computed features.
bool IsSelected (eVision.ECodedElement element)
 Tests whether a given coded element is present in the selection.
bool IsSelected (eVision.ECodedImage2 codedImage, uint objectIndex)
 Tests whether a given coded element is present in the selection.
bool IsSelected (eVision.ECodedImage2 codedImage, uint layerIndex, uint objectIndex)
 Tests whether a given coded element is present in the selection.
bool IsSelected (eVision.ECodedImage2 codedImage, uint layerIndex, uint objectIndex, uint holeIndex)
 Tests whether a given coded element is present in the selection.
void AddLayer (eVision.ECodedImage2 codedImage, uint layerIndex)
 Adds all the objects of a single layer in a coded image.
void AddLayer (eVision.ECodedImage2 codedImage)
 Adds all the objects of a single layer in a coded image.
void RemoveLayer (eVision.ECodedImage2 codedImage)
 Removes all the objects of a single layer in a coded image.
void RemoveLayer (eVision.ECodedImage2 codedImage, uint layerIndex)
 Removes all the objects of a single layer in a coded image.
void AddObject (eVision.ECodedImage2 codedImage, uint objectIndex)
 Adds a single object of a layer in a coded image.
void AddObject (eVision.ECodedImage2 codedImage, uint layerIndex, uint objectIndex)
 Adds a single object of a layer in a coded image.
void RemoveObject (eVision.ECodedImage2 codedImage, uint objectIndex)
 Removes a single object of a layer in a coded image.
void RemoveObject (eVision.ECodedImage2 codedImage, uint layerIndex, uint objectIndex)
 Removes a single object of a layer in a coded image.
void AddHole (eVision.ECodedImage2 codedImage, uint objectIndex, uint holeIndex)
 Adds a single hole of a coded image.
void AddHole (eVision.ECodedImage2 codedImage, uint layerIndex, uint objectIndex, uint holeIndex)
 Adds a single hole of a coded image.
void RemoveHole (eVision.ECodedImage2 codedImage, uint objectIndex, uint holeIndex)
 Removes a single hole of a coded image.
void RemoveHole (eVision.ECodedImage2 codedImage, uint layerIndex, uint objectIndex, uint holeIndex)
 Removes a single hole of a coded image.
void AddHolesOfSelectedObjects ()
 Adds the holes of all the objects that are currently selected.
void AddHoles (eVision.ECodedImage2 codedImage)
 Adds all the holes contained in an object, in a layer or in a coded image.
void AddHoles (eVision.ECodedImage2 codedImage, uint layerIndex)
 Adds all the holes contained in an object, in a layer or in a coded image.
void AddHoles (eVision.ECodedImage2 codedImage, uint layerIndex, uint objectIndex)
 Adds all the holes contained in an object, in a layer or in a coded image.
void RemoveSelectedHoles ()
 Remove all the holes that are currently present in the selection.
void RemoveHoles (eVision.ECodedImage2 codedImage)
 Removes all the holes contained in an object, in a layer or in a coded image.
void RemoveHoles (eVision.ECodedImage2 codedImage, uint layerIndex)
 Removes all the holes contained in an object, in a layer or in a coded image.
void RemoveHoles (eVision.ECodedImage2 codedImage, uint layerIndex, uint objectIndex)
 Removes all the holes contained in an object, in a layer or in a coded image.
void AddRegionAsObjects (eVision.ERegion region, eVision.EFrame frame, eVision.EEncodingConnexity connexity)
 Add the objects corresponding to the given region to the EObjectSelection.
void AddRegionAsObjects (eVision.ERegion region, eVision.EFrame frame)
 Add the objects corresponding to the given region to the EObjectSelection.
void AddRegionAsObjects (eVision.ERegion region)
 Add the objects corresponding to the given region to the EObjectSelection.
void AddObjectUsingPosition (eVision.ECodedImage2 codedImage, int x, int y)
 Adds the object of a coded image that lies at a particular location.
void AddObjectUsingPosition (eVision.ECodedImage2 codedImage, eVision.EPoint position, eVision.EFrame frame)
 Adds the object of a coded image that lies at a particular location.
void AddObjectUsingPosition (eVision.ECodedImage2 codedImage, eVision.EPoint position)
 Adds the object of a coded image that lies at a particular location.
void RemoveObjectUsingPosition (eVision.ECodedImage2 codedImage, int x, int y)
 Removes the object of a coded image that lies at a particular location.
void RemoveObjectUsingPosition (eVision.ECodedImage2 codedImage, eVision.EPoint position, eVision.EFrame frame)
 Removes the object of a coded image that lies at a particular location.
void RemoveObjectUsingPosition (eVision.ECodedImage2 codedImage, eVision.EPoint position)
 Removes the object of a coded image that lies at a particular location.
void AddObjectsUsingRegion (eVision.ECodedImage2 codedImage, uint 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.
void AddObjectsUsingRegion (eVision.ECodedImage2 codedImage, uint 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.
void AddObjectsUsingRegion (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.
void AddObjectsUsingRegion (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.
void RemoveObjectsUsingRegion (eVision.ECodedImage2 codedImage, uint 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.
void RemoveObjectsUsingRegion (eVision.ECodedImage2 codedImage, uint 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.
void RemoveObjectsUsingRegion (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.
void RemoveObjectsUsingRegion (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.
void AddObjectsUsingRectangle (eVision.ECodedImage2 codedImage, int x, int y, uint width, uint height, eVision.ERectangleMode mode)
 Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
void AddObjectsUsingRectangle (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.
void AddObjectsUsingRectangle (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.
void AddObjectsUsingRectangle (eVision.ECodedImage2 codedImage, uint layerIndex, int x, int y, uint width, uint height, eVision.ERectangleMode mode)
 Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
void AddObjectsUsingRectangle (eVision.ECodedImage2 codedImage, uint 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.
void AddObjectsUsingRectangle (eVision.ECodedImage2 codedImage, uint layerIndex, eVision.ERectangle rectangle, eVision.ERectangleMode mode)
 Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.
void RemoveObjectsUsingRectangle (eVision.ECodedImage2 codedImage, int x, int y, uint width, uint height, eVision.ERectangleMode mode)
 Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
void RemoveObjectsUsingRectangle (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.
void RemoveObjectsUsingRectangle (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.
void RemoveObjectsUsingRectangle (eVision.ECodedImage2 codedImage, uint layerIndex, int x, int y, uint width, uint height, eVision.ERectangleMode mode)
 Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
void RemoveObjectsUsingRectangle (eVision.ECodedImage2 codedImage, uint 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.
void RemoveObjectsUsingRectangle (eVision.ECodedImage2 codedImage, uint layerIndex, eVision.ERectangle rectangle, eVision.ERectangleMode mode)
 Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.
void RenderMask (eVision.EROIBW8 result, int offsetX, int offsetY)
 Creates a Flexible Mask from the selection.
void RenderMask (eVision.EROIBW8 result)
 Creates a Flexible Mask from the selection.
eVision.ERegion ToRegion ()
 Converts the object selection to a region.
void AddObjectsUsingUnsignedIntegerFeature (eVision.ECodedImage2 codedImage, uint layerIndex, eVision.EFeature feature, uint threshold, eVision.ESingleThresholdMode mode)
 Selects the objects that fullfil a condition on an unsigned integer feature.
void AddObjectsUsingUnsignedIntegerFeature (eVision.ECodedImage2 codedImage, eVision.EFeature feature, uint threshold, eVision.ESingleThresholdMode mode)
 Selects the objects that fullfil a condition on an unsigned integer feature.
void AddObjectsUsingUnsignedIntegerFeature (eVision.ECodedImage2 codedImage, uint layerIndex, eVision.EFeature feature, uint lowBound, uint highBound, eVision.EDoubleThresholdMode mode)
 Selects the objects that fullfil a condition on an unsigned integer feature.
void AddObjectsUsingUnsignedIntegerFeature (eVision.ECodedImage2 codedImage, eVision.EFeature feature, uint lowBound, uint highBound, eVision.EDoubleThresholdMode mode)
 Selects the objects that fullfil a condition on an unsigned integer feature.
void AddObjectsUsingIntegerFeature (eVision.ECodedImage2 codedImage, uint layerIndex, eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode)
 Selects the objects that fullfil a condition on an integer feature.
void AddObjectsUsingIntegerFeature (eVision.ECodedImage2 codedImage, uint layerIndex, eVision.EFeature feature, int lowBound, int highBound, eVision.EDoubleThresholdMode mode)
 Selects the objects that fullfil a condition on an integer feature.
void AddObjectsUsingIntegerFeature (eVision.ECodedImage2 codedImage, eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode)
 Selects the objects that fullfil a condition on an integer feature.
void AddObjectsUsingIntegerFeature (eVision.ECodedImage2 codedImage, eVision.EFeature feature, int lowBound, int highBound, eVision.EDoubleThresholdMode mode)
 Selects the objects that fullfil a condition on an integer feature.
void AddObjectsUsingFloatFeature (eVision.ECodedImage2 codedImage, uint layerIndex, eVision.EFeature feature, float threshold, eVision.ESingleThresholdMode mode)
 Selects the objects that fullfil a condition on a floating-point feature.
void AddObjectsUsingFloatFeature (eVision.ECodedImage2 codedImage, uint layerIndex, eVision.EFeature feature, float lowBound, float highBound, eVision.EDoubleThresholdMode mode)
 Selects the objects that fullfil a condition on a floating-point feature.
void AddObjectsUsingFloatFeature (eVision.ECodedImage2 codedImage, eVision.EFeature feature, float threshold, eVision.ESingleThresholdMode mode)
 Selects the objects that fullfil a condition on a floating-point feature.
void AddObjectsUsingFloatFeature (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.
void RemoveUsingUnsignedIntegerFeature (eVision.EFeature feature, uint threshold, eVision.ESingleThresholdMode mode)
 Removes the selected coded elements that fullfil a condition on an unsigned integer feature.
void RemoveUsingUnsignedIntegerFeature (eVision.EFeature feature, uint low, uint high, eVision.EDoubleThresholdMode mode)
 Removes the selected coded elements that fullfil a condition on an unsigned integer feature.
void RemoveUsingIntegerFeature (eVision.EFeature feature, int threshold, eVision.ESingleThresholdMode mode)
 Removes the selected coded elements that fullfil a condition on an unsigned integer feature.
void RemoveUsingIntegerFeature (eVision.EFeature feature, int low, int high, eVision.EDoubleThresholdMode mode)
 Removes the selected coded elements that fullfil a condition on an unsigned integer feature.
void RemoveUsingFloatFeature (eVision.EFeature feature, float threshold, eVision.ESingleThresholdMode mode)
 Removes the selected coded elements that fullfil a condition on a floating-point feature.
void RemoveUsingFloatFeature (eVision.EFeature feature, float low, float high, eVision.EDoubleThresholdMode mode)
 Removes the selected coded elements that fullfil a condition on a floating-point feature.
uint GetUnsignedIntegerFeature (uint index, eVision.EFeature feature)
 Returns the value of an unsigned integer feature for a selected coded element.
int GetIntegerFeature (uint index, eVision.EFeature feature)
 Returns the value of an integer feature for a selected coded element.
float GetFloatFeature (uint index, eVision.EFeature feature)
 Returns the value of a floating-point feature for a selected coded element.
void Sort (eVision.EFeature feature)
 Sorts the selected coded elements according to the value of a feature.
void Sort (eVision.EFeature feature, eVision.ESortDirection direction)
 Sorts the selected coded elements according to the value of a feature.
float FeatureAverage (eVision.EFeature feature)
 Computes the average of the values of the given feature across the selection.
float FeatureDeviation (eVision.EFeature feature)
 Computes the standard deviation of the values of the given feature across the selection.
float FeatureVariance (eVision.EFeature feature)
 Computes the variance of the values of the given feature across the selection.
uint UnsignedIntegerFeatureMinimum (eVision.EFeature feature)
 Computes the minimum value of the given feature across the selection.
int IntegerFeatureMinimum (eVision.EFeature feature)
 Computes the minimum value of the given feature across the selection.
float FloatFeatureMinimum (eVision.EFeature feature)
 Computes the minimum value of the given feature across the selection.
uint UnsignedIntegerFeatureMaximum (eVision.EFeature feature)
 Computes the maximum value of the given feature across the selection.
int IntegerFeatureMaximum (eVision.EFeature feature)
 Computes the maximum value of the given feature across the selection.
float FloatFeatureMaximum (eVision.EFeature feature)
 Computes the maximum value of the given feature across the selection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, float zoomX, float zoomY, float panX)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, float zoomX, float zoomY)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, float zoomX)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, eVision.EFrame frame, float zoomX, float zoomY)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, eVision.EFrame frame, float zoomX)
 Draw a given feature of all the coded elements from EObjectSelection.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, uint elementIndex, eVision.EFrame frame)
 Draw a given feature of all the coded elements from EObjectSelection.

Properties

eVision.ECodedElement[] AllElements [get]
 All elements in the object selection.
uint ElementCount [get]
 Returns the number of coded elements selection.
eVision.EROIBW8 AttachedImage [get, set]
 Returns the currently attached image.
float FeretAngle [get, set]
 Angle of the Feret box (in the current angle units).

Detailed Description

This container class handles the selection of a subset of coded elements taken from a coded image.

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

Constructor & Destructor Documentation

◆ EObjectSelection() [1/5]

eVision.EObjectSelection.EObjectSelection ( )

Constructs an EObjectSelection.

◆ EObjectSelection() [2/5]

eVision.EObjectSelection.EObjectSelection ( eVision.ERegion region,
eVision.EFrame frame,
eVision.EEncodingConnexity connexity )

Constructs an EObjectSelection.

Parameters
regionRegion to construct the EObjectSelection from. All contiguous elements on the region are grouped together to form objects.
frameFrame associated with the region. Defaults to identity frame.
connexityThe connexity mode that specifies the conditions that must hold for neighboring pixels to belong to the same object. Defaults to EEncodingConnexity.EEncodingConnexity_Eight.

◆ EObjectSelection() [3/5]

eVision.EObjectSelection.EObjectSelection ( eVision.ERegion region,
eVision.EFrame frame )

Constructs an EObjectSelection.

Parameters
regionRegion to construct the EObjectSelection from. All contiguous elements on the region are grouped together to form objects.
frameFrame associated with the region. Defaults to identity frame.

◆ EObjectSelection() [4/5]

eVision.EObjectSelection.EObjectSelection ( eVision.ERegion region)

Constructs an EObjectSelection.

Parameters
regionRegion to construct the EObjectSelection from. All contiguous elements on the region are grouped together to form objects.

◆ EObjectSelection() [5/5]

eVision.EObjectSelection.EObjectSelection ( eVision.EObjectSelection other)

Constructs an EObjectSelection.

Parameters
otherThe other EObjectSelection to copy into this one.

Member Function Documentation

◆ Add()

void eVision.EObjectSelection.Add ( eVision.ECodedElement element)

Add a coded element to the selection.

Parameters
elementThe coded element.

◆ AddHole() [1/2]

void eVision.EObjectSelection.AddHole ( eVision.ECodedImage2 codedImage,
uint layerIndex,
uint objectIndex,
uint holeIndex )

Adds a single hole of a coded image.

Parameters
codedImageThe coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
objectIndexThe index of the parent object in the layer.
holeIndexThe index of the hole in the parent object.

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.

◆ AddHole() [2/2]

void eVision.EObjectSelection.AddHole ( eVision.ECodedImage2 codedImage,
uint objectIndex,
uint holeIndex )

Adds a single hole of a coded image.

Parameters
codedImageThe coded image.
objectIndexThe index of the parent object in the layer.
holeIndexThe index of the hole in the parent object.

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.

◆ AddHoles() [1/3]

void eVision.EObjectSelection.AddHoles ( eVision.ECodedImage2 codedImage)

Adds all the holes contained in an object, in a layer or in a coded image.

Parameters
codedImageThe source coded image.

◆ AddHoles() [2/3]

void eVision.EObjectSelection.AddHoles ( eVision.ECodedImage2 codedImage,
uint layerIndex )

Adds all the holes contained in an object, in a layer or in a coded image.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, all the layers are taken into consideration.

◆ AddHoles() [3/3]

void eVision.EObjectSelection.AddHoles ( eVision.ECodedImage2 codedImage,
uint layerIndex,
uint objectIndex )

Adds all the holes contained in an object, in a layer or in a coded image.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, all the layers are taken into consideration.
objectIndexThe index of the parent object. If this parameter is left unspecified, all the objects are taken into consideration.

◆ AddHolesOfSelectedObjects()

void eVision.EObjectSelection.AddHolesOfSelectedObjects ( )

Adds the holes of all the objects that are currently selected.

◆ AddLayer() [1/2]

void eVision.EObjectSelection.AddLayer ( eVision.ECodedImage2 codedImage)

Adds all the objects of a single layer in a coded image.

Parameters
codedImageThe coded image.

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.

◆ AddLayer() [2/2]

void eVision.EObjectSelection.AddLayer ( eVision.ECodedImage2 codedImage,
uint layerIndex )

Adds all the objects of a single layer in a coded image.

Parameters
codedImageThe coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.

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.

◆ AddObject() [1/2]

void eVision.EObjectSelection.AddObject ( eVision.ECodedImage2 codedImage,
uint layerIndex,
uint objectIndex )

Adds a single object of a layer in a coded image.

Parameters
codedImageThe coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
objectIndexThe index of the object in the layer.

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.

◆ AddObject() [2/2]

void eVision.EObjectSelection.AddObject ( eVision.ECodedImage2 codedImage,
uint objectIndex )

Adds a single object of a layer in a coded image.

Parameters
codedImageThe coded image.
objectIndexThe index of the object in the layer.

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.

◆ AddObjects()

void eVision.EObjectSelection.AddObjects ( eVision.ECodedImage2 image)

Adds all the objects of all the layers of a given coded image.

Parameters
imageThe coded image.

◆ AddObjectsUsingFloatFeature() [1/4]

void eVision.EObjectSelection.AddObjectsUsingFloatFeature ( 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.

Parameters
codedImageThe source coded image.
featureThe feature that serves as a filter.
lowBoundThe low bound of the range on the feature.
highBoundThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

Most features are floating-point. These methods thus tend to be the most widely used.

◆ AddObjectsUsingFloatFeature() [2/4]

void eVision.EObjectSelection.AddObjectsUsingFloatFeature ( eVision.ECodedImage2 codedImage,
eVision.EFeature feature,
float threshold,
eVision.ESingleThresholdMode mode )

Selects the objects that fullfil a condition on a floating-point feature.

Parameters
codedImageThe source coded image.
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

Most features are floating-point. These methods thus tend to be the most widely used.

◆ AddObjectsUsingFloatFeature() [3/4]

void eVision.EObjectSelection.AddObjectsUsingFloatFeature ( eVision.ECodedImage2 codedImage,
uint layerIndex,
eVision.EFeature feature,
float lowBound,
float highBound,
eVision.EDoubleThresholdMode mode )

Selects the objects that fullfil a condition on a floating-point feature.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If left unspecified, all the layers are taken into consideration.
featureThe feature that serves as a filter.
lowBoundThe low bound of the range on the feature.
highBoundThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

Most features are floating-point. These methods thus tend to be the most widely used.

◆ AddObjectsUsingFloatFeature() [4/4]

void eVision.EObjectSelection.AddObjectsUsingFloatFeature ( eVision.ECodedImage2 codedImage,
uint layerIndex,
eVision.EFeature feature,
float threshold,
eVision.ESingleThresholdMode mode )

Selects the objects that fullfil a condition on a floating-point feature.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If left unspecified, all the layers are taken into consideration.
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

Most features are floating-point. These methods thus tend to be the most widely used.

◆ AddObjectsUsingIntegerFeature() [1/4]

void eVision.EObjectSelection.AddObjectsUsingIntegerFeature ( eVision.ECodedImage2 codedImage,
eVision.EFeature feature,
int lowBound,
int highBound,
eVision.EDoubleThresholdMode mode )

Selects the objects that fullfil a condition on an integer feature.

Parameters
codedImageThe source coded image.
featureThe feature that serves as a filter.
lowBoundThe low bound of the range on the feature.
highBoundThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

◆ AddObjectsUsingIntegerFeature() [2/4]

void eVision.EObjectSelection.AddObjectsUsingIntegerFeature ( eVision.ECodedImage2 codedImage,
eVision.EFeature feature,
int threshold,
eVision.ESingleThresholdMode mode )

Selects the objects that fullfil a condition on an integer feature.

Parameters
codedImageThe source coded image.
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

◆ AddObjectsUsingIntegerFeature() [3/4]

void eVision.EObjectSelection.AddObjectsUsingIntegerFeature ( eVision.ECodedImage2 codedImage,
uint layerIndex,
eVision.EFeature feature,
int lowBound,
int highBound,
eVision.EDoubleThresholdMode mode )

Selects the objects that fullfil a condition on an integer feature.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If left unspecified, all the layers are taken into consideration.
featureThe feature that serves as a filter.
lowBoundThe low bound of the range on the feature.
highBoundThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

◆ AddObjectsUsingIntegerFeature() [4/4]

void eVision.EObjectSelection.AddObjectsUsingIntegerFeature ( eVision.ECodedImage2 codedImage,
uint layerIndex,
eVision.EFeature feature,
int threshold,
eVision.ESingleThresholdMode mode )

Selects the objects that fullfil a condition on an integer feature.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If left unspecified, all the layers are taken into consideration.
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

◆ AddObjectsUsingRectangle() [1/6]

void eVision.EObjectSelection.AddObjectsUsingRectangle ( 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.

Parameters
codedImageThe source coded image.
rectangleThe selection rectangle.
frameThe frame of reference in which the selection rectangle was defined.
modeThe comparison mode with respect to the selection rectangle.

◆ AddObjectsUsingRectangle() [2/6]

void eVision.EObjectSelection.AddObjectsUsingRectangle ( 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.

Parameters
codedImageThe source coded image.
rectangleThe selection rectangle.
modeThe comparison mode with respect to the selection rectangle.

◆ AddObjectsUsingRectangle() [3/6]

void eVision.EObjectSelection.AddObjectsUsingRectangle ( eVision.ECodedImage2 codedImage,
int x,
int y,
uint width,
uint height,
eVision.ERectangleMode mode )

Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.

Parameters
codedImageThe source coded image.
xThe X-coordinate of the top-left corner of the selection rectangle.
yThe Y-coordinate of the top-left corner of the selection rectangle.
widthThe width of the selection rectangle.
heightThe height of the selection rectangle.
modeThe comparison mode with respect to the selection rectangle.

◆ AddObjectsUsingRectangle() [4/6]

void eVision.EObjectSelection.AddObjectsUsingRectangle ( eVision.ECodedImage2 codedImage,
uint 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.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
rectangleThe selection rectangle.
frameThe frame of reference in which the selection rectangle was defined.
modeThe comparison mode with respect to the selection rectangle.

◆ AddObjectsUsingRectangle() [5/6]

void eVision.EObjectSelection.AddObjectsUsingRectangle ( eVision.ECodedImage2 codedImage,
uint layerIndex,
eVision.ERectangle rectangle,
eVision.ERectangleMode mode )

Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
rectangleThe selection rectangle.
modeThe comparison mode with respect to the selection rectangle.

◆ AddObjectsUsingRectangle() [6/6]

void eVision.EObjectSelection.AddObjectsUsingRectangle ( eVision.ECodedImage2 codedImage,
uint layerIndex,
int x,
int y,
uint width,
uint height,
eVision.ERectangleMode mode )

Adds all the objects of a coded image whose location fullfil a criterion based on a rectangle.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
xThe X-coordinate of the top-left corner of the selection rectangle.
yThe Y-coordinate of the top-left corner of the selection rectangle.
widthThe width of the selection rectangle.
heightThe height of the selection rectangle.
modeThe comparison mode with respect to the selection rectangle.

◆ AddObjectsUsingRegion() [1/4]

void eVision.EObjectSelection.AddObjectsUsingRegion ( 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.

Parameters
codedImageThe source coded image.
regionThe region defining the geometric domain.
frameThe frame of reference in which the region was defined.
modeThe comparison mode with respect to the region.

◆ AddObjectsUsingRegion() [2/4]

void eVision.EObjectSelection.AddObjectsUsingRegion ( 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.

Parameters
codedImageThe source coded image.
regionThe region defining the geometric domain.
modeThe comparison mode with respect to the region.

◆ AddObjectsUsingRegion() [3/4]

void eVision.EObjectSelection.AddObjectsUsingRegion ( eVision.ECodedImage2 codedImage,
uint 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.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
regionThe region defining the geometric domain.
frameThe frame of reference in which the region was defined.
modeThe comparison mode with respect to the region.

◆ AddObjectsUsingRegion() [4/4]

void eVision.EObjectSelection.AddObjectsUsingRegion ( eVision.ECodedImage2 codedImage,
uint 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.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
regionThe region defining the geometric domain.
modeThe comparison mode with respect to the region.

◆ AddObjectsUsingUnsignedIntegerFeature() [1/4]

void eVision.EObjectSelection.AddObjectsUsingUnsignedIntegerFeature ( eVision.ECodedImage2 codedImage,
eVision.EFeature feature,
uint lowBound,
uint highBound,
eVision.EDoubleThresholdMode mode )

Selects the objects that fullfil a condition on an unsigned integer feature.

Parameters
codedImageThe source coded image.
featureThe feature that serves as a filter.
lowBoundThe low bound of the range on the feature.
highBoundThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

◆ AddObjectsUsingUnsignedIntegerFeature() [2/4]

void eVision.EObjectSelection.AddObjectsUsingUnsignedIntegerFeature ( eVision.ECodedImage2 codedImage,
eVision.EFeature feature,
uint threshold,
eVision.ESingleThresholdMode mode )

Selects the objects that fullfil a condition on an unsigned integer feature.

Parameters
codedImageThe source coded image.
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

◆ AddObjectsUsingUnsignedIntegerFeature() [3/4]

void eVision.EObjectSelection.AddObjectsUsingUnsignedIntegerFeature ( eVision.ECodedImage2 codedImage,
uint layerIndex,
eVision.EFeature feature,
uint lowBound,
uint highBound,
eVision.EDoubleThresholdMode mode )

Selects the objects that fullfil a condition on an unsigned integer feature.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If left unspecified, all the layers are taken into consideration.
featureThe feature that serves as a filter.
lowBoundThe low bound of the range on the feature.
highBoundThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

◆ AddObjectsUsingUnsignedIntegerFeature() [4/4]

void eVision.EObjectSelection.AddObjectsUsingUnsignedIntegerFeature ( eVision.ECodedImage2 codedImage,
uint layerIndex,
eVision.EFeature feature,
uint threshold,
eVision.ESingleThresholdMode mode )

Selects the objects that fullfil a condition on an unsigned integer feature.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If left unspecified, all the layers are taken into consideration.
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

◆ AddObjectUsingPosition() [1/3]

void eVision.EObjectSelection.AddObjectUsingPosition ( eVision.ECodedImage2 codedImage,
eVision.EPoint position )

Adds the object of a coded image that lies at a particular location.

Parameters
codedImageThe source coded image.
positionThe position of the object.

If no object lies at the specified coordinate, the selection is not changed.

◆ AddObjectUsingPosition() [2/3]

void eVision.EObjectSelection.AddObjectUsingPosition ( eVision.ECodedImage2 codedImage,
eVision.EPoint position,
eVision.EFrame frame )

Adds the object of a coded image that lies at a particular location.

Parameters
codedImageThe source coded image.
positionThe position of the object.
frameThe frame of reference in which the position was defined.

If no object lies at the specified coordinate, the selection is not changed.

◆ AddObjectUsingPosition() [3/3]

void eVision.EObjectSelection.AddObjectUsingPosition ( eVision.ECodedImage2 codedImage,
int x,
int y )

Adds the object of a coded image that lies at a particular location.

Parameters
codedImageThe source coded image.
xThe X-coordinate of the object.
yThe Y-coordinate of the object.

If no object lies at the specified coordinate, the selection is not changed.

◆ AddRegionAsObjects() [1/3]

void eVision.EObjectSelection.AddRegionAsObjects ( eVision.ERegion region)

Add the objects corresponding to the given region to the EObjectSelection.

Parameters
regionRegion to add the objects from. All contiguous elements on the region are grouped together to form objects.

◆ AddRegionAsObjects() [2/3]

void eVision.EObjectSelection.AddRegionAsObjects ( eVision.ERegion region,
eVision.EFrame frame )

Add the objects corresponding to the given region to the EObjectSelection.

Parameters
regionRegion to add the objects from. All contiguous elements on the region are grouped together to form objects.
frameFrame associated with the region. Defaults to identity frame.

◆ AddRegionAsObjects() [3/3]

void eVision.EObjectSelection.AddRegionAsObjects ( eVision.ERegion region,
eVision.EFrame frame,
eVision.EEncodingConnexity connexity )

Add the objects corresponding to the given region to the EObjectSelection.

Parameters
regionRegion to add the objects from. All contiguous elements on the region are grouped together to form objects.
frameFrame associated with the region. Defaults to identity frame.
connexityThe connexity mode that specifies the conditions that must hold for neighboring pixels to belong to the same object. Defaults to EEncodingConnexity.EEncodingConnexity_Eight.

◆ Clear()

void eVision.EObjectSelection.Clear ( )

Remove all the coded elements that are contained in the selection.

◆ ClearFeatureCache()

void eVision.EObjectSelection.ClearFeatureCache ( )

Clears the internal cache for the computed features.

This is useful to reduce memory consumption.

◆ DrawFeature() [1/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.

◆ DrawFeature() [2/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
eVision.EFrame frame )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
frameFrame of reference used to compute the coded image.

◆ DrawFeature() [3/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
eVision.EFrame frame,
float zoomX )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawFeature() [4/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
frameFrame of reference used to compute the coded image.
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.

◆ DrawFeature() [5/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
frameFrame of reference used to compute the coded image.
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.

◆ DrawFeature() [6/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
frameFrame of reference used to compute the coded image.
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 value expressed in pixels. By default, no panning occurs.

◆ DrawFeature() [7/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
frameFrame of reference used to compute the coded image.
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 value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false.

◆ DrawFeature() [8/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
float zoomX )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawFeature() [9/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
float zoomX,
float zoomY )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
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.

◆ DrawFeature() [10/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
float zoomX,
float zoomY,
float panX )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
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.

◆ DrawFeature() [11/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
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 value expressed in pixels. By default, no panning occurs.

◆ DrawFeature() [12/12]

void eVision.EObjectSelection.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draw a given feature of all the coded elements from EObjectSelection.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
elementIndexThe 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.
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 value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false.

◆ FeatureAverage()

float eVision.EObjectSelection.FeatureAverage ( eVision.EFeature feature)

Computes the average of the values of the given feature across the selection.

Parameters
featureThe feature of interest.

◆ FeatureDeviation()

float eVision.EObjectSelection.FeatureDeviation ( eVision.EFeature feature)

Computes the standard deviation of the values of the given feature across the selection.

Parameters
featureThe feature of interest.

◆ FeatureVariance()

float eVision.EObjectSelection.FeatureVariance ( eVision.EFeature feature)

Computes the variance of the values of the given feature across the selection.

Parameters
featureThe feature of interest.

◆ FloatFeatureMaximum()

float eVision.EObjectSelection.FloatFeatureMaximum ( eVision.EFeature feature)

Computes the maximum value of the given feature across the selection.

Parameters
featureThe feature of interest.

Most features are floating-point. This method thus tends to be the most widely used.

◆ FloatFeatureMinimum()

float eVision.EObjectSelection.FloatFeatureMinimum ( eVision.EFeature feature)

Computes the minimum value of the given feature across the selection.

Parameters
featureThe feature of interest.

Most features are floating-point. This method thus tends to be the most widely used.

◆ GetElement()

eVision.ECodedElement eVision.EObjectSelection.GetElement ( uint index)

Index-based access to the coded elements of the selection.

Parameters
indexThe index of the coded element of interest.

◆ GetFloatFeature()

float eVision.EObjectSelection.GetFloatFeature ( uint index,
eVision.EFeature feature )

Returns the value of a floating-point feature for a selected coded element.

Parameters
indexThe index of the selected coded element.
featureThe feature of interest.

Most features are floating-point. This method thus tends to be the most widely used.

◆ GetIndexOfElement()

uint eVision.EObjectSelection.GetIndexOfElement ( eVision.ECodedElement element)

Retrieves the index of a given coded element in the selection.

Parameters
elementThe coded element of interest.

An exception is thrown if the coded element is not present in the selection.

◆ GetIntegerFeature()

int eVision.EObjectSelection.GetIntegerFeature ( uint index,
eVision.EFeature feature )

Returns the value of an integer feature for a selected coded element.

Parameters
indexThe index of the selected coded element.
featureThe feature of interest.

◆ GetUnsignedIntegerFeature()

uint eVision.EObjectSelection.GetUnsignedIntegerFeature ( uint index,
eVision.EFeature feature )

Returns the value of an unsigned integer feature for a selected coded element.

Parameters
indexThe index of the selected coded element.
featureThe feature of interest.

◆ IntegerFeatureMaximum()

int eVision.EObjectSelection.IntegerFeatureMaximum ( eVision.EFeature feature)

Computes the maximum value of the given feature across the selection.

Parameters
featureThe feature of interest.

◆ IntegerFeatureMinimum()

int eVision.EObjectSelection.IntegerFeatureMinimum ( eVision.EFeature feature)

Computes the minimum value of the given feature across the selection.

Parameters
featureThe feature of interest.

◆ IsSelected() [1/4]

bool eVision.EObjectSelection.IsSelected ( eVision.ECodedElement element)

Tests whether a given coded element is present in the selection.

Parameters
elementThe coded element.

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.

◆ IsSelected() [2/4]

bool eVision.EObjectSelection.IsSelected ( eVision.ECodedImage2 codedImage,
uint layerIndex,
uint objectIndex )

Tests whether a given coded element is present in the selection.

Parameters
codedImageThe coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
objectIndexThe index of the object in the layer of interest.

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.

◆ IsSelected() [3/4]

bool eVision.EObjectSelection.IsSelected ( eVision.ECodedImage2 codedImage,
uint layerIndex,
uint objectIndex,
uint holeIndex )

Tests whether a given coded element is present in the selection.

Parameters
codedImageThe coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
objectIndexThe index of the object in the layer of interest.
holeIndexIf specified, the index of the hole in the object. If unspecified, one tests the presence of the object.

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.

◆ IsSelected() [4/4]

bool eVision.EObjectSelection.IsSelected ( eVision.ECodedImage2 codedImage,
uint objectIndex )

Tests whether a given coded element is present in the selection.

Parameters
codedImageThe coded image.
objectIndexThe index of the object in the layer of interest.

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.

◆ Remove()

void eVision.EObjectSelection.Remove ( eVision.ECodedElement element)

Remove a coded element from the selection.

Parameters
elementThe coded element.

◆ RemoveHole() [1/2]

void eVision.EObjectSelection.RemoveHole ( eVision.ECodedImage2 codedImage,
uint layerIndex,
uint objectIndex,
uint holeIndex )

Removes a single hole of a coded image.

Parameters
codedImageThe coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
objectIndexThe index of the parent object in the layer.
holeIndexThe index of the hole in the parent object.

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.

◆ RemoveHole() [2/2]

void eVision.EObjectSelection.RemoveHole ( eVision.ECodedImage2 codedImage,
uint objectIndex,
uint holeIndex )

Removes a single hole of a coded image.

Parameters
codedImageThe coded image.
objectIndexThe index of the parent object in the layer.
holeIndexThe index of the hole in the parent object.

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.

◆ RemoveHoles() [1/3]

void eVision.EObjectSelection.RemoveHoles ( eVision.ECodedImage2 codedImage)

Removes all the holes contained in an object, in a layer or in a coded image.

Parameters
codedImageThe source coded image.

◆ RemoveHoles() [2/3]

void eVision.EObjectSelection.RemoveHoles ( eVision.ECodedImage2 codedImage,
uint layerIndex )

Removes all the holes contained in an object, in a layer or in a coded image.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, all the layers are taken into consideration.

◆ RemoveHoles() [3/3]

void eVision.EObjectSelection.RemoveHoles ( eVision.ECodedImage2 codedImage,
uint layerIndex,
uint objectIndex )

Removes all the holes contained in an object, in a layer or in a coded image.

Parameters
codedImageThe source coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, all the layers are taken into consideration.
objectIndexThe index of the parent object. If this parameter is left unspecified, all the objects are taken into consideration.

◆ RemoveLayer() [1/2]

void eVision.EObjectSelection.RemoveLayer ( eVision.ECodedImage2 codedImage)

Removes all the objects of a single layer in a coded image.

Parameters
codedImageThe coded image.

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.

◆ RemoveLayer() [2/2]

void eVision.EObjectSelection.RemoveLayer ( eVision.ECodedImage2 codedImage,
uint layerIndex )

Removes all the objects of a single layer in a coded image.

Parameters
codedImageThe coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.

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.

◆ RemoveObject() [1/2]

void eVision.EObjectSelection.RemoveObject ( eVision.ECodedImage2 codedImage,
uint layerIndex,
uint objectIndex )

Removes a single object of a layer in a coded image.

Parameters
codedImageThe coded image.
layerIndexThe index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
objectIndexThe index of the object in the layer.

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.

◆ RemoveObject() [2/2]

void eVision.EObjectSelection.RemoveObject ( eVision.ECodedImage2 codedImage,
uint objectIndex )

Removes a single object of a layer in a coded image.

Parameters
codedImageThe coded image.
objectIndexThe index of the object in the layer.

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.

◆ RemoveObjectsUsingRectangle() [1/6]

void eVision.EObjectSelection.RemoveObjectsUsingRectangle ( 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.

Parameters
codedImageThe source coded image.
rectangleThe selection rectangle.
frameThe frame of reference in which the selection rectangle was defined.
modeThe comparison mode with respect to the selection rectangle.

◆ RemoveObjectsUsingRectangle() [2/6]

void eVision.EObjectSelection.RemoveObjectsUsingRectangle ( 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.

Parameters
codedImageThe source coded image.
rectangleThe selection rectangle.
modeThe comparison mode with respect to the selection rectangle.

◆ RemoveObjectsUsingRectangle() [3/6]

void eVision.EObjectSelection.RemoveObjectsUsingRectangle ( eVision.ECodedImage2 codedImage,
int x,
int y,
uint width,
uint height,
eVision.ERectangleMode mode )

Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.

Parameters
codedImageThe source coded image.
xThe X-coordinate of the top-left corner of the selection rectangle.
yThe Y-coordinate of the top-left corner of the selection rectangle.
widthThe width of the selection rectangle.
heightThe height of the selection rectangle.
modeThe comparison mode with respect to the selection rectangle.

◆ RemoveObjectsUsingRectangle() [4/6]

void eVision.EObjectSelection.RemoveObjectsUsingRectangle ( eVision.ECodedImage2 codedImage,
uint 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.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
rectangleThe selection rectangle.
frameThe frame of reference in which the selection rectangle was defined.
modeThe comparison mode with respect to the selection rectangle.

◆ RemoveObjectsUsingRectangle() [5/6]

void eVision.EObjectSelection.RemoveObjectsUsingRectangle ( eVision.ECodedImage2 codedImage,
uint layerIndex,
eVision.ERectangle rectangle,
eVision.ERectangleMode mode )

Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
rectangleThe selection rectangle.
modeThe comparison mode with respect to the selection rectangle.

◆ RemoveObjectsUsingRectangle() [6/6]

void eVision.EObjectSelection.RemoveObjectsUsingRectangle ( eVision.ECodedImage2 codedImage,
uint layerIndex,
int x,
int y,
uint width,
uint height,
eVision.ERectangleMode mode )

Removes all the objects of a coded image whose location fullfil a criterion based on a rectangle.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
xThe X-coordinate of the top-left corner of the selection rectangle.
yThe Y-coordinate of the top-left corner of the selection rectangle.
widthThe width of the selection rectangle.
heightThe height of the selection rectangle.
modeThe comparison mode with respect to the selection rectangle.

◆ RemoveObjectsUsingRegion() [1/4]

void eVision.EObjectSelection.RemoveObjectsUsingRegion ( 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.

Parameters
codedImageThe source coded image.
regionThe region defining the geometric domain.
frameThe frame of reference in which the region was defined.
modeThe comparison mode with respect to the region.

◆ RemoveObjectsUsingRegion() [2/4]

void eVision.EObjectSelection.RemoveObjectsUsingRegion ( 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.

Parameters
codedImageThe source coded image.
regionThe region defining the geometric domain.
modeThe comparison mode with respect to the region.

◆ RemoveObjectsUsingRegion() [3/4]

void eVision.EObjectSelection.RemoveObjectsUsingRegion ( eVision.ECodedImage2 codedImage,
uint 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.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
regionThe region defining the geometric domain.
frameThe frame of reference in which the region was defined.
modeThe comparison mode with respect to the region.

◆ RemoveObjectsUsingRegion() [4/4]

void eVision.EObjectSelection.RemoveObjectsUsingRegion ( eVision.ECodedImage2 codedImage,
uint 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.

Parameters
codedImageThe source coded image.
layerIndexIf specified, only the specified layer is taken into consideration.
regionThe region defining the geometric domain.
modeThe comparison mode with respect to the region.

◆ RemoveObjectUsingPosition() [1/3]

void eVision.EObjectSelection.RemoveObjectUsingPosition ( eVision.ECodedImage2 codedImage,
eVision.EPoint position )

Removes the object of a coded image that lies at a particular location.

Parameters
codedImageThe source coded image.
positionThe position of the object.

If no object lies at the specified coordinate, the selection is not changed.

◆ RemoveObjectUsingPosition() [2/3]

void eVision.EObjectSelection.RemoveObjectUsingPosition ( eVision.ECodedImage2 codedImage,
eVision.EPoint position,
eVision.EFrame frame )

Removes the object of a coded image that lies at a particular location.

Parameters
codedImageThe source coded image.
positionThe position of the object.
frameThe frame of reference in which the point was defined.

If no object lies at the specified coordinate, the selection is not changed.

◆ RemoveObjectUsingPosition() [3/3]

void eVision.EObjectSelection.RemoveObjectUsingPosition ( eVision.ECodedImage2 codedImage,
int x,
int y )

Removes the object of a coded image that lies at a particular location.

Parameters
codedImageThe source coded image.
xThe X-coordinate of the object.
yThe Y-coordinate of the object.

If no object lies at the specified coordinate, the selection is not changed.

◆ RemoveSelectedHoles()

void eVision.EObjectSelection.RemoveSelectedHoles ( )

Remove all the holes that are currently present in the selection.

◆ RemoveUsingFloatFeature() [1/2]

void eVision.EObjectSelection.RemoveUsingFloatFeature ( eVision.EFeature feature,
float low,
float high,
eVision.EDoubleThresholdMode mode )

Removes the selected coded elements that fullfil a condition on a floating-point feature.

Parameters
featureThe feature that serves as a filter.
lowThe low bound of the range on the feature.
highThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

Most features are floating-point. These methods thus tend to be the most widely used.

◆ RemoveUsingFloatFeature() [2/2]

void eVision.EObjectSelection.RemoveUsingFloatFeature ( eVision.EFeature feature,
float threshold,
eVision.ESingleThresholdMode mode )

Removes the selected coded elements that fullfil a condition on a floating-point feature.

Parameters
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

Most features are floating-point. These methods thus tend to be the most widely used.

◆ RemoveUsingIntegerFeature() [1/2]

void eVision.EObjectSelection.RemoveUsingIntegerFeature ( eVision.EFeature feature,
int low,
int high,
eVision.EDoubleThresholdMode mode )

Removes the selected coded elements that fullfil a condition on an unsigned integer feature.

Parameters
featureThe feature that serves as a filter.
lowThe low bound of the range on the feature.
highThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

◆ RemoveUsingIntegerFeature() [2/2]

void eVision.EObjectSelection.RemoveUsingIntegerFeature ( eVision.EFeature feature,
int threshold,
eVision.ESingleThresholdMode mode )

Removes the selected coded elements that fullfil a condition on an unsigned integer feature.

Parameters
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

◆ RemoveUsingUnsignedIntegerFeature() [1/2]

void eVision.EObjectSelection.RemoveUsingUnsignedIntegerFeature ( eVision.EFeature feature,
uint low,
uint high,
eVision.EDoubleThresholdMode mode )

Removes the selected coded elements that fullfil a condition on an unsigned integer feature.

Parameters
featureThe feature that serves as a filter.
lowThe low bound of the range on the feature.
highThe high bound of the range on the feature.
modeSpecifies the way the threshold is interpreted.

◆ RemoveUsingUnsignedIntegerFeature() [2/2]

void eVision.EObjectSelection.RemoveUsingUnsignedIntegerFeature ( eVision.EFeature feature,
uint threshold,
eVision.ESingleThresholdMode mode )

Removes the selected coded elements that fullfil a condition on an unsigned integer feature.

Parameters
featureThe feature that serves as a filter.
thresholdThe single threshold on the feature.
modeSpecifies the way the threshold is interpreted.

◆ RenderMask() [1/2]

void eVision.EObjectSelection.RenderMask ( eVision.EROIBW8 result)

Creates a Flexible Mask from the selection.

Parameters
resultThe image in which the generated mask will be stored.

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.

◆ RenderMask() [2/2]

void eVision.EObjectSelection.RenderMask ( eVision.EROIBW8 result,
int offsetX,
int offsetY )

Creates a Flexible Mask from the selection.

Parameters
resultThe image in which the generated mask will be stored.
offsetXThe 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).
offsetYThe 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).

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.

◆ Sort() [1/2]

void eVision.EObjectSelection.Sort ( eVision.EFeature feature)

Sorts the selected coded elements according to the value of a feature.

Parameters
featureThe feature to sort with.

◆ Sort() [2/2]

void eVision.EObjectSelection.Sort ( eVision.EFeature feature,
eVision.ESortDirection direction )

Sorts the selected coded elements according to the value of a feature.

Parameters
featureThe feature to sort with.
directionThe sorting direction. By default, the features are sorted by increasing values.

◆ ToRegion()

eVision.ERegion eVision.EObjectSelection.ToRegion ( )

Converts the object selection to a region.

◆ UnsignedIntegerFeatureMaximum()

uint eVision.EObjectSelection.UnsignedIntegerFeatureMaximum ( eVision.EFeature feature)

Computes the maximum value of the given feature across the selection.

Parameters
featureThe feature of interest.

◆ UnsignedIntegerFeatureMinimum()

uint eVision.EObjectSelection.UnsignedIntegerFeatureMinimum ( eVision.EFeature feature)

Computes the minimum value of the given feature across the selection.

Parameters
featureThe feature of interest.

Property Documentation

◆ AllElements

eVision.ECodedElement [] eVision.EObjectSelection.AllElements
get

All elements in the object selection.

◆ AttachedImage

eVision.EROIBW8 eVision.EObjectSelection.AttachedImage
getset

Returns the currently attached image.

◆ ElementCount

uint eVision.EObjectSelection.ElementCount
get

Returns the number of coded elements selection.

◆ FeretAngle

float eVision.EObjectSelection.FeretAngle
getset

Angle of the Feret box (in the current angle units).

A Feret angle must be set for the following features: EFeature.EFeature_FeretBoxCenterX, EFeature.EFeature_FeretBoxCenterY, EFeature.EFeature_FeretBoxWidth, EFeature.EFeature_FeretBoxHeight.