001//
002// This file is auto-generated. Please don't modify it!
003//
004package org.opencv.features2d;
005
006import org.opencv.features2d.DescriptorMatcher;
007import org.opencv.features2d.FlannBasedMatcher;
008
009// C++: class FlannBasedMatcher
010/**
011 * Flann-based descriptor matcher.
012 *
013 * This matcher trains cv::flann::Index on a train descriptor collection and calls its nearest search
014 * methods to find the best matches. So, this matcher may be faster when matching a large train
015 * collection than the brute force matcher. FlannBasedMatcher does not support masking permissible
016 * matches of descriptor sets because flann::Index does not support this. :
017 */
018public class FlannBasedMatcher extends DescriptorMatcher {
019
020    protected FlannBasedMatcher(long addr) { super(addr); }
021
022    // internal usage only
023    public static FlannBasedMatcher __fromPtr__(long addr) { return new FlannBasedMatcher(addr); }
024
025    //
026    // C++:   cv::FlannBasedMatcher::FlannBasedMatcher(Ptr_flann_IndexParams indexParams = makePtr<flann::KDTreeIndexParams>(), Ptr_flann_SearchParams searchParams = makePtr<flann::SearchParams>())
027    //
028
029    public FlannBasedMatcher() {
030        super(FlannBasedMatcher_0());
031    }
032
033
034    //
035    // C++: static Ptr_FlannBasedMatcher cv::FlannBasedMatcher::create()
036    //
037
038    public static FlannBasedMatcher create() {
039        return FlannBasedMatcher.__fromPtr__(create_0());
040    }
041
042
043    @Override
044    protected void finalize() throws Throwable {
045        delete(nativeObj);
046    }
047
048
049
050    // C++:   cv::FlannBasedMatcher::FlannBasedMatcher(Ptr_flann_IndexParams indexParams = makePtr<flann::KDTreeIndexParams>(), Ptr_flann_SearchParams searchParams = makePtr<flann::SearchParams>())
051    private static native long FlannBasedMatcher_0();
052
053    // C++: static Ptr_FlannBasedMatcher cv::FlannBasedMatcher::create()
054    private static native long create_0();
055
056    // native support for java finalize()
057    private static native void delete(long nativeObj);
058
059}