EBW8PathVector Class
Vector objects are used to store 1-dimensional data.
Remarks
Using vectors is very similar to using 1-dimensional arrays, except that the size can vary at runtime. Memory allocation is handled internally.
- To create a vector, use its constructor.
- To fill a vector with values, first empty it, using the
EVector::Empty
member, and then add elements one at time at the tail by calling theEBW8PathVector::AddElement
member. - To access a vector element, either for reading or writing, use the [] operator.
- To inquire for the current number of elements, use member
EVector::NumElements
.
Base Class:EVector
Namespace: Euresys::Open_eVision
License(s): Any
Constructors
Constructs a vector.
Properties
Pointer to the vector data.
Flag indicating whether the shape built with EasyImage::Contour
must be closed or not.
Methods
Appends (adds at the tail) an element to the vector.
Draws the path.
By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).
Draws the path vector as the closed contour of an object In a general content, the term object should be understood with the meaning of a class instance. In EasyObject, an object is a maximally-sized area of adjacent connected pixels belonging to the layer foreground. or a blob Synonym of object.. The contour mode used to compute the path must be passed
as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode.ClockwiseAlwaysClosed
and
EContourMode.AnticlockwiseAlwaysClosed
.
This method is deprecated.
Returns the vector element at the given index.
Gives access to the vector element at the given index.
Copies all the data from another EBW8PathVector
object into the current EBW8PathVector
object
Modifies the vector element at the given index by the given value.
EBW8PathVector Class
Vector objects are used to store 1-dimensional data.
Remarks
Using vectors is very similar to using 1-dimensional arrays, except that the size can vary at runtime. Memory allocation is handled internally.
- To create a vector, use its constructor.
- To fill a vector with values, first empty it, using the
EVector.Empty
member, and then add elements one at time at the tail by calling theEBW8PathVector.AddElement
member. - To access a vector element, either for reading or writing, use the [] operator.
- To inquire for the current number of elements, use member
EVector.NumElements
.
Base Class:EVector
Namespace: Euresys.Open_eVision
License(s): Any
Constructors
Constructs a vector.
Properties
Flag indicating whether the shape built with EasyImage.Contour
must be closed or not.
Pointer to the vector data.
Methods
Appends (adds at the tail) an element to the vector.
Draws the path.
By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).
Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed
as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode.ClockwiseAlwaysClosed
and
EContourMode.AnticlockwiseAlwaysClosed
.
This method is deprecated.
Returns the vector element at the given index.
Gives access to the vector element at the given index.
Modifies the vector element at the given index by the given value.
EBW8PathVector Class
Vector objects are used to store 1-dimensional data.
Remarks
Using vectors is very similar to using 1-dimensional arrays, except that the size can vary at runtime. Memory allocation is handled internally.
* To create a vector, use its constructor.
* To fill a vector with values, first empty it, using the EVector.Empty
member, and then add elements one at time at the tail by calling the EBW8PathVector.AddElement
member.
* To access a vector element, either for reading or writing, use the [] operator.
* To inquire for the current number of elements, use member EVector.NumElements
.
Base Class:EVector
Module: open_evision
License(s): Any
Constructors
Constructs a vector.
Properties
Flag indicating whether the shape built with EasyImage.Contour
must be closed or not.
Pointer to the vector data.
Methods
Constructs a vector.
Appends (adds at the tail) an element to the vector.
Draws the path.
By default, the path is drawn by connecting the centers of all the pixels in the path. Using the drawOption argument, you can also connect all the top left corners of the pixels (EPathVectorDrawOption_TopLeft) in the path or fill all the pixels in the path (EPathVectorDrawOption_Fill).
Draws the path vector as the closed contour of an object or a blob. The contour mode used to compute the path must be passed
as argument to draw the contour correctly. This method only supports the closed contour modes EContourMode.ClockwiseAlwaysClosed
and
EContourMode.AnticlockwiseAlwaysClosed
.
Returns the vector element at the given index.
Modifies the vector element at the given index by the given value.