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