Mixed raw pointers and Ptr<> in features2d java wrappers #11268
Labels
affected: 3.4
bug
category: java bindings
Hackathon
https://opencv.org/opencv-hackathon-starts-next-week/
priority: high
Milestone
System information (version)
Detailed description
both
FlannBasedMatcher
andBFMatcher
have a public constructor and a create() method, the 1st constructs anew FlannBasedMatcher
, the 2nd anew Ptr<Ptr<FlannbasedMatcher>>
.since the internal wrapper code expects the latter, using an instance created from a constructor will segfault
when being deferenced like this:
a similar problem occurs in the
BOWKMeansTrainer
class, which can only be invoked from a constructor, but the internal code uses dereferencedPtr
java example code:
generated jni code:
The text was updated successfully, but these errors were encountered: