diff --git a/modules/features2d/src/akaze/AKAZEFeatures.cpp b/modules/features2d/src/akaze/AKAZEFeatures.cpp index 527abadc30..ece1d7b301 100644 --- a/modules/features2d/src/akaze/AKAZEFeatures.cpp +++ b/modules/features2d/src/akaze/AKAZEFeatures.cpp @@ -2145,7 +2145,7 @@ void generateDescriptorSubsample(cv::Mat& sampleList, cv::Mat& comparisons, int } ssz *= nchannels; - CV_Assert((nbits <= ssz) && "descriptor size can't be bigger than full descriptor"); + CV_Assert(nbits <= ssz); // Descriptor size can't be bigger than full descriptor // Since the full descriptor is usually under 10k elements, we pick // the selection from the full matrix. We take as many samples per