Merge pull request #1497 from jet47:fix-bug-3277

pull/1485/merge
Alexander Smorkalov 12 years ago committed by OpenCV Buildbot
commit 241aa6e5a8
  1. 3
      modules/calib3d/src/circlesgrid.cpp

@ -836,6 +836,9 @@ Mat CirclesGridFinder::rectifyGrid(Size detectedGridSize, const std::vector<Poin
Mat H = findHomography(Mat(centers), Mat(dstPoints), RANSAC);
//Mat H = findHomography( Mat( corners ), Mat( dstPoints ) );
if (H.empty())
H = Mat::zeros(3, 3, CV_64FC1);
std::vector<Point2f> srcKeypoints;
for (size_t i = 0; i < keypoints.size(); i++)
{

Loading…
Cancel
Save