1 2 // 3 // This file is auto-generated. Please don't modify it! 4 // 5 package org.opencv.calib3d; 6 7 import org.opencv.core.Rect; 8 9 // C++: class StereoBM 10 //javadoc: StereoBM 11 public class StereoBM extends StereoMatcher { 12 13 protected StereoBM(long addr) { super(addr); } 14 15 16 public static final int 17 PREFILTER_NORMALIZED_RESPONSE = 0, 18 PREFILTER_XSOBEL = 1; 19 20 21 // 22 // C++: int getPreFilterType() 23 // 24 25 //javadoc: StereoBM::getPreFilterType() 26 public int getPreFilterType() 27 { 28 29 int retVal = getPreFilterType_0(nativeObj); 30 31 return retVal; 32 } 33 34 35 // 36 // C++: void setPreFilterType(int preFilterType) 37 // 38 39 //javadoc: StereoBM::setPreFilterType(preFilterType) 40 public void setPreFilterType(int preFilterType) 41 { 42 43 setPreFilterType_0(nativeObj, preFilterType); 44 45 return; 46 } 47 48 49 // 50 // C++: int getPreFilterSize() 51 // 52 53 //javadoc: StereoBM::getPreFilterSize() 54 public int getPreFilterSize() 55 { 56 57 int retVal = getPreFilterSize_0(nativeObj); 58 59 return retVal; 60 } 61 62 63 // 64 // C++: void setPreFilterSize(int preFilterSize) 65 // 66 67 //javadoc: StereoBM::setPreFilterSize(preFilterSize) 68 public void setPreFilterSize(int preFilterSize) 69 { 70 71 setPreFilterSize_0(nativeObj, preFilterSize); 72 73 return; 74 } 75 76 77 // 78 // C++: int getPreFilterCap() 79 // 80 81 //javadoc: StereoBM::getPreFilterCap() 82 public int getPreFilterCap() 83 { 84 85 int retVal = getPreFilterCap_0(nativeObj); 86 87 return retVal; 88 } 89 90 91 // 92 // C++: void setPreFilterCap(int preFilterCap) 93 // 94 95 //javadoc: StereoBM::setPreFilterCap(preFilterCap) 96 public void setPreFilterCap(int preFilterCap) 97 { 98 99 setPreFilterCap_0(nativeObj, preFilterCap); 100 101 return; 102 } 103 104 105 // 106 // C++: int getTextureThreshold() 107 // 108 109 //javadoc: StereoBM::getTextureThreshold() 110 public int getTextureThreshold() 111 { 112 113 int retVal = getTextureThreshold_0(nativeObj); 114 115 return retVal; 116 } 117 118 119 // 120 // C++: void setTextureThreshold(int textureThreshold) 121 // 122 123 //javadoc: StereoBM::setTextureThreshold(textureThreshold) 124 public void setTextureThreshold(int textureThreshold) 125 { 126 127 setTextureThreshold_0(nativeObj, textureThreshold); 128 129 return; 130 } 131 132 133 // 134 // C++: int getUniquenessRatio() 135 // 136 137 //javadoc: StereoBM::getUniquenessRatio() 138 public int getUniquenessRatio() 139 { 140 141 int retVal = getUniquenessRatio_0(nativeObj); 142 143 return retVal; 144 } 145 146 147 // 148 // C++: void setUniquenessRatio(int uniquenessRatio) 149 // 150 151 //javadoc: StereoBM::setUniquenessRatio(uniquenessRatio) 152 public void setUniquenessRatio(int uniquenessRatio) 153 { 154 155 setUniquenessRatio_0(nativeObj, uniquenessRatio); 156 157 return; 158 } 159 160 161 // 162 // C++: int getSmallerBlockSize() 163 // 164 165 //javadoc: StereoBM::getSmallerBlockSize() 166 public int getSmallerBlockSize() 167 { 168 169 int retVal = getSmallerBlockSize_0(nativeObj); 170 171 return retVal; 172 } 173 174 175 // 176 // C++: void setSmallerBlockSize(int blockSize) 177 // 178 179 //javadoc: StereoBM::setSmallerBlockSize(blockSize) 180 public void setSmallerBlockSize(int blockSize) 181 { 182 183 setSmallerBlockSize_0(nativeObj, blockSize); 184 185 return; 186 } 187 188 189 // 190 // C++: Rect getROI1() 191 // 192 193 //javadoc: StereoBM::getROI1() 194 public Rect getROI1() 195 { 196 197 Rect retVal = new Rect(getROI1_0(nativeObj)); 198 199 return retVal; 200 } 201 202 203 // 204 // C++: void setROI1(Rect roi1) 205 // 206 207 //javadoc: StereoBM::setROI1(roi1) 208 public void setROI1(Rect roi1) 209 { 210 211 setROI1_0(nativeObj, roi1.x, roi1.y, roi1.width, roi1.height); 212 213 return; 214 } 215 216 217 // 218 // C++: Rect getROI2() 219 // 220 221 //javadoc: StereoBM::getROI2() 222 public Rect getROI2() 223 { 224 225 Rect retVal = new Rect(getROI2_0(nativeObj)); 226 227 return retVal; 228 } 229 230 231 // 232 // C++: void setROI2(Rect roi2) 233 // 234 235 //javadoc: StereoBM::setROI2(roi2) 236 public void setROI2(Rect roi2) 237 { 238 239 setROI2_0(nativeObj, roi2.x, roi2.y, roi2.width, roi2.height); 240 241 return; 242 } 243 244 245 // 246 // C++: static Ptr_StereoBM create(int numDisparities = 0, int blockSize = 21) 247 // 248 249 //javadoc: StereoBM::create(numDisparities, blockSize) 250 public static StereoBM create(int numDisparities, int blockSize) 251 { 252 253 StereoBM retVal = new StereoBM(create_0(numDisparities, blockSize)); 254 255 return retVal; 256 } 257 258 //javadoc: StereoBM::create() 259 public static StereoBM create() 260 { 261 262 StereoBM retVal = new StereoBM(create_1()); 263 264 return retVal; 265 } 266 267 268 @Override 269 protected void finalize() throws Throwable { 270 delete(nativeObj); 271 } 272 273 274 275 // C++: int getPreFilterType() 276 private static native int getPreFilterType_0(long nativeObj); 277 278 // C++: void setPreFilterType(int preFilterType) 279 private static native void setPreFilterType_0(long nativeObj, int preFilterType); 280 281 // C++: int getPreFilterSize() 282 private static native int getPreFilterSize_0(long nativeObj); 283 284 // C++: void setPreFilterSize(int preFilterSize) 285 private static native void setPreFilterSize_0(long nativeObj, int preFilterSize); 286 287 // C++: int getPreFilterCap() 288 private static native int getPreFilterCap_0(long nativeObj); 289 290 // C++: void setPreFilterCap(int preFilterCap) 291 private static native void setPreFilterCap_0(long nativeObj, int preFilterCap); 292 293 // C++: int getTextureThreshold() 294 private static native int getTextureThreshold_0(long nativeObj); 295 296 // C++: void setTextureThreshold(int textureThreshold) 297 private static native void setTextureThreshold_0(long nativeObj, int textureThreshold); 298 299 // C++: int getUniquenessRatio() 300 private static native int getUniquenessRatio_0(long nativeObj); 301 302 // C++: void setUniquenessRatio(int uniquenessRatio) 303 private static native void setUniquenessRatio_0(long nativeObj, int uniquenessRatio); 304 305 // C++: int getSmallerBlockSize() 306 private static native int getSmallerBlockSize_0(long nativeObj); 307 308 // C++: void setSmallerBlockSize(int blockSize) 309 private static native void setSmallerBlockSize_0(long nativeObj, int blockSize); 310 311 // C++: Rect getROI1() 312 private static native double[] getROI1_0(long nativeObj); 313 314 // C++: void setROI1(Rect roi1) 315 private static native void setROI1_0(long nativeObj, int roi1_x, int roi1_y, int roi1_width, int roi1_height); 316 317 // C++: Rect getROI2() 318 private static native double[] getROI2_0(long nativeObj); 319 320 // C++: void setROI2(Rect roi2) 321 private static native void setROI2_0(long nativeObj, int roi2_x, int roi2_y, int roi2_width, int roi2_height); 322 323 // C++: static Ptr_StereoBM create(int numDisparities = 0, int blockSize = 21) 324 private static native long create_0(int numDisparities, int blockSize); 325 private static native long create_1(); 326 327 // native support for java finalize() 328 private static native void delete(long nativeObj); 329 330 } 331