001 002// 003// This file is auto-generated. Please don't modify it! 004// 005package org.opencv.features2d; 006 007 008 009// C++: class BFMatcher 010//javadoc: BFMatcher 011public class BFMatcher extends DescriptorMatcher { 012 013 protected BFMatcher(long addr) { super(addr); } 014 015 016 // 017 // C++: BFMatcher(int normType = NORM_L2, bool crossCheck = false) 018 // 019 020 //javadoc: BFMatcher::BFMatcher(normType, crossCheck) 021 public BFMatcher(int normType, boolean crossCheck) 022 { 023 024 super( BFMatcher_0(normType, crossCheck) ); 025 026 return; 027 } 028 029 //javadoc: BFMatcher::BFMatcher() 030 public BFMatcher() 031 { 032 033 super( BFMatcher_1() ); 034 035 return; 036 } 037 038 039 // 040 // C++: static Ptr_BFMatcher create(int normType = NORM_L2, bool crossCheck = false) 041 // 042 043 //javadoc: BFMatcher::create(normType, crossCheck) 044 public static BFMatcher create(int normType, boolean crossCheck) 045 { 046 047 BFMatcher retVal = new BFMatcher(create_0(normType, crossCheck)); 048 049 return retVal; 050 } 051 052 //javadoc: BFMatcher::create() 053 public static BFMatcher create() 054 { 055 056 BFMatcher retVal = new BFMatcher(create_1()); 057 058 return retVal; 059 } 060 061 062 @Override 063 protected void finalize() throws Throwable { 064 delete(nativeObj); 065 } 066 067 068 069 // C++: BFMatcher(int normType = NORM_L2, bool crossCheck = false) 070 private static native long BFMatcher_0(int normType, boolean crossCheck); 071 private static native long BFMatcher_1(); 072 073 // C++: static Ptr_BFMatcher create(int normType = NORM_L2, bool crossCheck = false) 074 private static native long create_0(int normType, boolean crossCheck); 075 private static native long create_1(); 076 077 // native support for java finalize() 078 private static native void delete(long nativeObj); 079 080}