Package org.opencv.calib3d
Class StereoMatcher
java.lang.Object
org.opencv.core.Algorithm
org.opencv.calib3d.StereoMatcher
- Direct Known Subclasses:
StereoBM,StereoSGBM
public class StereoMatcher extends Algorithm
The base class for stereo correspondence algorithms.
-
Field Summary
Fields Modifier and Type Field Description static intDISP_SCALEstatic intDISP_SHIFT -
Constructor Summary
Constructors Modifier Constructor Description protectedStereoMatcher(long addr) -
Method Summary
Modifier and Type Method Description static StereoMatcher__fromPtr__(long addr)voidcompute(Mat left, Mat right, Mat disparity)Computes disparity map for the specified stereo pairprotected voidfinalize()intgetBlockSize()intgetDisp12MaxDiff()intgetMinDisparity()intgetNumDisparities()intgetSpeckleRange()intgetSpeckleWindowSize()voidsetBlockSize(int blockSize)voidsetDisp12MaxDiff(int disp12MaxDiff)voidsetMinDisparity(int minDisparity)voidsetNumDisparities(int numDisparities)voidsetSpeckleRange(int speckleRange)voidsetSpeckleWindowSize(int speckleWindowSize)Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Field Details
-
DISP_SHIFT
- See Also:
- Constant Field Values
-
DISP_SCALE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
__fromPtr__
-
compute
Computes disparity map for the specified stereo pair- Parameters:
left- Left 8-bit single-channel image.right- Right image of the same size and the same type as the left one.disparity- Output disparity map. It has the same size as the input images. Some algorithms, like StereoBM or StereoSGBM compute 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits), whereas other algorithms output 32-bit floating-point disparity map.
-
getMinDisparity
-
setMinDisparity
-
getNumDisparities
-
setNumDisparities
-
getBlockSize
-
setBlockSize
-
getSpeckleWindowSize
-
setSpeckleWindowSize
-
getSpeckleRange
-
setSpeckleRange
-
getDisp12MaxDiff
-
setDisp12MaxDiff
-
finalize
-