MeTracker¶
- class MeTracker¶
Bases:
Tracker
Contains abstract elements for a Distance to Feature type feature.
2D state = list of points, 3D state = feature
Methods
Overloaded function.
Return the initial range.
Overloaded function.
Return the number of points that has not been suppressed.
Initialize the tracker.
Virtual function that is called by lower classes vpMeEllipse , vpMeLine and vpMeNurbs .
Return number of moving-edges that are tracked.
Overloaded function.
Reset the tracker by removing all the moving edges.
Set type of moving-edges display.
Set the initial range.
Set the mask.
Set the list of moving edges.
Return the total number of moving-edges.
Track moving-edges.
Inherited Methods
cP
Return object parameters expressed in the 3D camera frame.
cPAvailable
Return object parameters expressed in the 2D image plane computed by perspective projection.
p
Operators
__annotations__
__doc__
__module__
Attributes
__annotations__
cP
cPAvailable
p
- __init__(*args, **kwargs)¶
- display(*args, **kwargs)¶
Overloaded function.
display(self: visp._visp.me.MeTracker, I: visp._visp.core.ImageGray) -> None
Display the moving edge sites with a color corresponding to their state.
If green : The vpMeSite is a good point.
If blue : The point is removed because of the vpMeSite tracking phase (contrast problem).
If purple : The point is removed because of the vpMeSite tracking phase (threshold problem).
If red : The point is removed because of the robust method in the virtual visual servoing (M-Estimator problem).
If cyan : The point is removed because it’s too close to another.
Yellow otherwise.
- Parameters:
- I
The image.
display(self: visp._visp.me.MeTracker, I: visp._visp.core.ImageRGBa) -> None
Display the moving edge sites with a color corresponding to their state.
If green : The vpMeSite is a good point.
If blue : The point is removed because of the vpMeSite tracking phase (contrast problem).
If purple : The point is removed because of the vpMeSite tracking phase (threshold problem).
If red : The point is removed because of the robust method in the virtual visual servoing (M-Estimator problem).
If cyan : The point is removed because it’s too close to another.
Yellow otherwise.
- Parameters:
- I
The image.
display(self: visp._visp.me.MeTracker, I: visp._visp.core.ImageGray, w: visp._visp.core.ColVector, index_w: int) -> int
Displays the status of moving edge sites
- Parameters:
- I
The image.
- w
vector
- index_w
index
- Returns:
A tuple containing:
index_w: index
display(self: visp._visp.me.MeTracker, I: visp._visp.core.ImageGray, w: visp._visp.core.ColVector, index_w: int) -> int
Displays the status of moving edge sites
- Parameters:
- I
The image.
- w
vector
- index_w
index
- Returns:
A tuple containing:
index_w: index
display(self: visp._visp.me.MeTracker, I: visp._visp.core.ImageGray, w: visp._visp.core.ColVector, index_w: int) -> int
Displays the status of moving edge sites
- Parameters:
- I
The image.
- w
vector
- index_w
index
- Returns:
A tuple containing:
index_w: index
display(self: visp._visp.me.MeTracker, I: visp._visp.core.ImageGray, w: visp._visp.core.ColVector, index_w: int) -> int
Displays the status of moving edge sites
- Parameters:
- I
The image.
- w
vector
- index_w
index
- Returns:
A tuple containing:
index_w: index
- getMeList(*args, **kwargs)¶
Overloaded function.
getMeList(self: visp._visp.me.MeTracker) -> list[visp._visp.me.MeSite]
Return the list of moving edges
- Returns:
List of Moving Edges.
getMeList(self: visp._visp.me.MeTracker) -> list[visp._visp.me.MeSite]
Return the list of moving edges
- Returns:
List of Moving Edges.
- getNbPoints(self) int ¶
Return the number of points that has not been suppressed.
- Returns:
Number of good points.
- get_cP(self) visp._visp.core.ColVector ¶
Return object parameters expressed in the 3D camera frame.
- get_p(self) visp._visp.core.ColVector ¶
Return object parameters expressed in the 2D image plane computed by perspective projection.
- initTracking(self, I: visp._visp.core.ImageGray) None ¶
Virtual function that is called by lower classes vpMeEllipse , vpMeLine and vpMeNurbs .
- outOfImage(*args, **kwargs)¶
Overloaded function.
outOfImage(self: visp._visp.me.MeTracker, i: int, j: int, border: int, nrows: int, ncols: int) -> bool
- Parameters:
- i
Pixel coordinates.
- j
Pixel coordinates.
- border
Number of pixels along the image border to exclude. When border is set to 0, consider the complete image.
- nrows
Size of the image.
- ncols
Size of the image.
- Returns:
true when the pixel is inside the image minus the border size, false otherwise.
outOfImage(self: visp._visp.me.MeTracker, iP: visp._visp.core.ImagePoint, border: int, nrows: int, ncols: int) -> bool
- Parameters:
- iP
Pixel coordinates.
- border
Number of pixels along the image border to exclude. When border is set to 0, consider the complete image.
- nrows
Size of the image.
- ncols
Size of the image.
- Returns:
true when the pixel is inside the image minus the border size, false otherwise.
- setDisplay(self, select: visp._visp.me.MeSite.MeSiteDisplayType) None ¶
Set type of moving-edges display.
- Parameters:
- select: visp._visp.me.MeSite.MeSiteDisplayType¶
Display type selector.
- setMask(self: visp._visp.me.MeTracker, mask: vpImage<bool>) None ¶
Set the mask.
- Parameters:
- mask
Mask.
- setMeList(self, meList: list[visp._visp.me.MeSite]) None ¶
Set the list of moving edges.
- Parameters:
- meList: list[visp._visp.me.MeSite]¶
List of Moving Edges.
- track(self, I: visp._visp.core.ImageGray) None ¶
Track moving-edges.
- Parameters:
- I: visp._visp.core.ImageGray¶
Image.