• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
StereoBM(long addr)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()
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)
setPreFilterType(int 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()
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)
setPreFilterSize(int 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()
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)
setPreFilterCap(int 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()
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)
setTextureThreshold(int 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()
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)
setUniquenessRatio(int 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()
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)
setSmallerBlockSize(int 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()
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)
setROI1(Rect 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()
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)
setROI2(Rect 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)
create(int numDisparities, int 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()
create()259     public static StereoBM create()
260     {
261 
262         StereoBM retVal = new StereoBM(create_1());
263 
264         return retVal;
265     }
266 
267 
268     @Override
finalize()269     protected void finalize() throws Throwable {
270         delete(nativeObj);
271     }
272 
273 
274 
275     // C++:  int getPreFilterType()
getPreFilterType_0(long nativeObj)276     private static native int getPreFilterType_0(long nativeObj);
277 
278     // C++:  void setPreFilterType(int preFilterType)
setPreFilterType_0(long nativeObj, int preFilterType)279     private static native void setPreFilterType_0(long nativeObj, int preFilterType);
280 
281     // C++:  int getPreFilterSize()
getPreFilterSize_0(long nativeObj)282     private static native int getPreFilterSize_0(long nativeObj);
283 
284     // C++:  void setPreFilterSize(int preFilterSize)
setPreFilterSize_0(long nativeObj, int preFilterSize)285     private static native void setPreFilterSize_0(long nativeObj, int preFilterSize);
286 
287     // C++:  int getPreFilterCap()
getPreFilterCap_0(long nativeObj)288     private static native int getPreFilterCap_0(long nativeObj);
289 
290     // C++:  void setPreFilterCap(int preFilterCap)
setPreFilterCap_0(long nativeObj, int preFilterCap)291     private static native void setPreFilterCap_0(long nativeObj, int preFilterCap);
292 
293     // C++:  int getTextureThreshold()
getTextureThreshold_0(long nativeObj)294     private static native int getTextureThreshold_0(long nativeObj);
295 
296     // C++:  void setTextureThreshold(int textureThreshold)
setTextureThreshold_0(long nativeObj, int textureThreshold)297     private static native void setTextureThreshold_0(long nativeObj, int textureThreshold);
298 
299     // C++:  int getUniquenessRatio()
getUniquenessRatio_0(long nativeObj)300     private static native int getUniquenessRatio_0(long nativeObj);
301 
302     // C++:  void setUniquenessRatio(int uniquenessRatio)
setUniquenessRatio_0(long nativeObj, int uniquenessRatio)303     private static native void setUniquenessRatio_0(long nativeObj, int uniquenessRatio);
304 
305     // C++:  int getSmallerBlockSize()
getSmallerBlockSize_0(long nativeObj)306     private static native int getSmallerBlockSize_0(long nativeObj);
307 
308     // C++:  void setSmallerBlockSize(int blockSize)
setSmallerBlockSize_0(long nativeObj, int blockSize)309     private static native void setSmallerBlockSize_0(long nativeObj, int blockSize);
310 
311     // C++:  Rect getROI1()
getROI1_0(long nativeObj)312     private static native double[] getROI1_0(long nativeObj);
313 
314     // C++:  void setROI1(Rect roi1)
setROI1_0(long nativeObj, int roi1_x, int roi1_y, int roi1_width, int roi1_height)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()
getROI2_0(long nativeObj)318     private static native double[] getROI2_0(long nativeObj);
319 
320     // C++:  void setROI2(Rect roi2)
setROI2_0(long nativeObj, int roi2_x, int roi2_y, int roi2_width, int roi2_height)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)
create_0(int numDisparities, int blockSize)324     private static native long create_0(int numDisparities, int blockSize);
create_1()325     private static native long create_1();
326 
327     // native support for java finalize()
delete(long nativeObj)328     private static native void delete(long nativeObj);
329 
330 }
331