001//
002// This file is auto-generated. Please don't modify it!
003//
004package org.opencv.features2d;
005
006import org.opencv.features2d.AgastFeatureDetector;
007import org.opencv.features2d.Feature2D;
008
009// C++: class AgastFeatureDetector
010/**
011 * Wrapping class for feature detection using the AGAST method. :
012 */
013public class AgastFeatureDetector extends Feature2D {
014
015    protected AgastFeatureDetector(long addr) { super(addr); }
016
017    // internal usage only
018    public static AgastFeatureDetector __fromPtr__(long addr) { return new AgastFeatureDetector(addr); }
019
020    // C++: enum <unnamed>
021    public static final int
022            THRESHOLD = 10000,
023            NONMAX_SUPPRESSION = 10001;
024
025
026    // C++: enum DetectorType (cv.AgastFeatureDetector.DetectorType)
027    public static final int
028            AGAST_5_8 = 0,
029            AGAST_7_12d = 1,
030            AGAST_7_12s = 2,
031            OAST_9_16 = 3;
032
033
034    //
035    // C++: static Ptr_AgastFeatureDetector cv::AgastFeatureDetector::create(int threshold = 10, bool nonmaxSuppression = true, AgastFeatureDetector_DetectorType type = AgastFeatureDetector::OAST_9_16)
036    //
037
038    public static AgastFeatureDetector create(int threshold, boolean nonmaxSuppression, int type) {
039        return AgastFeatureDetector.__fromPtr__(create_0(threshold, nonmaxSuppression, type));
040    }
041
042    public static AgastFeatureDetector create(int threshold, boolean nonmaxSuppression) {
043        return AgastFeatureDetector.__fromPtr__(create_1(threshold, nonmaxSuppression));
044    }
045
046    public static AgastFeatureDetector create(int threshold) {
047        return AgastFeatureDetector.__fromPtr__(create_2(threshold));
048    }
049
050    public static AgastFeatureDetector create() {
051        return AgastFeatureDetector.__fromPtr__(create_3());
052    }
053
054
055    //
056    // C++:  void cv::AgastFeatureDetector::setThreshold(int threshold)
057    //
058
059    public void setThreshold(int threshold) {
060        setThreshold_0(nativeObj, threshold);
061    }
062
063
064    //
065    // C++:  int cv::AgastFeatureDetector::getThreshold()
066    //
067
068    public int getThreshold() {
069        return getThreshold_0(nativeObj);
070    }
071
072
073    //
074    // C++:  void cv::AgastFeatureDetector::setNonmaxSuppression(bool f)
075    //
076
077    public void setNonmaxSuppression(boolean f) {
078        setNonmaxSuppression_0(nativeObj, f);
079    }
080
081
082    //
083    // C++:  bool cv::AgastFeatureDetector::getNonmaxSuppression()
084    //
085
086    public boolean getNonmaxSuppression() {
087        return getNonmaxSuppression_0(nativeObj);
088    }
089
090
091    //
092    // C++:  void cv::AgastFeatureDetector::setType(AgastFeatureDetector_DetectorType type)
093    //
094
095    public void setType(int type) {
096        setType_0(nativeObj, type);
097    }
098
099
100    //
101    // C++:  AgastFeatureDetector_DetectorType cv::AgastFeatureDetector::getType()
102    //
103
104    public int getType() {
105        return getType_0(nativeObj);
106    }
107
108
109    //
110    // C++:  String cv::AgastFeatureDetector::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_AgastFeatureDetector cv::AgastFeatureDetector::create(int threshold = 10, bool nonmaxSuppression = true, AgastFeatureDetector_DetectorType type = AgastFeatureDetector::OAST_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::AgastFeatureDetector::setThreshold(int threshold)
132    private static native void setThreshold_0(long nativeObj, int threshold);
133
134    // C++:  int cv::AgastFeatureDetector::getThreshold()
135    private static native int getThreshold_0(long nativeObj);
136
137    // C++:  void cv::AgastFeatureDetector::setNonmaxSuppression(bool f)
138    private static native void setNonmaxSuppression_0(long nativeObj, boolean f);
139
140    // C++:  bool cv::AgastFeatureDetector::getNonmaxSuppression()
141    private static native boolean getNonmaxSuppression_0(long nativeObj);
142
143    // C++:  void cv::AgastFeatureDetector::setType(AgastFeatureDetector_DetectorType type)
144    private static native void setType_0(long nativeObj, int type);
145
146    // C++:  AgastFeatureDetector_DetectorType cv::AgastFeatureDetector::getType()
147    private static native int getType_0(long nativeObj);
148
149    // C++:  String cv::AgastFeatureDetector::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}