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