AKAZE: check channels instead of type in detectAndCompute
add same CV_32F and CV_16U support for KAZE
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user