mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
added support of homogeneous points to calcCorrespondEpilines (ticket #2055)
This commit is contained in:
parent
dec38e5949
commit
b5eb318ae3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user