提交 967a8875 编写于 作者: A Alexander Karsakov

Don't process empty src image in GFTT

上级 fae2eb8a
......@@ -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.
先完成此消息的编辑!
想要评论请 注册