Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

knnMatch gives different results between debug and release Mode

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.

knnMatch gives different results between debug and release Mode

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.

EDIT: I tried the same with V3.2.0 and there is no such error. Maybe it might be the version?

knnMatch gives different results between debug and release Mode

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.

EDIT: I tried the same with V3.2.0 and there is no such error. Maybe it might be the version?