Skip to content

Commit fb0abde

Browse files
committed
Merge pull request opencv#19383 from tomoaki0705:fixWrongIndex
2 parents 331f1b9 + 3cfe7b9 commit fb0abde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cudalegacy/src/calib3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ void cv::cuda::solvePnPRansac(const Mat& object, const Mat& image, const Mat& ca
283283
p_transf.z = rot[6] * p.x + rot[7] * p.y + rot[8] * p.z + transl[2];
284284
p_proj.x = p_transf.x / p_transf.z;
285285
p_proj.y = p_transf.y / p_transf.z;
286-
if (norm(p_proj - image_normalized.at<Point2f>(0, i)) < max_dist)
286+
if (norm(p_proj - image_normalized.at<Point2f>(i)) < max_dist)
287287
inliers->push_back(i);
288288
}
289289
}

0 commit comments

Comments
 (0)