001// 002// This file is auto-generated. Please don't modify it! 003// 004package org.opencv.aruco; 005 006 007 008// C++: class EstimateParameters 009/** 010 * Pose estimation parameters 011 * 012 * pattern Defines center this system and axes direction (default PatternPositionType::ARUCO_CCW_CENTER). 013 * useExtrinsicGuess Parameter used for SOLVEPNP_ITERATIVE. If true (1), the function uses the provided 014 * rvec and tvec values as initial approximations of the rotation and translation vectors, respectively, and further 015 * optimizes them (default false). 016 * solvePnPMethod Method for solving a PnP problem: see REF: calib3d_solvePnP_flags (default SOLVEPNP_ITERATIVE). 017 * SEE: PatternPositionType, solvePnP(), check tutorial_aruco_detection in aruco contrib 018 */ 019public class EstimateParameters { 020 021 protected final long nativeObj; 022 protected EstimateParameters(long addr) { nativeObj = addr; } 023 024 public long getNativeObjAddr() { return nativeObj; } 025 026 // internal usage only 027 public static EstimateParameters __fromPtr__(long addr) { return new EstimateParameters(addr); } 028 029 // 030 // C++: cv::aruco::EstimateParameters::EstimateParameters() 031 // 032 033 public EstimateParameters() { 034 nativeObj = EstimateParameters_0(); 035 } 036 037 038 // 039 // C++: PatternPositionType EstimateParameters::pattern 040 // 041 042 // Return type 'PatternPositionType' is not supported, skipping the function 043 044 045 // 046 // C++: void EstimateParameters::pattern 047 // 048 049 // Unknown type 'PatternPositionType' (I), skipping the function 050 051 052 // 053 // C++: bool EstimateParameters::useExtrinsicGuess 054 // 055 056 public boolean get_useExtrinsicGuess() { 057 return get_useExtrinsicGuess_0(nativeObj); 058 } 059 060 061 // 062 // C++: void EstimateParameters::useExtrinsicGuess 063 // 064 065 public void set_useExtrinsicGuess(boolean useExtrinsicGuess) { 066 set_useExtrinsicGuess_0(nativeObj, useExtrinsicGuess); 067 } 068 069 070 // 071 // C++: int EstimateParameters::solvePnPMethod 072 // 073 074 public int get_solvePnPMethod() { 075 return get_solvePnPMethod_0(nativeObj); 076 } 077 078 079 // 080 // C++: void EstimateParameters::solvePnPMethod 081 // 082 083 public void set_solvePnPMethod(int solvePnPMethod) { 084 set_solvePnPMethod_0(nativeObj, solvePnPMethod); 085 } 086 087 088 @Override 089 protected void finalize() throws Throwable { 090 delete(nativeObj); 091 } 092 093 094 095 // C++: cv::aruco::EstimateParameters::EstimateParameters() 096 private static native long EstimateParameters_0(); 097 098 // C++: bool EstimateParameters::useExtrinsicGuess 099 private static native boolean get_useExtrinsicGuess_0(long nativeObj); 100 101 // C++: void EstimateParameters::useExtrinsicGuess 102 private static native void set_useExtrinsicGuess_0(long nativeObj, boolean useExtrinsicGuess); 103 104 // C++: int EstimateParameters::solvePnPMethod 105 private static native int get_solvePnPMethod_0(long nativeObj); 106 107 // C++: void EstimateParameters::solvePnPMethod 108 private static native void set_solvePnPMethod_0(long nativeObj, int solvePnPMethod); 109 110 // native support for java finalize() 111 private static native void delete(long nativeObj); 112 113}