Class WeightedAverage
Defined in File descriptor_model.hpp
Inheritance Relationships
Base Type
public slam_mer::utils::DescriptorModel(Class DescriptorModel)
Class Documentation
-
class WeightedAverage : public slam_mer::utils::DescriptorModel
The Weighted Average descriptor model computes the weighted average of the added descriptors and returns it as the current descriptor. The weight is based on the angle between the view direction of the observation and the view direction of the added descriptors.
Public Types
Typedef for shared pointer of type WeightedAverage.
Public Functions
-
inline virtual output_t<descriptor_t> predict(const pose_t &pose_ = pose_t(), const point3d_t &point_ = point3d_t()) override
Predicts the descriptor for a given pose and point.
- Parameters:
pose_ – The pose for which to predict the descriptor.
point_ – The point for which to predict the descriptor.
- Returns:
The weighted average descriptor of the added descriptors.
-
inline virtual void fit(const descriptor_t &descriptor_, const pose_t &pose_ = pose_t(), const point3d_t &point_ = point3d_t()) override
Adds a new descriptor to the model.
- Parameters:
descriptor_ – The new descriptor to add to the model.
pose_ – The pose of the keyframe that observed the descriptor.
point_ – The 3d point observation associated with the new descriptor.
Public Static Functions
Creates a shared
WeightedAverageinstance.- Returns:
Shared pointer to a new
WeightedAverageobject.
Private Functions