• Patrick Snape's avatar
    Fix parsing of training vecs for FlannBasedMatcher · 05cfe286
    Patrick Snape authored
    FlannBasedMatcher::add is overloaded, but the style of parsing the
    InputArrayOfArrays does not match the style from
    DescriptorMatcher::add. The issue is that InputArrayOfArrays
    must be properly marshalled so that the data can be read
    correctly. In this case, the method expects the training
    descriptors to be either a vector of matrices or a single matrix
    (as is shown in DescriptorMatcher::add). These code
    replicates that for the case of the FlannBasedMatcher::add.
    
    In fact, a similar commit to this was added by 26d9a7cd but was
    ultimately not accepted in #4111. This is likely due to the
    fact that the input arrays were not parsed properly and the
    case of a single matrix was being improperly handled. I believe
    this commit to be correct given the logic from
    DescriptorMatcher::add.
    05cfe286
Name
Last commit
Last update
..
calib3d Loading commit data...
core Loading commit data...
cudaarithm Loading commit data...
cudabgsegm Loading commit data...
cudacodec Loading commit data...
cudafeatures2d Loading commit data...
cudafilters Loading commit data...
cudaimgproc Loading commit data...
cudalegacy Loading commit data...
cudaobjdetect Loading commit data...
cudaoptflow Loading commit data...
cudastereo Loading commit data...
cudawarping Loading commit data...
cudev Loading commit data...
features2d Loading commit data...
flann Loading commit data...
highgui Loading commit data...
imgcodecs Loading commit data...
imgproc Loading commit data...
java Loading commit data...
ml Loading commit data...
objdetect Loading commit data...
photo Loading commit data...
python Loading commit data...
shape Loading commit data...
stitching Loading commit data...
superres Loading commit data...
ts Loading commit data...
video Loading commit data...
videoio Loading commit data...
videostab Loading commit data...
viz Loading commit data...
world Loading commit data...
CMakeLists.txt Loading commit data...