added support of homogeneous points to calcCorrespondEpilines (ticket #2055)

This commit is contained in:
Vadim Pisarevsky 2012-07-01 20:13:49 +00:00
parent dec38e5949
commit b5eb318ae3

View 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);