提交 4a9cfbf8 编写于 作者: A Alexander Alekhin

Merge pull request #3379 from akarsakov:gftt_empty_src

......@@ -275,6 +275,12 @@ void cv::goodFeaturesToTrack( InputArray _image, OutputArray _corners,
_mask, blockSize, useHarrisDetector, harrisK))
Mat image = _image.getMat(), eig, tmp;
if (image.empty())
{
_corners.release();
return;
}
if( useHarrisDetector )
cornerHarris( image, eig, blockSize, 3, harrisK );
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册