• 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
..
kaze Loading commit data...
opencl Loading commit data...
agast.cpp Loading commit data...
agast_score.cpp Loading commit data...
agast_score.hpp Loading commit data...
akaze.cpp Loading commit data...
bagofwords.cpp Loading commit data...
blobdetector.cpp Loading commit data...
brisk.cpp Loading commit data...
draw.cpp Loading commit data...
dynamic.cpp Loading commit data...
evaluation.cpp Loading commit data...
fast.cpp Loading commit data...
fast_score.cpp Loading commit data...
fast_score.hpp Loading commit data...
feature2d.cpp Loading commit data...
gftt.cpp Loading commit data...
kaze.cpp Loading commit data...
keypoint.cpp Loading commit data...
main.cpp Loading commit data...
matchers.cpp Loading commit data...
mser.cpp Loading commit data...
orb.cpp Loading commit data...
precomp.hpp Loading commit data...