8 #ifndef META_OCEAN_CV_DETECTOR_HARRIS_CORNER_H
9 #define META_OCEAN_CV_DETECTOR_HARRIS_CORNER_H
113 result.reserve(corners.size());
115 for (HarrisCorners::const_iterator i = corners.begin(); i != corners.end(); ++i)
116 result.push_back(i->observation());
123 ocean_assert(number < corners.size());
124 const size_t realNumber = min(number, corners.size());
127 result.reserve(realNumber);
129 for (
size_t n = 0; n < realNumber; ++n)
130 result.push_back(corners[n].observation());
138 result.reserve(corners.size());
140 for (HarrisCorners::const_iterator i = corners.begin(); i != corners.end(); ++i)
141 result.push_back(*i);
148 ocean_assert(number < corners.size());
149 const size_t realNumber = min(number, corners.size());
152 result.reserve(realNumber);
154 for (
size_t n = 0; n < realNumber; ++n)
155 result.push_back(corners[n]);
This class implements a Harris corner.
Definition: HarrisCorner.h:37
static Geometry::ImagePoint corner2imagePoint(const HarrisCorner &corner)
Converts a Harris corner to a simple 2D image position.
Definition: HarrisCorner.h:105
static PointFeatures corners2pointFeatures(const HarrisCorners &corners)
Converts Harris corners to point features.
Definition: HarrisCorner.h:135
static Geometry::ImagePoints corners2imagePoints(const HarrisCorners &corners)
Converts Harris corners to simple 2D image positions.
Definition: HarrisCorner.h:110
HarrisCorner()
Creates a new empty Harris corner object.
Definition: HarrisCorner.h:93
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
const Vector2 & observation() const
Returns the 2D observation position of this feature e.g.
Definition: PointFeature.h:200
std::vector< PointFeature > PointFeatures
Definition of a vector holding point features.
Definition: PointFeature.h:29
std::vector< HarrisCorner > HarrisCorners
Definition of a vector holding Harris corners.
Definition: HarrisCorner.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