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

This commit is contained in:
Alexander Smorkalov 2013-09-26 09:31:06 +04:00 committed by OpenCV Buildbot
commit 241aa6e5a8

View File

@ -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++)
{