• 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 
8 
9 // C++: class StereoSGBM
10 //javadoc: StereoSGBM
11 public class StereoSGBM extends StereoMatcher {
12 
StereoSGBM(long addr)13     protected StereoSGBM(long addr) { super(addr); }
14 
15 
16     public static final int
17             MODE_SGBM = 0,
18             MODE_HH = 1;
19 
20 
21     //
22     // C++:  int getPreFilterCap()
23     //
24 
25     //javadoc: StereoSGBM::getPreFilterCap()
getPreFilterCap()26     public  int getPreFilterCap()
27     {
28 
29         int retVal = getPreFilterCap_0(nativeObj);
30 
31         return retVal;
32     }
33 
34 
35     //
36     // C++:  void setPreFilterCap(int preFilterCap)
37     //
38 
39     //javadoc: StereoSGBM::setPreFilterCap(preFilterCap)
setPreFilterCap(int preFilterCap)40     public  void setPreFilterCap(int preFilterCap)
41     {
42 
43         setPreFilterCap_0(nativeObj, preFilterCap);
44 
45         return;
46     }
47 
48 
49     //
50     // C++:  int getUniquenessRatio()
51     //
52 
53     //javadoc: StereoSGBM::getUniquenessRatio()
getUniquenessRatio()54     public  int getUniquenessRatio()
55     {
56 
57         int retVal = getUniquenessRatio_0(nativeObj);
58 
59         return retVal;
60     }
61 
62 
63     //
64     // C++:  void setUniquenessRatio(int uniquenessRatio)
65     //
66 
67     //javadoc: StereoSGBM::setUniquenessRatio(uniquenessRatio)
setUniquenessRatio(int uniquenessRatio)68     public  void setUniquenessRatio(int uniquenessRatio)
69     {
70 
71         setUniquenessRatio_0(nativeObj, uniquenessRatio);
72 
73         return;
74     }
75 
76 
77     //
78     // C++:  int getP1()
79     //
80 
81     //javadoc: StereoSGBM::getP1()
getP1()82     public  int getP1()
83     {
84 
85         int retVal = getP1_0(nativeObj);
86 
87         return retVal;
88     }
89 
90 
91     //
92     // C++:  void setP1(int P1)
93     //
94 
95     //javadoc: StereoSGBM::setP1(P1)
setP1(int P1)96     public  void setP1(int P1)
97     {
98 
99         setP1_0(nativeObj, P1);
100 
101         return;
102     }
103 
104 
105     //
106     // C++:  int getP2()
107     //
108 
109     //javadoc: StereoSGBM::getP2()
getP2()110     public  int getP2()
111     {
112 
113         int retVal = getP2_0(nativeObj);
114 
115         return retVal;
116     }
117 
118 
119     //
120     // C++:  void setP2(int P2)
121     //
122 
123     //javadoc: StereoSGBM::setP2(P2)
setP2(int P2)124     public  void setP2(int P2)
125     {
126 
127         setP2_0(nativeObj, P2);
128 
129         return;
130     }
131 
132 
133     //
134     // C++:  int getMode()
135     //
136 
137     //javadoc: StereoSGBM::getMode()
getMode()138     public  int getMode()
139     {
140 
141         int retVal = getMode_0(nativeObj);
142 
143         return retVal;
144     }
145 
146 
147     //
148     // C++:  void setMode(int mode)
149     //
150 
151     //javadoc: StereoSGBM::setMode(mode)
setMode(int mode)152     public  void setMode(int mode)
153     {
154 
155         setMode_0(nativeObj, mode);
156 
157         return;
158     }
159 
160 
161     //
162     // C++: static Ptr_StereoSGBM create(int minDisparity, int numDisparities, int blockSize, int P1 = 0, int P2 = 0, int disp12MaxDiff = 0, int preFilterCap = 0, int uniquenessRatio = 0, int speckleWindowSize = 0, int speckleRange = 0, int mode = StereoSGBM::MODE_SGBM)
163     //
164 
165     //javadoc: StereoSGBM::create(minDisparity, numDisparities, blockSize, P1, P2, disp12MaxDiff, preFilterCap, uniquenessRatio, speckleWindowSize, speckleRange, mode)
create(int minDisparity, int numDisparities, int blockSize, int P1, int P2, int disp12MaxDiff, int preFilterCap, int uniquenessRatio, int speckleWindowSize, int speckleRange, int mode)166     public static StereoSGBM create(int minDisparity, int numDisparities, int blockSize, int P1, int P2, int disp12MaxDiff, int preFilterCap, int uniquenessRatio, int speckleWindowSize, int speckleRange, int mode)
167     {
168 
169         StereoSGBM retVal = new StereoSGBM(create_0(minDisparity, numDisparities, blockSize, P1, P2, disp12MaxDiff, preFilterCap, uniquenessRatio, speckleWindowSize, speckleRange, mode));
170 
171         return retVal;
172     }
173 
174     //javadoc: StereoSGBM::create(minDisparity, numDisparities, blockSize)
create(int minDisparity, int numDisparities, int blockSize)175     public static StereoSGBM create(int minDisparity, int numDisparities, int blockSize)
176     {
177 
178         StereoSGBM retVal = new StereoSGBM(create_1(minDisparity, numDisparities, blockSize));
179 
180         return retVal;
181     }
182 
183 
184     @Override
finalize()185     protected void finalize() throws Throwable {
186         delete(nativeObj);
187     }
188 
189 
190 
191     // C++:  int getPreFilterCap()
getPreFilterCap_0(long nativeObj)192     private static native int getPreFilterCap_0(long nativeObj);
193 
194     // C++:  void setPreFilterCap(int preFilterCap)
setPreFilterCap_0(long nativeObj, int preFilterCap)195     private static native void setPreFilterCap_0(long nativeObj, int preFilterCap);
196 
197     // C++:  int getUniquenessRatio()
getUniquenessRatio_0(long nativeObj)198     private static native int getUniquenessRatio_0(long nativeObj);
199 
200     // C++:  void setUniquenessRatio(int uniquenessRatio)
setUniquenessRatio_0(long nativeObj, int uniquenessRatio)201     private static native void setUniquenessRatio_0(long nativeObj, int uniquenessRatio);
202 
203     // C++:  int getP1()
getP1_0(long nativeObj)204     private static native int getP1_0(long nativeObj);
205 
206     // C++:  void setP1(int P1)
setP1_0(long nativeObj, int P1)207     private static native void setP1_0(long nativeObj, int P1);
208 
209     // C++:  int getP2()
getP2_0(long nativeObj)210     private static native int getP2_0(long nativeObj);
211 
212     // C++:  void setP2(int P2)
setP2_0(long nativeObj, int P2)213     private static native void setP2_0(long nativeObj, int P2);
214 
215     // C++:  int getMode()
getMode_0(long nativeObj)216     private static native int getMode_0(long nativeObj);
217 
218     // C++:  void setMode(int mode)
setMode_0(long nativeObj, int mode)219     private static native void setMode_0(long nativeObj, int mode);
220 
221     // C++: static Ptr_StereoSGBM create(int minDisparity, int numDisparities, int blockSize, int P1 = 0, int P2 = 0, int disp12MaxDiff = 0, int preFilterCap = 0, int uniquenessRatio = 0, int speckleWindowSize = 0, int speckleRange = 0, int mode = StereoSGBM::MODE_SGBM)
create_0(int minDisparity, int numDisparities, int blockSize, int P1, int P2, int disp12MaxDiff, int preFilterCap, int uniquenessRatio, int speckleWindowSize, int speckleRange, int mode)222     private static native long create_0(int minDisparity, int numDisparities, int blockSize, int P1, int P2, int disp12MaxDiff, int preFilterCap, int uniquenessRatio, int speckleWindowSize, int speckleRange, int mode);
create_1(int minDisparity, int numDisparities, int blockSize)223     private static native long create_1(int minDisparity, int numDisparities, int blockSize);
224 
225     // native support for java finalize()
delete(long nativeObj)226     private static native void delete(long nativeObj);
227 
228 }
229