Commit 967a8875 authored by Alexander Karsakov's avatar Alexander Karsakov

Don't process empty src image in GFTT

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment