Commit 6991c24a authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #7632 from paroj:homgpt_int

parents 17ffb288 25061b42
...@@ -954,7 +954,7 @@ void cv::convertPointsToHomogeneous( InputArray _src, OutputArray _dst ) ...@@ -954,7 +954,7 @@ void cv::convertPointsToHomogeneous( InputArray _src, OutputArray _dst )
} }
CV_Assert( npoints >= 0 && (depth == CV_32S || depth == CV_32F || depth == CV_64F)); CV_Assert( npoints >= 0 && (depth == CV_32S || depth == CV_32F || depth == CV_64F));
int dtype = CV_MAKETYPE(depth <= CV_32F ? CV_32F : CV_64F, cn+1); int dtype = CV_MAKETYPE(depth, cn+1);
_dst.create(npoints, 1, dtype); _dst.create(npoints, 1, dtype);
Mat dst = _dst.getMat(); Mat dst = _dst.getMat();
if( !dst.isContinuous() ) if( !dst.isContinuous() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment