8 #ifndef META_OCEAN_CV_DETECTOR_FAST_FEATURE_H
9 #define META_OCEAN_CV_DETECTOR_FAST_FEATURE_H
101 result.reserve(features.size());
103 for (FASTFeatures::const_iterator i = features.begin(); i != features.end(); ++i)
104 result.push_back(i->observation());
111 const unsigned int realNumber = min(number, (
unsigned int)features.size());
114 result.reserve(realNumber);
116 for (
unsigned int n = 0; n < realNumber; ++n)
117 result.push_back(features[n].observation());
125 result.reserve(features.size());
127 for (FASTFeatures::const_iterator i = features.begin(); i != features.end(); ++i)
128 result.push_back(*i);
135 const unsigned int realNumber = min(number, (
unsigned int)features.size());
138 result.reserve(realNumber);
140 for (
unsigned int n = 0; n < realNumber; ++n)
141 result.push_back(features[n]);
This class implements a FAST feature.
Definition: FASTFeature.h:37
static PointFeatures features2pointFeatures(const FASTFeatures &features)
Converts FAST features to point features.
Definition: FASTFeature.h:122
FASTFeature()
Creates a new empty FAST feature object.
Definition: FASTFeature.h:86
static Geometry::ImagePoints features2imagePoints(const FASTFeatures &features)
Converts FAST features to simple 2D image positions.
Definition: FASTFeature.h:98
This class implements the base class for all computer vision features mainly basing on points.
Definition: PointFeature.h:44
DistortionState
Definition of individual distortion states.
Definition: PointFeature.h:51
std::vector< PointFeature > PointFeatures
Definition of a vector holding point features.
Definition: PointFeature.h:29
std::vector< FASTFeature > FASTFeatures
Definition of a vector holding FAST features.
Definition: FASTFeature.h:24
std::vector< ImagePoint > ImagePoints
Definition of a vector holding 2D image points.
Definition: geometry/Geometry.h:123
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15