I am trying to use the BFMatcher
class for Akaze
auto bf = cv::BFMatcher(cv::NORM_HAMMING);
bf.knnMatch(featuresA, featuresB, rawMatches, 2);
In Release mode, it works okay; however in Debug, the assertion:
CV_Assert( masks.size() == imageCount );
in line 617 of matchers.cpp
under the DescriptorMatcher::checkMasks()
function fails.
If it helps, I noticed that in line 616:
size_t imageCount = std::max(trainDescCollection.size(), utrainDescCollection.size() );
both trainDescCollection
and utrainDescCollection
has a ridiciously large count.
The input parameters are unchanged, and I am using version 3.3.1.