001
002//
003// This file is auto-generated. Please don't modify it!
004//
005package org.opencv.calib3d;
006
007import org.opencv.core.Algorithm;
008import org.opencv.core.Mat;
009
010// C++: class StereoMatcher
011//javadoc: StereoMatcher
012public class StereoMatcher extends Algorithm {
013
014    protected StereoMatcher(long addr) { super(addr); }
015
016
017    public static final int
018            DISP_SHIFT = 4,
019            DISP_SCALE = (1 << DISP_SHIFT);
020
021
022    //
023    // C++:  int getBlockSize()
024    //
025
026    //javadoc: StereoMatcher::getBlockSize()
027    public  int getBlockSize()
028    {
029        
030        int retVal = getBlockSize_0(nativeObj);
031        
032        return retVal;
033    }
034
035
036    //
037    // C++:  int getDisp12MaxDiff()
038    //
039
040    //javadoc: StereoMatcher::getDisp12MaxDiff()
041    public  int getDisp12MaxDiff()
042    {
043        
044        int retVal = getDisp12MaxDiff_0(nativeObj);
045        
046        return retVal;
047    }
048
049
050    //
051    // C++:  int getMinDisparity()
052    //
053
054    //javadoc: StereoMatcher::getMinDisparity()
055    public  int getMinDisparity()
056    {
057        
058        int retVal = getMinDisparity_0(nativeObj);
059        
060        return retVal;
061    }
062
063
064    //
065    // C++:  int getNumDisparities()
066    //
067
068    //javadoc: StereoMatcher::getNumDisparities()
069    public  int getNumDisparities()
070    {
071        
072        int retVal = getNumDisparities_0(nativeObj);
073        
074        return retVal;
075    }
076
077
078    //
079    // C++:  int getSpeckleRange()
080    //
081
082    //javadoc: StereoMatcher::getSpeckleRange()
083    public  int getSpeckleRange()
084    {
085        
086        int retVal = getSpeckleRange_0(nativeObj);
087        
088        return retVal;
089    }
090
091
092    //
093    // C++:  int getSpeckleWindowSize()
094    //
095
096    //javadoc: StereoMatcher::getSpeckleWindowSize()
097    public  int getSpeckleWindowSize()
098    {
099        
100        int retVal = getSpeckleWindowSize_0(nativeObj);
101        
102        return retVal;
103    }
104
105
106    //
107    // C++:  void compute(Mat left, Mat right, Mat& disparity)
108    //
109
110    //javadoc: StereoMatcher::compute(left, right, disparity)
111    public  void compute(Mat left, Mat right, Mat disparity)
112    {
113        
114        compute_0(nativeObj, left.nativeObj, right.nativeObj, disparity.nativeObj);
115        
116        return;
117    }
118
119
120    //
121    // C++:  void setBlockSize(int blockSize)
122    //
123
124    //javadoc: StereoMatcher::setBlockSize(blockSize)
125    public  void setBlockSize(int blockSize)
126    {
127        
128        setBlockSize_0(nativeObj, blockSize);
129        
130        return;
131    }
132
133
134    //
135    // C++:  void setDisp12MaxDiff(int disp12MaxDiff)
136    //
137
138    //javadoc: StereoMatcher::setDisp12MaxDiff(disp12MaxDiff)
139    public  void setDisp12MaxDiff(int disp12MaxDiff)
140    {
141        
142        setDisp12MaxDiff_0(nativeObj, disp12MaxDiff);
143        
144        return;
145    }
146
147
148    //
149    // C++:  void setMinDisparity(int minDisparity)
150    //
151
152    //javadoc: StereoMatcher::setMinDisparity(minDisparity)
153    public  void setMinDisparity(int minDisparity)
154    {
155        
156        setMinDisparity_0(nativeObj, minDisparity);
157        
158        return;
159    }
160
161
162    //
163    // C++:  void setNumDisparities(int numDisparities)
164    //
165
166    //javadoc: StereoMatcher::setNumDisparities(numDisparities)
167    public  void setNumDisparities(int numDisparities)
168    {
169        
170        setNumDisparities_0(nativeObj, numDisparities);
171        
172        return;
173    }
174
175
176    //
177    // C++:  void setSpeckleRange(int speckleRange)
178    //
179
180    //javadoc: StereoMatcher::setSpeckleRange(speckleRange)
181    public  void setSpeckleRange(int speckleRange)
182    {
183        
184        setSpeckleRange_0(nativeObj, speckleRange);
185        
186        return;
187    }
188
189
190    //
191    // C++:  void setSpeckleWindowSize(int speckleWindowSize)
192    //
193
194    //javadoc: StereoMatcher::setSpeckleWindowSize(speckleWindowSize)
195    public  void setSpeckleWindowSize(int speckleWindowSize)
196    {
197        
198        setSpeckleWindowSize_0(nativeObj, speckleWindowSize);
199        
200        return;
201    }
202
203
204    @Override
205    protected void finalize() throws Throwable {
206        delete(nativeObj);
207    }
208
209
210
211    // C++:  int getBlockSize()
212    private static native int getBlockSize_0(long nativeObj);
213
214    // C++:  int getDisp12MaxDiff()
215    private static native int getDisp12MaxDiff_0(long nativeObj);
216
217    // C++:  int getMinDisparity()
218    private static native int getMinDisparity_0(long nativeObj);
219
220    // C++:  int getNumDisparities()
221    private static native int getNumDisparities_0(long nativeObj);
222
223    // C++:  int getSpeckleRange()
224    private static native int getSpeckleRange_0(long nativeObj);
225
226    // C++:  int getSpeckleWindowSize()
227    private static native int getSpeckleWindowSize_0(long nativeObj);
228
229    // C++:  void compute(Mat left, Mat right, Mat& disparity)
230    private static native void compute_0(long nativeObj, long left_nativeObj, long right_nativeObj, long disparity_nativeObj);
231
232    // C++:  void setBlockSize(int blockSize)
233    private static native void setBlockSize_0(long nativeObj, int blockSize);
234
235    // C++:  void setDisp12MaxDiff(int disp12MaxDiff)
236    private static native void setDisp12MaxDiff_0(long nativeObj, int disp12MaxDiff);
237
238    // C++:  void setMinDisparity(int minDisparity)
239    private static native void setMinDisparity_0(long nativeObj, int minDisparity);
240
241    // C++:  void setNumDisparities(int numDisparities)
242    private static native void setNumDisparities_0(long nativeObj, int numDisparities);
243
244    // C++:  void setSpeckleRange(int speckleRange)
245    private static native void setSpeckleRange_0(long nativeObj, int speckleRange);
246
247    // C++:  void setSpeckleWindowSize(int speckleWindowSize)
248    private static native void setSpeckleWindowSize_0(long nativeObj, int speckleWindowSize);
249
250    // native support for java finalize()
251    private static native void delete(long nativeObj);
252
253}