Merge pull request #1497 from jet47:fix-bug-3277
This commit is contained in:
commit
241aa6e5a8
@ -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…
x
Reference in New Issue
Block a user