Skip to content

Commit 964a8a9

Browse files
committed
ccalib: don't convert vector<Keypoint> into Mat-like structures
1 parent b556c2a commit 964a8a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/ccalib/include/opencv2/ccalib.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class CV_EXPORTS CustomPattern : public Algorithm
7171

7272
bool isInitialized();
7373

74-
void getPatternPoints(OutputArray original_points);
74+
void getPatternPoints(std::vector<KeyPoint>& original_points);
7575
/**<
7676
Returns a vector<Point> of the original points.
7777
*/

modules/ccalib/src/ccalib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ bool CustomPattern::findPattern(InputArray image, OutputArray matched_features,
405405
return (!m_ftrs.empty());
406406
}
407407

408-
void CustomPattern::getPatternPoints(OutputArray original_points)
408+
void CustomPattern::getPatternPoints(std::vector<KeyPoint>& original_points)
409409
{
410-
return Mat(keypoints).copyTo(original_points);
410+
original_points = keypoints;
411411
}
412412

413413
double CustomPattern::getPixelSize()

0 commit comments

Comments
 (0)