Commit 964a8a9a authored by Alexander Alekhin's avatar Alexander Alekhin

ccalib: don't convert vector<Keypoint> into Mat-like structures

parent b556c2a7
...@@ -71,7 +71,7 @@ public: ...@@ -71,7 +71,7 @@ public:
bool isInitialized(); bool isInitialized();
void getPatternPoints(OutputArray original_points); void getPatternPoints(std::vector<KeyPoint>& original_points);
/**< /**<
Returns a vector<Point> of the original points. Returns a vector<Point> of the original points.
*/ */
......
...@@ -405,9 +405,9 @@ bool CustomPattern::findPattern(InputArray image, OutputArray matched_features, ...@@ -405,9 +405,9 @@ bool CustomPattern::findPattern(InputArray image, OutputArray matched_features,
return (!m_ftrs.empty()); return (!m_ftrs.empty());
} }
void CustomPattern::getPatternPoints(OutputArray original_points) void CustomPattern::getPatternPoints(std::vector<KeyPoint>& original_points)
{ {
return Mat(keypoints).copyTo(original_points); original_points = keypoints;
} }
double CustomPattern::getPixelSize() double CustomPattern::getPixelSize()
......
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