AKAZE: check channels instead of type in detectAndCompute

add same CV_32F and CV_16U support for KAZE
This commit is contained in:
berak
2015-11-12 06:26:42 +01:00
parent 979f88f6db
commit 0baf0bdc24
2 changed files with 10 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ namespace cv
bool useProvidedKeypoints)
{
Mat img = image.getMat();
if (img.type() != CV_8UC1)
if (img.channels() > 1)
cvtColor(image, img, COLOR_BGR2GRAY);
Mat img1_32;