diff --git a/modules/features2d/src/akaze.cpp b/modules/features2d/src/akaze.cpp index 7b028cca8..c5e2134df 100644 --- a/modules/features2d/src/akaze.cpp +++ b/modules/features2d/src/akaze.cpp @@ -151,7 +151,7 @@ namespace cv impl.Compute_Descriptors(keypoints, desc); CV_Assert((!desc.rows || desc.cols == descriptorSize())); - CV_Assert((!desc.rows || (desc.type() & descriptorType()))); + CV_Assert((!desc.rows || (desc.type() == descriptorType()))); } void AKAZE::detectImpl(InputArray image, std::vector& keypoints, InputArray mask) const @@ -197,6 +197,6 @@ namespace cv impl.Compute_Descriptors(keypoints, desc); CV_Assert((!desc.rows || desc.cols == descriptorSize())); - CV_Assert((!desc.rows || (desc.type() & descriptorType()))); + CV_Assert((!desc.rows || (desc.type() == descriptorType()))); } } \ No newline at end of file diff --git a/modules/features2d/src/kaze.cpp b/modules/features2d/src/kaze.cpp index e5b935437..85835d8a1 100644 --- a/modules/features2d/src/kaze.cpp +++ b/modules/features2d/src/kaze.cpp @@ -120,7 +120,7 @@ namespace cv impl.Feature_Description(keypoints, desc); CV_Assert((!desc.rows || desc.cols == descriptorSize())); - CV_Assert((!desc.rows || (desc.type() & descriptorType()))); + CV_Assert((!desc.rows || (desc.type() == descriptorType()))); } void KAZE::detectImpl(InputArray image, std::vector& keypoints, InputArray mask) const @@ -168,6 +168,6 @@ namespace cv impl.Feature_Description(keypoints, desc); CV_Assert((!desc.rows || desc.cols == descriptorSize())); - CV_Assert((!desc.rows || (desc.type() & descriptorType()))); + CV_Assert((!desc.rows || (desc.type() == descriptorType()))); } } \ No newline at end of file