001
002//
003// This file is auto-generated. Please don't modify it!
004//
005package org.opencv.features2d;
006
007import org.opencv.features2d.Feature2D;
008
009// C++: class FastFeatureDetector
010//javadoc: FastFeatureDetector
011public class FastFeatureDetector extends Feature2D {
012
013    protected FastFeatureDetector(long addr) { super(addr); }
014
015
016    public static final int
017            TYPE_5_8 = 0,
018            TYPE_7_12 = 1,
019            TYPE_9_16 = 2,
020            THRESHOLD = 10000,
021            NONMAX_SUPPRESSION = 10001,
022            FAST_N = 10002;
023
024
025    //
026    // C++: static Ptr_FastFeatureDetector create(int threshold = 10, bool nonmaxSuppression = true, int type = FastFeatureDetector::TYPE_9_16)
027    //
028
029    //javadoc: FastFeatureDetector::create(threshold, nonmaxSuppression, type)
030    public static FastFeatureDetector create(int threshold, boolean nonmaxSuppression, int type)
031    {
032        
033        FastFeatureDetector retVal = new FastFeatureDetector(create_0(threshold, nonmaxSuppression, type));
034        
035        return retVal;
036    }
037
038    //javadoc: FastFeatureDetector::create()
039    public static FastFeatureDetector create()
040    {
041        
042        FastFeatureDetector retVal = new FastFeatureDetector(create_1());
043        
044        return retVal;
045    }
046
047
048    //
049    // C++:  bool getNonmaxSuppression()
050    //
051
052    //javadoc: FastFeatureDetector::getNonmaxSuppression()
053    public  boolean getNonmaxSuppression()
054    {
055        
056        boolean retVal = getNonmaxSuppression_0(nativeObj);
057        
058        return retVal;
059    }
060
061
062    //
063    // C++:  int getThreshold()
064    //
065
066    //javadoc: FastFeatureDetector::getThreshold()
067    public  int getThreshold()
068    {
069        
070        int retVal = getThreshold_0(nativeObj);
071        
072        return retVal;
073    }
074
075
076    //
077    // C++:  int getType()
078    //
079
080    //javadoc: FastFeatureDetector::getType()
081    public  int getType()
082    {
083        
084        int retVal = getType_0(nativeObj);
085        
086        return retVal;
087    }
088
089
090    //
091    // C++:  void setNonmaxSuppression(bool f)
092    //
093
094    //javadoc: FastFeatureDetector::setNonmaxSuppression(f)
095    public  void setNonmaxSuppression(boolean f)
096    {
097        
098        setNonmaxSuppression_0(nativeObj, f);
099        
100        return;
101    }
102
103
104    //
105    // C++:  void setThreshold(int threshold)
106    //
107
108    //javadoc: FastFeatureDetector::setThreshold(threshold)
109    public  void setThreshold(int threshold)
110    {
111        
112        setThreshold_0(nativeObj, threshold);
113        
114        return;
115    }
116
117
118    //
119    // C++:  void setType(int type)
120    //
121
122    //javadoc: FastFeatureDetector::setType(type)
123    public  void setType(int type)
124    {
125        
126        setType_0(nativeObj, type);
127        
128        return;
129    }
130
131
132    @Override
133    protected void finalize() throws Throwable {
134        delete(nativeObj);
135    }
136
137
138
139    // C++: static Ptr_FastFeatureDetector create(int threshold = 10, bool nonmaxSuppression = true, int type = FastFeatureDetector::TYPE_9_16)
140    private static native long create_0(int threshold, boolean nonmaxSuppression, int type);
141    private static native long create_1();
142
143    // C++:  bool getNonmaxSuppression()
144    private static native boolean getNonmaxSuppression_0(long nativeObj);
145
146    // C++:  int getThreshold()
147    private static native int getThreshold_0(long nativeObj);
148
149    // C++:  int getType()
150    private static native int getType_0(long nativeObj);
151
152    // C++:  void setNonmaxSuppression(bool f)
153    private static native void setNonmaxSuppression_0(long nativeObj, boolean f);
154
155    // C++:  void setThreshold(int threshold)
156    private static native void setThreshold_0(long nativeObj, int threshold);
157
158    // C++:  void setType(int type)
159    private static native void setType_0(long nativeObj, int type);
160
161    // native support for java finalize()
162    private static native void delete(long nativeObj);
163
164}