Lines Matching refs:keypoints
570 keypoints = testKeypoints; in CirclesGridFinder()
628 Point2f vec1 = keypoints[i] - keypoints[*it1]; in rng2gridGraph()
629 Point2f vec2 = keypoints[*it1] - keypoints[*it2]; in rng2gridGraph()
634 vectors.push_back(keypoints[i] - keypoints[*it2]); in rng2gridGraph()
635 vectors.push_back(keypoints[*it2] - keypoints[i]); in rng2gridGraph()
817 … const std::vector<Point2f> &keypoints, std::vector<Point2f> &warpedKeypoints) in rectifyGrid() argument
845 for (size_t i = 0; i < keypoints.size(); i++) in rectifyGrid()
847 srcKeypoints.push_back(keypoints[i]); in rectifyGrid()
869 for (size_t i = 0; i < keypoints.size(); i++) in findNearestKeypoint()
871 double dist = norm(pt - keypoints[i]); in findNearestKeypoint()
884 if (norm(keypoints[ptIdx] - pt) > parameters.minDistanceToAddKeypoint) in addPoint()
887 keypoints.push_back(kpt); in addPoint()
888 points.push_back(keypoints.size() - 1); in addPoint()
906 Point2f pt = keypoints[holes[seedLineIdx][i]] + basisVec; in findCandidateLine()
915 Point2f pt = keypoints[holes[i][seedLineIdx]] + basisVec; in findCandidateLine()
1142 basisGraphs.resize(basis.size(), Graph(keypoints.size())); in findBasis()
1143 for (size_t i = 0; i < keypoints.size(); i++) in findBasis()
1145 for (size_t j = 0; j < keypoints.size(); j++) in findBasis()
1150 Point2f vec = keypoints[i] - keypoints[j]; in findBasis()
1167 rng = Graph(keypoints.size()); in computeRNG()
1171 for (size_t i = 0; i < keypoints.size(); i++) in computeRNG()
1173 for (size_t j = 0; j < keypoints.size(); j++) in computeRNG()
1178 Point2f vec = keypoints[i] - keypoints[j]; in computeRNG()
1182 for (size_t k = 0; k < keypoints.size(); k++) in computeRNG()
1187 double dist1 = norm(keypoints[i] - keypoints[k]); in computeRNG()
1188 double dist2 = norm(keypoints[j] - keypoints[k]); in computeRNG()
1199 vectors.push_back(keypoints[i] - keypoints[j]); in computeRNG()
1202 line(*drawImage, keypoints[i], keypoints[j], Scalar(255, 0, 0), 2); in computeRNG()
1203 circle(*drawImage, keypoints[i], 3, Scalar(0, 0, 255), -1); in computeRNG()
1204 circle(*drawImage, keypoints[j], 3, Scalar(0, 0, 255), -1); in computeRNG()
1304 …bool needReverse = (bestGraphIdx == 0 && keypoints[bestPath.lastVertex].x < keypoints[bestPath.fir… in findLongestPath()
1305 … || (bestGraphIdx == 1 && keypoints[bestPath.lastVertex].y < keypoints[bestPath.firstVertex].y); in findLongestPath()
1345 line(drawImage, keypoints[v1], keypoints[v2], edgeColor, edgeThickness); in drawBasisGraphs()
1355 circle(drawImage, keypoints[v], vertexRadius, vertexColor, vertexThickness); in drawBasisGraphs()
1381 line(drawImage, keypoints[holes[i][j]], keypoints[holes[i][j + 1]], Scalar(255, 0, 0), 2); in drawHoles()
1383 line(drawImage, keypoints[holes[i][j]], keypoints[holes[i + 1][j]], Scalar(255, 0, 0), 2); in drawHoles()
1386 circle(drawImage, keypoints[holes[i][j]], holeRadius, holeColor, holeThickness); in drawHoles()
1407 outHoles.push_back(keypoints[holes[i][j]]); in getHoles()
1437 outHoles.push_back(keypoints[largeHoles->at(largePos.y)[largePos.x]]); in getAsymmetricHoles()
1445 outHoles.push_back(keypoints[smallHoles->at(smallPos.y)[smallPos.x]]); in getAsymmetricHoles()
1496 corner.push_back(Segment(keypoints[points[1][0]], keypoints[points[0][0]])); in getCornerSegments()
1497 corner.push_back(Segment(keypoints[points[0][0]], keypoints[points[0][1]])); in getCornerSegments()
1504 corner.push_back(Segment(keypoints[points[0][w - 2]], keypoints[points[0][w - 1]])); in getCornerSegments()
1505 corner.push_back(Segment(keypoints[points[0][w - 1]], keypoints[points[1][w - 1]])); in getCornerSegments()
1512 corner.push_back(Segment(keypoints[points[h - 2][w - 1]], keypoints[points[h - 1][w - 1]])); in getCornerSegments()
1513 corner.push_back(Segment(keypoints[points[h - 1][w - 1]], keypoints[points[h - 1][w - 2]])); in getCornerSegments()
1520 corner.push_back(Segment(keypoints[points[h - 1][1]], keypoints[points[h - 1][0]])); in getCornerSegments()
1521 corner.push_back(Segment(keypoints[points[h - 1][0]], keypoints[points[h - 2][0]])); in getCornerSegments()
1530 …getDirection(keypoints[points[0][0]], keypoints[points[0][w - 1]], keypoints[points[h - 1][w - 1]]… in getCornerSegments()