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 AKAZE 010//javadoc: AKAZE 011public class AKAZE extends Feature2D { 012 013 protected AKAZE(long addr) { super(addr); } 014 015 016 public static final int 017 DESCRIPTOR_KAZE_UPRIGHT = 2, 018 DESCRIPTOR_KAZE = 3, 019 DESCRIPTOR_MLDB_UPRIGHT = 4, 020 DESCRIPTOR_MLDB = 5; 021 022 023 // 024 // C++: static Ptr_AKAZE create(int descriptor_type = AKAZE::DESCRIPTOR_MLDB, int descriptor_size = 0, int descriptor_channels = 3, float threshold = 0.001f, int nOctaves = 4, int nOctaveLayers = 4, int diffusivity = KAZE::DIFF_PM_G2) 025 // 026 027 //javadoc: AKAZE::create(descriptor_type, descriptor_size, descriptor_channels, threshold, nOctaves, nOctaveLayers, diffusivity) 028 public static AKAZE create(int descriptor_type, int descriptor_size, int descriptor_channels, float threshold, int nOctaves, int nOctaveLayers, int diffusivity) 029 { 030 031 AKAZE retVal = new AKAZE(create_0(descriptor_type, descriptor_size, descriptor_channels, threshold, nOctaves, nOctaveLayers, diffusivity)); 032 033 return retVal; 034 } 035 036 //javadoc: AKAZE::create() 037 public static AKAZE create() 038 { 039 040 AKAZE retVal = new AKAZE(create_1()); 041 042 return retVal; 043 } 044 045 046 // 047 // C++: double getThreshold() 048 // 049 050 //javadoc: AKAZE::getThreshold() 051 public double getThreshold() 052 { 053 054 double retVal = getThreshold_0(nativeObj); 055 056 return retVal; 057 } 058 059 060 // 061 // C++: int getDescriptorChannels() 062 // 063 064 //javadoc: AKAZE::getDescriptorChannels() 065 public int getDescriptorChannels() 066 { 067 068 int retVal = getDescriptorChannels_0(nativeObj); 069 070 return retVal; 071 } 072 073 074 // 075 // C++: int getDescriptorSize() 076 // 077 078 //javadoc: AKAZE::getDescriptorSize() 079 public int getDescriptorSize() 080 { 081 082 int retVal = getDescriptorSize_0(nativeObj); 083 084 return retVal; 085 } 086 087 088 // 089 // C++: int getDescriptorType() 090 // 091 092 //javadoc: AKAZE::getDescriptorType() 093 public int getDescriptorType() 094 { 095 096 int retVal = getDescriptorType_0(nativeObj); 097 098 return retVal; 099 } 100 101 102 // 103 // C++: int getDiffusivity() 104 // 105 106 //javadoc: AKAZE::getDiffusivity() 107 public int getDiffusivity() 108 { 109 110 int retVal = getDiffusivity_0(nativeObj); 111 112 return retVal; 113 } 114 115 116 // 117 // C++: int getNOctaveLayers() 118 // 119 120 //javadoc: AKAZE::getNOctaveLayers() 121 public int getNOctaveLayers() 122 { 123 124 int retVal = getNOctaveLayers_0(nativeObj); 125 126 return retVal; 127 } 128 129 130 // 131 // C++: int getNOctaves() 132 // 133 134 //javadoc: AKAZE::getNOctaves() 135 public int getNOctaves() 136 { 137 138 int retVal = getNOctaves_0(nativeObj); 139 140 return retVal; 141 } 142 143 144 // 145 // C++: void setDescriptorChannels(int dch) 146 // 147 148 //javadoc: AKAZE::setDescriptorChannels(dch) 149 public void setDescriptorChannels(int dch) 150 { 151 152 setDescriptorChannels_0(nativeObj, dch); 153 154 return; 155 } 156 157 158 // 159 // C++: void setDescriptorSize(int dsize) 160 // 161 162 //javadoc: AKAZE::setDescriptorSize(dsize) 163 public void setDescriptorSize(int dsize) 164 { 165 166 setDescriptorSize_0(nativeObj, dsize); 167 168 return; 169 } 170 171 172 // 173 // C++: void setDescriptorType(int dtype) 174 // 175 176 //javadoc: AKAZE::setDescriptorType(dtype) 177 public void setDescriptorType(int dtype) 178 { 179 180 setDescriptorType_0(nativeObj, dtype); 181 182 return; 183 } 184 185 186 // 187 // C++: void setDiffusivity(int diff) 188 // 189 190 //javadoc: AKAZE::setDiffusivity(diff) 191 public void setDiffusivity(int diff) 192 { 193 194 setDiffusivity_0(nativeObj, diff); 195 196 return; 197 } 198 199 200 // 201 // C++: void setNOctaveLayers(int octaveLayers) 202 // 203 204 //javadoc: AKAZE::setNOctaveLayers(octaveLayers) 205 public void setNOctaveLayers(int octaveLayers) 206 { 207 208 setNOctaveLayers_0(nativeObj, octaveLayers); 209 210 return; 211 } 212 213 214 // 215 // C++: void setNOctaves(int octaves) 216 // 217 218 //javadoc: AKAZE::setNOctaves(octaves) 219 public void setNOctaves(int octaves) 220 { 221 222 setNOctaves_0(nativeObj, octaves); 223 224 return; 225 } 226 227 228 // 229 // C++: void setThreshold(double threshold) 230 // 231 232 //javadoc: AKAZE::setThreshold(threshold) 233 public void setThreshold(double threshold) 234 { 235 236 setThreshold_0(nativeObj, threshold); 237 238 return; 239 } 240 241 242 @Override 243 protected void finalize() throws Throwable { 244 delete(nativeObj); 245 } 246 247 248 249 // C++: static Ptr_AKAZE create(int descriptor_type = AKAZE::DESCRIPTOR_MLDB, int descriptor_size = 0, int descriptor_channels = 3, float threshold = 0.001f, int nOctaves = 4, int nOctaveLayers = 4, int diffusivity = KAZE::DIFF_PM_G2) 250 private static native long create_0(int descriptor_type, int descriptor_size, int descriptor_channels, float threshold, int nOctaves, int nOctaveLayers, int diffusivity); 251 private static native long create_1(); 252 253 // C++: double getThreshold() 254 private static native double getThreshold_0(long nativeObj); 255 256 // C++: int getDescriptorChannels() 257 private static native int getDescriptorChannels_0(long nativeObj); 258 259 // C++: int getDescriptorSize() 260 private static native int getDescriptorSize_0(long nativeObj); 261 262 // C++: int getDescriptorType() 263 private static native int getDescriptorType_0(long nativeObj); 264 265 // C++: int getDiffusivity() 266 private static native int getDiffusivity_0(long nativeObj); 267 268 // C++: int getNOctaveLayers() 269 private static native int getNOctaveLayers_0(long nativeObj); 270 271 // C++: int getNOctaves() 272 private static native int getNOctaves_0(long nativeObj); 273 274 // C++: void setDescriptorChannels(int dch) 275 private static native void setDescriptorChannels_0(long nativeObj, int dch); 276 277 // C++: void setDescriptorSize(int dsize) 278 private static native void setDescriptorSize_0(long nativeObj, int dsize); 279 280 // C++: void setDescriptorType(int dtype) 281 private static native void setDescriptorType_0(long nativeObj, int dtype); 282 283 // C++: void setDiffusivity(int diff) 284 private static native void setDiffusivity_0(long nativeObj, int diff); 285 286 // C++: void setNOctaveLayers(int octaveLayers) 287 private static native void setNOctaveLayers_0(long nativeObj, int octaveLayers); 288 289 // C++: void setNOctaves(int octaves) 290 private static native void setNOctaves_0(long nativeObj, int octaves); 291 292 // C++: void setThreshold(double threshold) 293 private static native void setThreshold_0(long nativeObj, double threshold); 294 295 // native support for java finalize() 296 private static native void delete(long nativeObj); 297 298}