MVE - Multi-View Environment mve-devel
|
The FeatureSet holds per-feature information for a single view, and allows to transparently compute and match multiple feature types. More...
#include <feature_set.h>
Classes | |
struct | Options |
Options for feature detection and matching. More... | |
Public Types | |
enum | FeatureTypes { FEATURE_SIFT = 1 << 0 , FEATURE_SURF = 1 << 1 , FEATURE_ALL = 0xFF } |
Bitmask with feature types. More... | |
Public Member Functions | |
FeatureSet (Options const &options) | |
FeatureSet (void) | |
void | clear_descriptors (void) |
Clear descriptor data. | |
void | compute_features (mve::ByteImage::Ptr image) |
Computes the features specified in the options. | |
void | normalize_feature_positions (float px, float py) |
Normalizes the features positions w.r.t. | |
void | set_options (Options const &options) |
Public Attributes | |
std::vector< math::Vec3uc > | colors |
Per-feature image color. | |
int | height |
std::vector< math::Vec2f > | positions |
Per-feature image position. | |
Sift::Descriptors | sift_descriptors |
The SIFT descriptors. | |
Surf::Descriptors | surf_descriptors |
The SURF descriptors. | |
int | width |
Image dimension used for feature computation. | |
The FeatureSet holds per-feature information for a single view, and allows to transparently compute and match multiple feature types.
Definition at line 27 of file feature_set.h.
Bitmask with feature types.
Enumerator | |
---|---|
FEATURE_SIFT | |
FEATURE_SURF | |
FEATURE_ALL |
Definition at line 31 of file feature_set.h.
|
inline |
Definition at line 91 of file feature_set.h.
|
inlineexplicit |
Definition at line 96 of file feature_set.h.
void sfm::FeatureSet::clear_descriptors | ( | void | ) |
Clear descriptor data.
Definition at line 120 of file feature_set.cc.
void sfm::FeatureSet::compute_features | ( | mve::ByteImage::Ptr | image | ) |
Computes the features specified in the options.
Definition at line 28 of file feature_set.cc.
void sfm::FeatureSet::normalize_feature_positions | ( | float | px, |
float | py | ||
) |
Normalizes the features positions w.r.t.
the image dimensions.
Definition at line 43 of file feature_set.cc.
|
inline |
Definition at line 102 of file feature_set.h.
std::vector<math::Vec3uc> sfm::FeatureSet::colors |
Per-feature image color.
Definition at line 68 of file feature_set.h.
int sfm::FeatureSet::height |
Definition at line 64 of file feature_set.h.
std::vector<math::Vec2f> sfm::FeatureSet::positions |
Per-feature image position.
Definition at line 66 of file feature_set.h.
Sift::Descriptors sfm::FeatureSet::sift_descriptors |
The SIFT descriptors.
Definition at line 70 of file feature_set.h.
Surf::Descriptors sfm::FeatureSet::surf_descriptors |
The SURF descriptors.
Definition at line 72 of file feature_set.h.
int sfm::FeatureSet::width |
Image dimension used for feature computation.
Definition at line 64 of file feature_set.h.