Package org.opencv.calib3d
Class StereoBM
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.calib3d.StereoMatcher
- 
- org.opencv.calib3d.StereoBM
 
 
 
- 
 public class StereoBM extends StereoMatcher Class for computing stereo correspondence using the block matching algorithm, introduced and contributed to OpenCV by K. Konolige.
- 
- 
Field SummaryFields Modifier and Type Field Description static intPREFILTER_NORMALIZED_RESPONSEstatic intPREFILTER_XSOBEL- 
Fields inherited from class org.opencv.calib3d.StereoMatcherDISP_SCALE, DISP_SHIFT
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedStereoBM(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StereoBM__fromPtr__(long addr)static StereoBMcreate()Creates StereoBM object disparity from 0 (default minimum disparity) to numDisparities.static StereoBMcreate(int numDisparities)Creates StereoBM objectstatic StereoBMcreate(int numDisparities, int blockSize)Creates StereoBM objectprotected voidfinalize()intgetPreFilterCap()intgetPreFilterSize()intgetPreFilterType()RectgetROI1()RectgetROI2()intgetSmallerBlockSize()intgetTextureThreshold()intgetUniquenessRatio()voidsetPreFilterCap(int preFilterCap)voidsetPreFilterSize(int preFilterSize)voidsetPreFilterType(int preFilterType)voidsetROI1(Rect roi1)voidsetROI2(Rect roi2)voidsetSmallerBlockSize(int blockSize)voidsetTextureThreshold(int textureThreshold)voidsetUniquenessRatio(int uniquenessRatio)- 
Methods inherited from class org.opencv.calib3d.StereoMatchercompute, getBlockSize, getDisp12MaxDiff, getMinDisparity, getNumDisparities, getSpeckleRange, getSpeckleWindowSize, setBlockSize, setDisp12MaxDiff, setMinDisparity, setNumDisparities, setSpeckleRange, setSpeckleWindowSize
 - 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Field Detail- 
PREFILTER_NORMALIZED_RESPONSEpublic static final int PREFILTER_NORMALIZED_RESPONSE - See Also:
- Constant Field Values
 
 - 
PREFILTER_XSOBELpublic static final int PREFILTER_XSOBEL - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
__fromPtr__public static StereoBM __fromPtr__(long addr) 
 - 
getPreFilterTypepublic int getPreFilterType() 
 - 
setPreFilterTypepublic void setPreFilterType(int preFilterType) 
 - 
getPreFilterSizepublic int getPreFilterSize() 
 - 
setPreFilterSizepublic void setPreFilterSize(int preFilterSize) 
 - 
getPreFilterCappublic int getPreFilterCap() 
 - 
setPreFilterCappublic void setPreFilterCap(int preFilterCap) 
 - 
getTextureThresholdpublic int getTextureThreshold() 
 - 
setTextureThresholdpublic void setTextureThreshold(int textureThreshold) 
 - 
getUniquenessRatiopublic int getUniquenessRatio() 
 - 
setUniquenessRatiopublic void setUniquenessRatio(int uniquenessRatio) 
 - 
getSmallerBlockSizepublic int getSmallerBlockSize() 
 - 
setSmallerBlockSizepublic void setSmallerBlockSize(int blockSize) 
 - 
getROI1public Rect getROI1() 
 - 
setROI1public void setROI1(Rect roi1) 
 - 
getROI2public Rect getROI2() 
 - 
setROI2public void setROI2(Rect roi2) 
 - 
createpublic static StereoBM create(int numDisparities, int blockSize) Creates StereoBM object- Parameters:
- numDisparities- the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity.
- blockSize- the linear size of the blocks compared by the algorithm. The size should be odd (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence. The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for a specific stereo pair.
- Returns:
- automatically generated
 
 - 
createpublic static StereoBM create(int numDisparities) Creates StereoBM object- Parameters:
- numDisparities- the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity. (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence. The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for a specific stereo pair.
- Returns:
- automatically generated
 
 - 
createpublic static StereoBM create() Creates StereoBM object disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity. (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence. The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for a specific stereo pair.- Returns:
- automatically generated
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- StereoMatcher
- Throws:
- java.lang.Throwable
 
 
- 
 
-