From b5eb318ae31ca4e4f22c0e8eabf7a145f717df73 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Sun, 1 Jul 2012 20:13:49 +0000 Subject: [PATCH] added support of homogeneous points to calcCorrespondEpilines (ticket #2055) --- modules/calib3d/src/fundam.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/calib3d/src/fundam.cpp b/modules/calib3d/src/fundam.cpp index 7b6ce7b..1515433 100644 --- a/modules/calib3d/src/fundam.cpp +++ b/modules/calib3d/src/fundam.cpp @@ -1128,6 +1128,8 @@ void cv::computeCorrespondEpilines( InputArray _points, int whichImage, { Mat points = _points.getMat(), F = _Fmat.getMat(); int npoints = points.checkVector(2); + if( npoints < 0 ) + npoints = points.checkVector(3); CV_Assert( npoints >= 0 && (points.depth() == CV_32F || points.depth() == CV_32S)); _lines.create(npoints, 1, CV_32FC3, -1, true); -- 2.7.4