mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 20:09:23 +08:00
Merge pull request #8458 from grundman:patch-2
This commit is contained in:
commit
a2af1d4f71
@ -839,7 +839,11 @@ Mat CirclesGridFinder::rectifyGrid(Size detectedGridSize, const std::vector<Poin
|
|||||||
//Mat H = findHomography( Mat( corners ), Mat( dstPoints ) );
|
//Mat H = findHomography( Mat( corners ), Mat( dstPoints ) );
|
||||||
|
|
||||||
if (H.empty())
|
if (H.empty())
|
||||||
|
{
|
||||||
H = Mat::zeros(3, 3, CV_64FC1);
|
H = Mat::zeros(3, 3, CV_64FC1);
|
||||||
|
warpedKeypoints.clear();
|
||||||
|
return H;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<Point2f> srcKeypoints;
|
std::vector<Point2f> srcKeypoints;
|
||||||
for (size_t i = 0; i < keypoints.size(); i++)
|
for (size_t i = 0; i < keypoints.size(); i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user