SaDVIO
|
Abstract class for 2D features. More...
#include <AFeature2D.h>
Public Member Functions | |
AFeature () | |
AFeature (std::vector< Eigen::Vector2d > poses2d, cv::Mat desc=cv::Mat(), int octave=0, double sigma=1.0) | |
const std::vector< Eigen::Vector2d > | getPoints () const |
void | setPoints (std::vector< Eigen::Vector2d > poses2d) |
const cv::Mat & | getDescriptor () const |
void | setDescriptor (cv::Mat descriptor) |
const int & | getOctave () const |
void | setOctave (int octave) |
const float | getResponse () |
const double | getSigma () |
const std::string | getFeatureLabel () const |
std::weak_ptr< ALandmark > | getLandmark () |
void | linkLandmark (std::shared_ptr< ALandmark > landmark) |
void | unlinkLandmark () |
void | setSensor (std::shared_ptr< ImageSensor > sensor) |
std::shared_ptr< ImageSensor > | getSensor () |
void | computeBearingVectors () |
Compute the bearing vectors from the 2D points, usually inverting the camera projection model. More... | |
std::vector< Eigen::Vector3d > | getBearingVectors () |
std::vector< Eigen::Vector3d > | getRays () |
void | setOutlier () |
Set the 2D feature as an outlier. More... | |
bool | isOutlier () |
True if the feature is an outlier. More... | |
Protected Attributes | |
std::string | _feature_label |
Feature label, e.g. point, line, bouding box, etc. More... | |
std::vector< Eigen::Vector2d > | _poses2d |
2D coordinates of the points of the feature in the image More... | |
std::vector< Eigen::Vector3d > | _bearing_vectors |
Bearing vectors corresponding to the 2D points. More... | |
cv::Mat | _descriptor |
Descriptor of the feature, e.g. SIFT, ORB, etc. More... | |
int | _octave |
Octave of the feature, used in multi-scale feature detection. More... | |
float | _response |
Response of the feature, i.e. strength of the feature. More... | |
double | _sigma |
Noise level of the feature. More... | |
std::weak_ptr< ImageSensor > | _sensor |
Link to the parent sensor. More... | |
std::weak_ptr< ALandmark > | _landmark |
Link to the landmark associated with the feature. More... | |
bool | _outlier = false |
Flag to indicate if the feature is an outlier. More... | |
std::mutex | _feat_mtx |
Abstract class for 2D features.
Its main member is a vector of 2D points representing the feature in the image. It can be used to represent points, lines, bounding boxes, etc.
|
inline |
|
inline |
void isae::AFeature::computeBearingVectors | ( | ) |
Compute the bearing vectors from the 2D points, usually inverting the camera projection model.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::vector< Eigen::Vector3d > isae::AFeature::getRays | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
True if the feature is an outlier.
|
inline |
|
inline |
|
inline |
|
inline |
Set the 2D feature as an outlier.
|
inline |
|
inline |
|
inline |
|
protected |
Bearing vectors corresponding to the 2D points.
|
protected |
Descriptor of the feature, e.g. SIFT, ORB, etc.
|
mutableprotected |
|
protected |
Feature label, e.g. point, line, bouding box, etc.
|
protected |
Link to the landmark associated with the feature.
|
protected |
Octave of the feature, used in multi-scale feature detection.
|
protected |
Flag to indicate if the feature is an outlier.
|
protected |
2D coordinates of the points of the feature in the image
|
protected |
Response of the feature, i.e. strength of the feature.
|
protected |
Link to the parent sensor.
|
protected |
Noise level of the feature.