MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
sfm::FeatureSet Class Reference

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>

Collaboration diagram for sfm::FeatureSet:
Collaboration graph
[legend]

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::Vec3uccolors
 Per-feature image color.
 
int height
 
std::vector< math::Vec2fpositions
 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.
 

Detailed Description

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.

Member Enumeration Documentation

◆ FeatureTypes

Bitmask with feature types.

Enumerator
FEATURE_SIFT 
FEATURE_SURF 
FEATURE_ALL 

Definition at line 31 of file feature_set.h.

Constructor & Destructor Documentation

◆ FeatureSet() [1/2]

sfm::FeatureSet::FeatureSet ( void  )
inline

Definition at line 91 of file feature_set.h.

◆ FeatureSet() [2/2]

sfm::FeatureSet::FeatureSet ( Options const &  options)
inlineexplicit

Definition at line 96 of file feature_set.h.

Member Function Documentation

◆ clear_descriptors()

void sfm::FeatureSet::clear_descriptors ( void  )

Clear descriptor data.

Definition at line 120 of file feature_set.cc.

◆ compute_features()

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.

◆ normalize_feature_positions()

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.

◆ set_options()

void sfm::FeatureSet::set_options ( Options const &  options)
inline

Definition at line 102 of file feature_set.h.

Member Data Documentation

◆ colors

std::vector<math::Vec3uc> sfm::FeatureSet::colors

Per-feature image color.

Definition at line 68 of file feature_set.h.

◆ height

int sfm::FeatureSet::height

Definition at line 64 of file feature_set.h.

◆ positions

std::vector<math::Vec2f> sfm::FeatureSet::positions

Per-feature image position.

Definition at line 66 of file feature_set.h.

◆ sift_descriptors

Sift::Descriptors sfm::FeatureSet::sift_descriptors

The SIFT descriptors.

Definition at line 70 of file feature_set.h.

◆ surf_descriptors

Surf::Descriptors sfm::FeatureSet::surf_descriptors

The SURF descriptors.

Definition at line 72 of file feature_set.h.

◆ width

int sfm::FeatureSet::width

Image dimension used for feature computation.

Definition at line 64 of file feature_set.h.


The documentation for this class was generated from the following files: