FeatureEllipse¶
- class FeatureEllipse(*args, **kwargs)¶
Bases:
BasicFeature
Class that defines 2D ellipse visual feature.
Overloaded function.
__init__(self: visp._visp.visual_features.FeatureEllipse) -> None
Default constructor.
__init__(self: visp._visp.visual_features.FeatureEllipse, x: float, y: float, n20: float, n11: float, n02: float) -> None
basic constructor
Methods
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Returns the visual feature corresponding to the second order centered moments of the ellipse normalized by its area \(n_02 = mu_02/a\) .
Returns the visual feature corresponding to the second order centered moments of the ellipse normalized by its area \(n_11 = mu_11/a\) .
Returns the visual feature corresponding to the second order centered moments of the ellipse normalized by its area \(n_20 = mu_20/a\) .
Returns the visual feature corresponding to the ellipse centroid coordinate along camera x-axis.
Returns the visual feature corresponding to the ellipse centroid coordinate along camera y-axis.
Default initialization.
compute the interaction matrix from a subset a the possible features
Print the name of the feature.
vpBasicFeature method instantiation
Select as visual feature ellipse centroid coordinate along camera y-axis.
Select as visual feature second order centered moments of the ellipse normalized by its area that corresponds to \(n_02 = mu_02/a\) .
Select as visual feature second order centered moments of the ellipse normalized by its area that corresponds to \(n_11 = mu_11/a\) .
Select as visual feature second order centered moments of the ellipse normalized by its area that corresponds to \(n_20 = mu_20/a\) .
Update visual features corresponding to the second order centered moments of the ellipse normalized by its area (i.e., such that \(n_{ij} = \mu_{ij}/a\) where \(\mu_{ij}\) are the centered moments and a the area).
Inherited Methods
Return the dimension of the feature vector \(\bf s\) .
vpServo
Indicates who should deallocate the feature.
Get the feature vector dimension.
dim_s
deallocate
Indicates who should deallocate the feature.
s
user
nbParameters
FEATURE_ALL
Set feature flags to true to prevent warning when re-computing the interaction matrix without having updated the feature.
Get the feature vector \(\bf s\) .
Select all the features.
Operators
__doc__
Overloaded function.
__module__
Attributes
FEATURE_ALL
__annotations__
deallocate
dim_s
nbParameters
s
user
vpServo
- class BasicFeatureDeallocatorType(self, value: int)¶
Bases:
pybind11_object
Indicates who should deallocate the feature.
Values:
user
vpServo
- class BasicFeatureSelect(self, value: int)¶
Bases:
pybind11_object
Indicates who should deallocate the feature.
Values:
user
vpServo
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: visp._visp.visual_features.FeatureEllipse) -> None
Default constructor.
__init__(self: visp._visp.visual_features.FeatureEllipse, x: float, y: float, n20: float, n11: float, n02: float) -> None
basic constructor
- buildFrom(*args, **kwargs)¶
Overloaded function.
buildFrom(self: visp._visp.visual_features.FeatureEllipse, x: float, y: float, n20: float, n11: float, n02: float) -> visp._visp.visual_features.FeatureEllipse
buildFrom(self: visp._visp.visual_features.FeatureEllipse, x: float, y: float, n20: float, n11: float, n02: float, A: float, B: float, C: float) -> visp._visp.visual_features.FeatureEllipse
- display(*args, **kwargs)¶
Overloaded function.
display(self: visp._visp.visual_features.FeatureEllipse, cam: visp._visp.core.CameraParameters, I: visp._visp.core.ImageGray, color: visp._visp.core.Color = vpColor::green, thickness: int = 1) -> None
Display ellipse feature.
- Parameters:
- cam
Camera parameters.
- I
Image on which features have to be displayed.
- color
Color used to display the feature.
- thickness
Thickness of the feature representation.
display(self: visp._visp.visual_features.FeatureEllipse, cam: visp._visp.core.CameraParameters, I: visp._visp.core.ImageRGBa, color: visp._visp.core.Color = vpColor::green, thickness: int = 1) -> None
Display ellipse feature.
- Parameters:
- cam
Camera parameters.
- I
Color image on which features have to be displayed.
- color
Color used to display the feature.
- thickness
Thickness of the feature representation.
- error(*args, **kwargs)¶
Overloaded function.
error(self: visp._visp.visual_features.FeatureEllipse, s_star: visp._visp.visual_features.BasicFeature, select: int = FEATURE_ALL) -> visp._visp.core.ColVector
compute the error between two visual features from a subset a the possible features
error(self: visp._visp.visual_features.BasicFeature, s_star: visp._visp.visual_features.BasicFeature, select: int = FEATURE_ALL) -> visp._visp.core.ColVector
Compute the error between two visual features from a subset of the possible features.
- getDeallocate(self) visp._visp.visual_features.BasicFeature.BasicFeatureDeallocatorType ¶
- get_n02(self) float ¶
Returns the visual feature corresponding to the second order centered moments of the ellipse normalized by its area \(n_02 = mu_02/a\) .
- get_n11(self) float ¶
Returns the visual feature corresponding to the second order centered moments of the ellipse normalized by its area \(n_11 = mu_11/a\) .
- get_n20(self) float ¶
Returns the visual feature corresponding to the second order centered moments of the ellipse normalized by its area \(n_20 = mu_20/a\) .
- get_s(self, select: int = FEATURE_ALL) visp._visp.core.ColVector ¶
Get the feature vector \(\bf s\) .
- get_x(self) float ¶
Returns the visual feature corresponding to the ellipse centroid coordinate along camera x-axis.
- get_y(self) float ¶
Returns the visual feature corresponding to the ellipse centroid coordinate along camera y-axis.
- interaction(self, select: int = FEATURE_ALL) visp._visp.core.Matrix ¶
compute the interaction matrix from a subset a the possible features
- static selectX() int ¶
vpBasicFeature method instantiation
Select as visual feature ellipse centroid coordinate along camera x-axis.
- static select_n02() int ¶
Select as visual feature second order centered moments of the ellipse normalized by its area that corresponds to \(n_02 = mu_02/a\) .
- static select_n11() int ¶
Select as visual feature second order centered moments of the ellipse normalized by its area that corresponds to \(n_11 = mu_11/a\) .
- static select_n20() int ¶
Select as visual feature second order centered moments of the ellipse normalized by its area that corresponds to \(n_20 = mu_20/a\) .
- setDeallocate(self, d: visp._visp.visual_features.BasicFeature.BasicFeatureDeallocatorType) None ¶
- setFlags(self) None ¶
Set feature flags to true to prevent warning when re-computing the interaction matrix without having updated the feature.