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 ORB 010//javadoc: ORB 011public class ORB extends Feature2D { 012 013 protected ORB(long addr) { super(addr); } 014 015 016 public static final int 017 kBytes = 32, 018 HARRIS_SCORE = 0, 019 FAST_SCORE = 1; 020 021 022 // 023 // C++: static Ptr_ORB create(int nfeatures = 500, float scaleFactor = 1.2f, int nlevels = 8, int edgeThreshold = 31, int firstLevel = 0, int WTA_K = 2, int scoreType = ORB::HARRIS_SCORE, int patchSize = 31, int fastThreshold = 20) 024 // 025 026 //javadoc: ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize, fastThreshold) 027 public static ORB create(int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold) 028 { 029 030 ORB retVal = new ORB(create_0(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize, fastThreshold)); 031 032 return retVal; 033 } 034 035 //javadoc: ORB::create() 036 public static ORB create() 037 { 038 039 ORB retVal = new ORB(create_1()); 040 041 return retVal; 042 } 043 044 045 // 046 // C++: double getScaleFactor() 047 // 048 049 //javadoc: ORB::getScaleFactor() 050 public double getScaleFactor() 051 { 052 053 double retVal = getScaleFactor_0(nativeObj); 054 055 return retVal; 056 } 057 058 059 // 060 // C++: int getEdgeThreshold() 061 // 062 063 //javadoc: ORB::getEdgeThreshold() 064 public int getEdgeThreshold() 065 { 066 067 int retVal = getEdgeThreshold_0(nativeObj); 068 069 return retVal; 070 } 071 072 073 // 074 // C++: int getFastThreshold() 075 // 076 077 //javadoc: ORB::getFastThreshold() 078 public int getFastThreshold() 079 { 080 081 int retVal = getFastThreshold_0(nativeObj); 082 083 return retVal; 084 } 085 086 087 // 088 // C++: int getFirstLevel() 089 // 090 091 //javadoc: ORB::getFirstLevel() 092 public int getFirstLevel() 093 { 094 095 int retVal = getFirstLevel_0(nativeObj); 096 097 return retVal; 098 } 099 100 101 // 102 // C++: int getMaxFeatures() 103 // 104 105 //javadoc: ORB::getMaxFeatures() 106 public int getMaxFeatures() 107 { 108 109 int retVal = getMaxFeatures_0(nativeObj); 110 111 return retVal; 112 } 113 114 115 // 116 // C++: int getNLevels() 117 // 118 119 //javadoc: ORB::getNLevels() 120 public int getNLevels() 121 { 122 123 int retVal = getNLevels_0(nativeObj); 124 125 return retVal; 126 } 127 128 129 // 130 // C++: int getPatchSize() 131 // 132 133 //javadoc: ORB::getPatchSize() 134 public int getPatchSize() 135 { 136 137 int retVal = getPatchSize_0(nativeObj); 138 139 return retVal; 140 } 141 142 143 // 144 // C++: int getScoreType() 145 // 146 147 //javadoc: ORB::getScoreType() 148 public int getScoreType() 149 { 150 151 int retVal = getScoreType_0(nativeObj); 152 153 return retVal; 154 } 155 156 157 // 158 // C++: int getWTA_K() 159 // 160 161 //javadoc: ORB::getWTA_K() 162 public int getWTA_K() 163 { 164 165 int retVal = getWTA_K_0(nativeObj); 166 167 return retVal; 168 } 169 170 171 // 172 // C++: void setEdgeThreshold(int edgeThreshold) 173 // 174 175 //javadoc: ORB::setEdgeThreshold(edgeThreshold) 176 public void setEdgeThreshold(int edgeThreshold) 177 { 178 179 setEdgeThreshold_0(nativeObj, edgeThreshold); 180 181 return; 182 } 183 184 185 // 186 // C++: void setFastThreshold(int fastThreshold) 187 // 188 189 //javadoc: ORB::setFastThreshold(fastThreshold) 190 public void setFastThreshold(int fastThreshold) 191 { 192 193 setFastThreshold_0(nativeObj, fastThreshold); 194 195 return; 196 } 197 198 199 // 200 // C++: void setFirstLevel(int firstLevel) 201 // 202 203 //javadoc: ORB::setFirstLevel(firstLevel) 204 public void setFirstLevel(int firstLevel) 205 { 206 207 setFirstLevel_0(nativeObj, firstLevel); 208 209 return; 210 } 211 212 213 // 214 // C++: void setMaxFeatures(int maxFeatures) 215 // 216 217 //javadoc: ORB::setMaxFeatures(maxFeatures) 218 public void setMaxFeatures(int maxFeatures) 219 { 220 221 setMaxFeatures_0(nativeObj, maxFeatures); 222 223 return; 224 } 225 226 227 // 228 // C++: void setNLevels(int nlevels) 229 // 230 231 //javadoc: ORB::setNLevels(nlevels) 232 public void setNLevels(int nlevels) 233 { 234 235 setNLevels_0(nativeObj, nlevels); 236 237 return; 238 } 239 240 241 // 242 // C++: void setPatchSize(int patchSize) 243 // 244 245 //javadoc: ORB::setPatchSize(patchSize) 246 public void setPatchSize(int patchSize) 247 { 248 249 setPatchSize_0(nativeObj, patchSize); 250 251 return; 252 } 253 254 255 // 256 // C++: void setScaleFactor(double scaleFactor) 257 // 258 259 //javadoc: ORB::setScaleFactor(scaleFactor) 260 public void setScaleFactor(double scaleFactor) 261 { 262 263 setScaleFactor_0(nativeObj, scaleFactor); 264 265 return; 266 } 267 268 269 // 270 // C++: void setScoreType(int scoreType) 271 // 272 273 //javadoc: ORB::setScoreType(scoreType) 274 public void setScoreType(int scoreType) 275 { 276 277 setScoreType_0(nativeObj, scoreType); 278 279 return; 280 } 281 282 283 // 284 // C++: void setWTA_K(int wta_k) 285 // 286 287 //javadoc: ORB::setWTA_K(wta_k) 288 public void setWTA_K(int wta_k) 289 { 290 291 setWTA_K_0(nativeObj, wta_k); 292 293 return; 294 } 295 296 297 @Override 298 protected void finalize() throws Throwable { 299 delete(nativeObj); 300 } 301 302 303 304 // C++: static Ptr_ORB create(int nfeatures = 500, float scaleFactor = 1.2f, int nlevels = 8, int edgeThreshold = 31, int firstLevel = 0, int WTA_K = 2, int scoreType = ORB::HARRIS_SCORE, int patchSize = 31, int fastThreshold = 20) 305 private static native long create_0(int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold); 306 private static native long create_1(); 307 308 // C++: double getScaleFactor() 309 private static native double getScaleFactor_0(long nativeObj); 310 311 // C++: int getEdgeThreshold() 312 private static native int getEdgeThreshold_0(long nativeObj); 313 314 // C++: int getFastThreshold() 315 private static native int getFastThreshold_0(long nativeObj); 316 317 // C++: int getFirstLevel() 318 private static native int getFirstLevel_0(long nativeObj); 319 320 // C++: int getMaxFeatures() 321 private static native int getMaxFeatures_0(long nativeObj); 322 323 // C++: int getNLevels() 324 private static native int getNLevels_0(long nativeObj); 325 326 // C++: int getPatchSize() 327 private static native int getPatchSize_0(long nativeObj); 328 329 // C++: int getScoreType() 330 private static native int getScoreType_0(long nativeObj); 331 332 // C++: int getWTA_K() 333 private static native int getWTA_K_0(long nativeObj); 334 335 // C++: void setEdgeThreshold(int edgeThreshold) 336 private static native void setEdgeThreshold_0(long nativeObj, int edgeThreshold); 337 338 // C++: void setFastThreshold(int fastThreshold) 339 private static native void setFastThreshold_0(long nativeObj, int fastThreshold); 340 341 // C++: void setFirstLevel(int firstLevel) 342 private static native void setFirstLevel_0(long nativeObj, int firstLevel); 343 344 // C++: void setMaxFeatures(int maxFeatures) 345 private static native void setMaxFeatures_0(long nativeObj, int maxFeatures); 346 347 // C++: void setNLevels(int nlevels) 348 private static native void setNLevels_0(long nativeObj, int nlevels); 349 350 // C++: void setPatchSize(int patchSize) 351 private static native void setPatchSize_0(long nativeObj, int patchSize); 352 353 // C++: void setScaleFactor(double scaleFactor) 354 private static native void setScaleFactor_0(long nativeObj, double scaleFactor); 355 356 // C++: void setScoreType(int scoreType) 357 private static native void setScoreType_0(long nativeObj, int scoreType); 358 359 // C++: void setWTA_K(int wta_k) 360 private static native void setWTA_K_0(long nativeObj, int wta_k); 361 362 // native support for java finalize() 363 private static native void delete(long nativeObj); 364 365}