Commit 3f40a1d8 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed KeyPoint::convert(keypoints,point2f) (ticket #1282; thanks to cooperz for the patch)

parent dd1315b2
......@@ -119,6 +119,7 @@ void KeyPoint::convert(const std::vector<KeyPoint>& keypoints, std::vector<Point
void KeyPoint::convert( const std::vector<Point2f>& points2f, std::vector<KeyPoint>& keypoints,
float size, float response, int octave, int class_id )
{
keypoints.resize(points2f.size());
for( size_t i = 0; i < points2f.size(); i++ )
keypoints[i] = KeyPoint(points2f[i], size, -1, response, octave, class_id);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment