![]() |
Visual Servoing Platform version 3.7.0
|
Classes | |
| class | ViewPointMatcher |
Public Member Functions | |
| __init__ (self, Path save_folder, bool use_3d, bool use_dense, int top_k, float min_similarity, float min_match_ratio, float geometric_threshold) | |
| record (self, RBFeatureTrackerInput frame, HomogeneousMatrix cTo) | |
| Tuple[bool, HomogeneousMatrix] | estimate_pose (self, ImageRGBa image, depth, CameraParameters cam) |
| save (self) | |
Public Attributes | |
| xfeat_backend = XFeatBackend(top_k, min_similarity) | |
| save_folder = save_folder | |
| use_3d = use_3d | |
| list | views = [] |
| min_match_ratio = min_match_ratio | |
| geometric_threshold = geometric_threshold | |
| optim_params = LevenbergMarquardtParameters() | |
Pose estimation based on XFeat keypoints and a PnP approach. This strategy first matches the current frame with viewpoints learned beforehand. Viewpoints that have a large enough number of matched keypoints are retained for the second step of the method. In the second step, The 3D points associated to a view have their reprojection error with the currently observed keypoints minimized. Minimization can be done in 2D or 3D space.
Definition at line 55 of file XFeatPoseEstimator.py.
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.__init__ | ( | self, | |
| Path | save_folder, | ||
| bool | use_3d, | ||
| bool | use_dense, | ||
| int | top_k, | ||
| float | min_similarity, | ||
| float | min_match_ratio, | ||
| float | geometric_threshold ) |
Initialize the Pose estimator.
Args:
backend (XFeatBackend): _description_
save_folder (Path): _description_
top_k (int): _description_
min_similarity (float): _description_
min_match_ratio (float): _description_
point_distance_threshold (float): _description_
Definition at line 259 of file XFeatPoseEstimator.py.
| Tuple[bool, HomogeneousMatrix] visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.estimate_pose | ( | self, | |
| ImageRGBa | image, | ||
| depth, | |||
| CameraParameters | cam ) |
Definition at line 354 of file XFeatPoseEstimator.py.
References geometric_threshold, min_match_ratio, visp.python.rbt.xfeat.RBXFeatFeatureTracker.RBXFeatFeatureTracker.use_3d, use_3d, views, visp.python.rbt.PythonRBExtensions.PythonRBExtensions.xfeat_backend, and xfeat_backend.
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.record | ( | self, | |
| RBFeatureTrackerInput | frame, | ||
| HomogeneousMatrix | cTo ) |
Record a new viewpoint
Args:
frame (RBFeatureTrackerInput): _description_
cTo (HomogeneousMatrix): _description_
Definition at line 301 of file XFeatPoseEstimator.py.
References optim_params, visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.ViewPointMatcher.optim_params, views, visp.python.rbt.PythonRBExtensions.PythonRBExtensions.xfeat_backend, and xfeat_backend.
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.save | ( | self | ) |
Definition at line 405 of file XFeatPoseEstimator.py.
References save_folder, and views.
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.geometric_threshold = geometric_threshold |
Definition at line 277 of file XFeatPoseEstimator.py.
Referenced by estimate_pose().
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.min_match_ratio = min_match_ratio |
Definition at line 276 of file XFeatPoseEstimator.py.
Referenced by estimate_pose().
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.optim_params = LevenbergMarquardtParameters() |
Definition at line 279 of file XFeatPoseEstimator.py.
Referenced by visp.python.rbt.xfeat.XFeatVisualOdometry.XFeatVisualOdometry.load_settings(), and record().
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.save_folder = save_folder |
Definition at line 273 of file XFeatPoseEstimator.py.
Referenced by save().
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.use_3d = use_3d |
Definition at line 274 of file XFeatPoseEstimator.py.
Referenced by estimate_pose(), and visp.python.rbt.xfeat.XFeatVisualOdometry.XFeatVisualOdometry.load_settings().
| list visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.views = [] |
Definition at line 275 of file XFeatPoseEstimator.py.
Referenced by estimate_pose(), record(), and save().
| visp.python.rbt.xfeat.XFeatPoseEstimator.XFeatViewPointPoseEstimator.xfeat_backend = XFeatBackend(top_k, min_similarity) |
Definition at line 271 of file XFeatPoseEstimator.py.
Referenced by estimate_pose(), and record().