Struct opencv::surface_matching::PPF3DDetector
source · pub struct PPF3DDetector { /* private fields */ }
Expand description
Class, allowing the load and matching 3D models. Typical Use:
// Train a model
ppf_match_3d::PPF3DDetector detector(0.05, 0.05);
detector.trainModel(pc);
// Search the model in a given scene
vector<Pose3DPtr> results;
detector.match(pcTest, results, 1.0/5.0,0.05);
Implementations§
source§impl PPF3DDetector
impl PPF3DDetector
sourcepub fn default() -> Result<PPF3DDetector>
pub fn default() -> Result<PPF3DDetector>
\brief Empty constructor. Sets default arguments
sourcepub fn new(
relative_sampling_step: f64,
relative_distance_step: f64,
num_angles: f64
) -> Result<PPF3DDetector>
pub fn new( relative_sampling_step: f64, relative_distance_step: f64, num_angles: f64 ) -> Result<PPF3DDetector>
Constructor with arguments
Parameters
- relativeSamplingStep: Sampling distance relative to the object’s diameter. Models are first sampled uniformly in order to improve efficiency. Decreasing this value leads to a denser model, and a more accurate pose estimation but the larger the model, the slower the training. Increasing the value leads to a less accurate pose computation but a smaller model and faster model generation and matching. Beware of the memory consumption when using small values.
- relativeDistanceStep: The discretization distance of the point pair distance relative to the model’s diameter. This value has a direct impact on the hashtable. Using small values would lead to too fine discretization, and thus ambiguity in the bins of hashtable. Too large values would lead to no discrimination over the feature vectors and different point pair features would be assigned to the same bin. This argument defaults to the value of RelativeSamplingStep. For noisy scenes, the value can be increased to improve the robustness of the matching against noisy points.
- numAngles: Set the discretization of the point pair orientation as the number of subdivisions of the angle. This value is the equivalent of RelativeDistanceStep for the orientations. Increasing the value increases the precision of the matching but decreases the robustness against incorrect normal directions. Decreasing the value decreases the precision of the matching but increases the robustness against incorrect normal directions. For very noisy scenes where the normal directions can not be computed accurately, the value can be set to 25 or 20.
C++ default parameters
- relative_distance_step: 0.05
- num_angles: 30
Trait Implementations§
source§impl Boxed for PPF3DDetector
impl Boxed for PPF3DDetector
source§impl Debug for PPF3DDetector
impl Debug for PPF3DDetector
source§impl Drop for PPF3DDetector
impl Drop for PPF3DDetector
source§impl PPF3DDetectorTrait for PPF3DDetector
impl PPF3DDetectorTrait for PPF3DDetector
source§impl PPF3DDetectorTraitConst for PPF3DDetector
impl PPF3DDetectorTraitConst for PPF3DDetector
fn as_raw_PPF3DDetector(&self) -> *const c_void
impl Send for PPF3DDetector
Auto Trait Implementations§
impl RefUnwindSafe for PPF3DDetector
impl !Sync for PPF3DDetector
impl Unpin for PPF3DDetector
impl UnwindSafe for PPF3DDetector
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more