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.KAZE;
008
009// C++: class KAZE
010/**
011 * Class implementing the KAZE keypoint detector and descriptor extractor, described in CITE: ABD12 .
012 *
013 * <b>Note:</b> AKAZE descriptor can only be used with KAZE or AKAZE keypoints .. [ABD12] KAZE Features. Pablo
014 * F. Alcantarilla, Adrien Bartoli and Andrew J. Davison. In European Conference on Computer Vision
015 * (ECCV), Fiorenze, Italy, October 2012.
016 */
017public class KAZE extends Feature2D {
018
019    protected KAZE(long addr) { super(addr); }
020
021    // internal usage only
022    public static KAZE __fromPtr__(long addr) { return new KAZE(addr); }
023
024    // C++: enum DiffusivityType (cv.KAZE.DiffusivityType)
025    public static final int
026            DIFF_PM_G1 = 0,
027            DIFF_PM_G2 = 1,
028            DIFF_WEICKERT = 2,
029            DIFF_CHARBONNIER = 3;
030
031
032    //
033    // C++: static Ptr_KAZE cv::KAZE::create(bool extended = false, bool upright = false, float threshold = 0.001f, int nOctaves = 4, int nOctaveLayers = 4, KAZE_DiffusivityType diffusivity = KAZE::DIFF_PM_G2)
034    //
035
036    /**
037     * The KAZE constructor
038     *
039     *     @param extended Set to enable extraction of extended (128-byte) descriptor.
040     *     @param upright Set to enable use of upright descriptors (non rotation-invariant).
041     *     @param threshold Detector response threshold to accept point
042     *     @param nOctaves Maximum octave evolution of the image
043     *     @param nOctaveLayers Default number of sublevels per scale level
044     *     @param diffusivity Diffusivity type. DIFF_PM_G1, DIFF_PM_G2, DIFF_WEICKERT or
045     *     DIFF_CHARBONNIER
046     * @return automatically generated
047     */
048    public static KAZE create(boolean extended, boolean upright, float threshold, int nOctaves, int nOctaveLayers, int diffusivity) {
049        return KAZE.__fromPtr__(create_0(extended, upright, threshold, nOctaves, nOctaveLayers, diffusivity));
050    }
051
052    /**
053     * The KAZE constructor
054     *
055     *     @param extended Set to enable extraction of extended (128-byte) descriptor.
056     *     @param upright Set to enable use of upright descriptors (non rotation-invariant).
057     *     @param threshold Detector response threshold to accept point
058     *     @param nOctaves Maximum octave evolution of the image
059     *     @param nOctaveLayers Default number of sublevels per scale level
060     *     DIFF_CHARBONNIER
061     * @return automatically generated
062     */
063    public static KAZE create(boolean extended, boolean upright, float threshold, int nOctaves, int nOctaveLayers) {
064        return KAZE.__fromPtr__(create_1(extended, upright, threshold, nOctaves, nOctaveLayers));
065    }
066
067    /**
068     * The KAZE constructor
069     *
070     *     @param extended Set to enable extraction of extended (128-byte) descriptor.
071     *     @param upright Set to enable use of upright descriptors (non rotation-invariant).
072     *     @param threshold Detector response threshold to accept point
073     *     @param nOctaves Maximum octave evolution of the image
074     *     DIFF_CHARBONNIER
075     * @return automatically generated
076     */
077    public static KAZE create(boolean extended, boolean upright, float threshold, int nOctaves) {
078        return KAZE.__fromPtr__(create_2(extended, upright, threshold, nOctaves));
079    }
080
081    /**
082     * The KAZE constructor
083     *
084     *     @param extended Set to enable extraction of extended (128-byte) descriptor.
085     *     @param upright Set to enable use of upright descriptors (non rotation-invariant).
086     *     @param threshold Detector response threshold to accept point
087     *     DIFF_CHARBONNIER
088     * @return automatically generated
089     */
090    public static KAZE create(boolean extended, boolean upright, float threshold) {
091        return KAZE.__fromPtr__(create_3(extended, upright, threshold));
092    }
093
094    /**
095     * The KAZE constructor
096     *
097     *     @param extended Set to enable extraction of extended (128-byte) descriptor.
098     *     @param upright Set to enable use of upright descriptors (non rotation-invariant).
099     *     DIFF_CHARBONNIER
100     * @return automatically generated
101     */
102    public static KAZE create(boolean extended, boolean upright) {
103        return KAZE.__fromPtr__(create_4(extended, upright));
104    }
105
106    /**
107     * The KAZE constructor
108     *
109     *     @param extended Set to enable extraction of extended (128-byte) descriptor.
110     *     DIFF_CHARBONNIER
111     * @return automatically generated
112     */
113    public static KAZE create(boolean extended) {
114        return KAZE.__fromPtr__(create_5(extended));
115    }
116
117    /**
118     * The KAZE constructor
119     *
120     *     DIFF_CHARBONNIER
121     * @return automatically generated
122     */
123    public static KAZE create() {
124        return KAZE.__fromPtr__(create_6());
125    }
126
127
128    //
129    // C++:  void cv::KAZE::setExtended(bool extended)
130    //
131
132    public void setExtended(boolean extended) {
133        setExtended_0(nativeObj, extended);
134    }
135
136
137    //
138    // C++:  bool cv::KAZE::getExtended()
139    //
140
141    public boolean getExtended() {
142        return getExtended_0(nativeObj);
143    }
144
145
146    //
147    // C++:  void cv::KAZE::setUpright(bool upright)
148    //
149
150    public void setUpright(boolean upright) {
151        setUpright_0(nativeObj, upright);
152    }
153
154
155    //
156    // C++:  bool cv::KAZE::getUpright()
157    //
158
159    public boolean getUpright() {
160        return getUpright_0(nativeObj);
161    }
162
163
164    //
165    // C++:  void cv::KAZE::setThreshold(double threshold)
166    //
167
168    public void setThreshold(double threshold) {
169        setThreshold_0(nativeObj, threshold);
170    }
171
172
173    //
174    // C++:  double cv::KAZE::getThreshold()
175    //
176
177    public double getThreshold() {
178        return getThreshold_0(nativeObj);
179    }
180
181
182    //
183    // C++:  void cv::KAZE::setNOctaves(int octaves)
184    //
185
186    public void setNOctaves(int octaves) {
187        setNOctaves_0(nativeObj, octaves);
188    }
189
190
191    //
192    // C++:  int cv::KAZE::getNOctaves()
193    //
194
195    public int getNOctaves() {
196        return getNOctaves_0(nativeObj);
197    }
198
199
200    //
201    // C++:  void cv::KAZE::setNOctaveLayers(int octaveLayers)
202    //
203
204    public void setNOctaveLayers(int octaveLayers) {
205        setNOctaveLayers_0(nativeObj, octaveLayers);
206    }
207
208
209    //
210    // C++:  int cv::KAZE::getNOctaveLayers()
211    //
212
213    public int getNOctaveLayers() {
214        return getNOctaveLayers_0(nativeObj);
215    }
216
217
218    //
219    // C++:  void cv::KAZE::setDiffusivity(KAZE_DiffusivityType diff)
220    //
221
222    public void setDiffusivity(int diff) {
223        setDiffusivity_0(nativeObj, diff);
224    }
225
226
227    //
228    // C++:  KAZE_DiffusivityType cv::KAZE::getDiffusivity()
229    //
230
231    public int getDiffusivity() {
232        return getDiffusivity_0(nativeObj);
233    }
234
235
236    //
237    // C++:  String cv::KAZE::getDefaultName()
238    //
239
240    public String getDefaultName() {
241        return getDefaultName_0(nativeObj);
242    }
243
244
245    @Override
246    protected void finalize() throws Throwable {
247        delete(nativeObj);
248    }
249
250
251
252    // C++: static Ptr_KAZE cv::KAZE::create(bool extended = false, bool upright = false, float threshold = 0.001f, int nOctaves = 4, int nOctaveLayers = 4, KAZE_DiffusivityType diffusivity = KAZE::DIFF_PM_G2)
253    private static native long create_0(boolean extended, boolean upright, float threshold, int nOctaves, int nOctaveLayers, int diffusivity);
254    private static native long create_1(boolean extended, boolean upright, float threshold, int nOctaves, int nOctaveLayers);
255    private static native long create_2(boolean extended, boolean upright, float threshold, int nOctaves);
256    private static native long create_3(boolean extended, boolean upright, float threshold);
257    private static native long create_4(boolean extended, boolean upright);
258    private static native long create_5(boolean extended);
259    private static native long create_6();
260
261    // C++:  void cv::KAZE::setExtended(bool extended)
262    private static native void setExtended_0(long nativeObj, boolean extended);
263
264    // C++:  bool cv::KAZE::getExtended()
265    private static native boolean getExtended_0(long nativeObj);
266
267    // C++:  void cv::KAZE::setUpright(bool upright)
268    private static native void setUpright_0(long nativeObj, boolean upright);
269
270    // C++:  bool cv::KAZE::getUpright()
271    private static native boolean getUpright_0(long nativeObj);
272
273    // C++:  void cv::KAZE::setThreshold(double threshold)
274    private static native void setThreshold_0(long nativeObj, double threshold);
275
276    // C++:  double cv::KAZE::getThreshold()
277    private static native double getThreshold_0(long nativeObj);
278
279    // C++:  void cv::KAZE::setNOctaves(int octaves)
280    private static native void setNOctaves_0(long nativeObj, int octaves);
281
282    // C++:  int cv::KAZE::getNOctaves()
283    private static native int getNOctaves_0(long nativeObj);
284
285    // C++:  void cv::KAZE::setNOctaveLayers(int octaveLayers)
286    private static native void setNOctaveLayers_0(long nativeObj, int octaveLayers);
287
288    // C++:  int cv::KAZE::getNOctaveLayers()
289    private static native int getNOctaveLayers_0(long nativeObj);
290
291    // C++:  void cv::KAZE::setDiffusivity(KAZE_DiffusivityType diff)
292    private static native void setDiffusivity_0(long nativeObj, int diff);
293
294    // C++:  KAZE_DiffusivityType cv::KAZE::getDiffusivity()
295    private static native int getDiffusivity_0(long nativeObj);
296
297    // C++:  String cv::KAZE::getDefaultName()
298    private static native String getDefaultName_0(long nativeObj);
299
300    // native support for java finalize()
301    private static native void delete(long nativeObj);
302
303}