added support of homogeneous points to calcCorrespondEpilines (ticket #2055)
authorVadim Pisarevsky <no@email>
Sun, 1 Jul 2012 20:13:49 +0000 (20:13 +0000)
committerVadim Pisarevsky <no@email>
Sun, 1 Jul 2012 20:13:49 +0000 (20:13 +0000)
modules/calib3d/src/fundam.cpp

index 7b6ce7b..1515433 100644 (file)
@@ -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);