001//
002// This file is auto-generated. Please don't modify it!
003//
004package org.opencv.features2d;
005
006import org.opencv.features2d.Feature2D;
007import org.opencv.features2d.GFTTDetector;
008
009// C++: class GFTTDetector
010/**
011 * Wrapping class for feature detection using the goodFeaturesToTrack function. :
012 */
013public class GFTTDetector extends Feature2D {
014
015    protected GFTTDetector(long addr) { super(addr); }
016
017    // internal usage only
018    public static GFTTDetector __fromPtr__(long addr) { return new GFTTDetector(addr); }
019
020    //
021    // C++: static Ptr_GFTTDetector cv::GFTTDetector::create(int maxCorners = 1000, double qualityLevel = 0.01, double minDistance = 1, int blockSize = 3, bool useHarrisDetector = false, double k = 0.04)
022    //
023
024    public static GFTTDetector create(int maxCorners, double qualityLevel, double minDistance, int blockSize, boolean useHarrisDetector, double k) {
025        return GFTTDetector.__fromPtr__(create_0(maxCorners, qualityLevel, minDistance, blockSize, useHarrisDetector, k));
026    }
027
028    public static GFTTDetector create(int maxCorners, double qualityLevel, double minDistance, int blockSize, boolean useHarrisDetector) {
029        return GFTTDetector.__fromPtr__(create_1(maxCorners, qualityLevel, minDistance, blockSize, useHarrisDetector));
030    }
031
032    public static GFTTDetector create(int maxCorners, double qualityLevel, double minDistance, int blockSize) {
033        return GFTTDetector.__fromPtr__(create_2(maxCorners, qualityLevel, minDistance, blockSize));
034    }
035
036    public static GFTTDetector create(int maxCorners, double qualityLevel, double minDistance) {
037        return GFTTDetector.__fromPtr__(create_3(maxCorners, qualityLevel, minDistance));
038    }
039
040    public static GFTTDetector create(int maxCorners, double qualityLevel) {
041        return GFTTDetector.__fromPtr__(create_4(maxCorners, qualityLevel));
042    }
043
044    public static GFTTDetector create(int maxCorners) {
045        return GFTTDetector.__fromPtr__(create_5(maxCorners));
046    }
047
048    public static GFTTDetector create() {
049        return GFTTDetector.__fromPtr__(create_6());
050    }
051
052
053    //
054    // C++: static Ptr_GFTTDetector cv::GFTTDetector::create(int maxCorners, double qualityLevel, double minDistance, int blockSize, int gradiantSize, bool useHarrisDetector = false, double k = 0.04)
055    //
056
057    public static GFTTDetector create(int maxCorners, double qualityLevel, double minDistance, int blockSize, int gradiantSize, boolean useHarrisDetector, double k) {
058        return GFTTDetector.__fromPtr__(create_7(maxCorners, qualityLevel, minDistance, blockSize, gradiantSize, useHarrisDetector, k));
059    }
060
061    public static GFTTDetector create(int maxCorners, double qualityLevel, double minDistance, int blockSize, int gradiantSize, boolean useHarrisDetector) {
062        return GFTTDetector.__fromPtr__(create_8(maxCorners, qualityLevel, minDistance, blockSize, gradiantSize, useHarrisDetector));
063    }
064
065    public static GFTTDetector create(int maxCorners, double qualityLevel, double minDistance, int blockSize, int gradiantSize) {
066        return GFTTDetector.__fromPtr__(create_9(maxCorners, qualityLevel, minDistance, blockSize, gradiantSize));
067    }
068
069
070    //
071    // C++:  void cv::GFTTDetector::setMaxFeatures(int maxFeatures)
072    //
073
074    public void setMaxFeatures(int maxFeatures) {
075        setMaxFeatures_0(nativeObj, maxFeatures);
076    }
077
078
079    //
080    // C++:  int cv::GFTTDetector::getMaxFeatures()
081    //
082
083    public int getMaxFeatures() {
084        return getMaxFeatures_0(nativeObj);
085    }
086
087
088    //
089    // C++:  void cv::GFTTDetector::setQualityLevel(double qlevel)
090    //
091
092    public void setQualityLevel(double qlevel) {
093        setQualityLevel_0(nativeObj, qlevel);
094    }
095
096
097    //
098    // C++:  double cv::GFTTDetector::getQualityLevel()
099    //
100
101    public double getQualityLevel() {
102        return getQualityLevel_0(nativeObj);
103    }
104
105
106    //
107    // C++:  void cv::GFTTDetector::setMinDistance(double minDistance)
108    //
109
110    public void setMinDistance(double minDistance) {
111        setMinDistance_0(nativeObj, minDistance);
112    }
113
114
115    //
116    // C++:  double cv::GFTTDetector::getMinDistance()
117    //
118
119    public double getMinDistance() {
120        return getMinDistance_0(nativeObj);
121    }
122
123
124    //
125    // C++:  void cv::GFTTDetector::setBlockSize(int blockSize)
126    //
127
128    public void setBlockSize(int blockSize) {
129        setBlockSize_0(nativeObj, blockSize);
130    }
131
132
133    //
134    // C++:  int cv::GFTTDetector::getBlockSize()
135    //
136
137    public int getBlockSize() {
138        return getBlockSize_0(nativeObj);
139    }
140
141
142    //
143    // C++:  void cv::GFTTDetector::setHarrisDetector(bool val)
144    //
145
146    public void setHarrisDetector(boolean val) {
147        setHarrisDetector_0(nativeObj, val);
148    }
149
150
151    //
152    // C++:  bool cv::GFTTDetector::getHarrisDetector()
153    //
154
155    public boolean getHarrisDetector() {
156        return getHarrisDetector_0(nativeObj);
157    }
158
159
160    //
161    // C++:  void cv::GFTTDetector::setK(double k)
162    //
163
164    public void setK(double k) {
165        setK_0(nativeObj, k);
166    }
167
168
169    //
170    // C++:  double cv::GFTTDetector::getK()
171    //
172
173    public double getK() {
174        return getK_0(nativeObj);
175    }
176
177
178    //
179    // C++:  String cv::GFTTDetector::getDefaultName()
180    //
181
182    public String getDefaultName() {
183        return getDefaultName_0(nativeObj);
184    }
185
186
187    @Override
188    protected void finalize() throws Throwable {
189        delete(nativeObj);
190    }
191
192
193
194    // C++: static Ptr_GFTTDetector cv::GFTTDetector::create(int maxCorners = 1000, double qualityLevel = 0.01, double minDistance = 1, int blockSize = 3, bool useHarrisDetector = false, double k = 0.04)
195    private static native long create_0(int maxCorners, double qualityLevel, double minDistance, int blockSize, boolean useHarrisDetector, double k);
196    private static native long create_1(int maxCorners, double qualityLevel, double minDistance, int blockSize, boolean useHarrisDetector);
197    private static native long create_2(int maxCorners, double qualityLevel, double minDistance, int blockSize);
198    private static native long create_3(int maxCorners, double qualityLevel, double minDistance);
199    private static native long create_4(int maxCorners, double qualityLevel);
200    private static native long create_5(int maxCorners);
201    private static native long create_6();
202
203    // C++: static Ptr_GFTTDetector cv::GFTTDetector::create(int maxCorners, double qualityLevel, double minDistance, int blockSize, int gradiantSize, bool useHarrisDetector = false, double k = 0.04)
204    private static native long create_7(int maxCorners, double qualityLevel, double minDistance, int blockSize, int gradiantSize, boolean useHarrisDetector, double k);
205    private static native long create_8(int maxCorners, double qualityLevel, double minDistance, int blockSize, int gradiantSize, boolean useHarrisDetector);
206    private static native long create_9(int maxCorners, double qualityLevel, double minDistance, int blockSize, int gradiantSize);
207
208    // C++:  void cv::GFTTDetector::setMaxFeatures(int maxFeatures)
209    private static native void setMaxFeatures_0(long nativeObj, int maxFeatures);
210
211    // C++:  int cv::GFTTDetector::getMaxFeatures()
212    private static native int getMaxFeatures_0(long nativeObj);
213
214    // C++:  void cv::GFTTDetector::setQualityLevel(double qlevel)
215    private static native void setQualityLevel_0(long nativeObj, double qlevel);
216
217    // C++:  double cv::GFTTDetector::getQualityLevel()
218    private static native double getQualityLevel_0(long nativeObj);
219
220    // C++:  void cv::GFTTDetector::setMinDistance(double minDistance)
221    private static native void setMinDistance_0(long nativeObj, double minDistance);
222
223    // C++:  double cv::GFTTDetector::getMinDistance()
224    private static native double getMinDistance_0(long nativeObj);
225
226    // C++:  void cv::GFTTDetector::setBlockSize(int blockSize)
227    private static native void setBlockSize_0(long nativeObj, int blockSize);
228
229    // C++:  int cv::GFTTDetector::getBlockSize()
230    private static native int getBlockSize_0(long nativeObj);
231
232    // C++:  void cv::GFTTDetector::setHarrisDetector(bool val)
233    private static native void setHarrisDetector_0(long nativeObj, boolean val);
234
235    // C++:  bool cv::GFTTDetector::getHarrisDetector()
236    private static native boolean getHarrisDetector_0(long nativeObj);
237
238    // C++:  void cv::GFTTDetector::setK(double k)
239    private static native void setK_0(long nativeObj, double k);
240
241    // C++:  double cv::GFTTDetector::getK()
242    private static native double getK_0(long nativeObj);
243
244    // C++:  String cv::GFTTDetector::getDefaultName()
245    private static native String getDefaultName_0(long nativeObj);
246
247    // native support for java finalize()
248    private static native void delete(long nativeObj);
249
250}