Package org.opencv.calib3d
Class StereoBM
java.lang.Object
org.opencv.core.Algorithm
org.opencv.calib3d.StereoMatcher
org.opencv.calib3d.StereoBM
Class for computing stereo correspondence using the block matching algorithm, introduced and
contributed to OpenCV by K. Konolige.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
Fields inherited from class org.opencv.calib3d.StereoMatcher
DISP_SCALE, DISP_SHIFT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StereoBM
__fromPtr__
(long addr) static StereoBM
create()
Creates StereoBM object disparity from 0 (default minimum disparity) to numDisparities.static StereoBM
create
(int numDisparities) Creates StereoBM objectstatic StereoBM
create
(int numDisparities, int blockSize) Creates StereoBM objectprotected void
finalize()
int
int
int
getROI1()
getROI2()
int
int
int
void
setPreFilterCap
(int preFilterCap) void
setPreFilterSize
(int preFilterSize) void
setPreFilterType
(int preFilterType) void
void
void
setSmallerBlockSize
(int blockSize) void
setTextureThreshold
(int textureThreshold) void
setUniquenessRatio
(int uniquenessRatio) Methods inherited from class org.opencv.calib3d.StereoMatcher
compute, getBlockSize, getDisp12MaxDiff, getMinDisparity, getNumDisparities, getSpeckleRange, getSpeckleWindowSize, setBlockSize, setDisp12MaxDiff, setMinDisparity, setNumDisparities, setSpeckleRange, setSpeckleWindowSize
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Field Details
-
PREFILTER_NORMALIZED_RESPONSE
public static final int PREFILTER_NORMALIZED_RESPONSE- See Also:
-
PREFILTER_XSOBEL
public static final int PREFILTER_XSOBEL- See Also:
-
-
Constructor Details
-
StereoBM
protected StereoBM(long addr)
-
-
Method Details
-
__fromPtr__
-
getPreFilterType
public int getPreFilterType() -
setPreFilterType
public void setPreFilterType(int preFilterType) -
getPreFilterSize
public int getPreFilterSize() -
setPreFilterSize
public void setPreFilterSize(int preFilterSize) -
getPreFilterCap
public int getPreFilterCap() -
setPreFilterCap
public void setPreFilterCap(int preFilterCap) -
getTextureThreshold
public int getTextureThreshold() -
setTextureThreshold
public void setTextureThreshold(int textureThreshold) -
getUniquenessRatio
public int getUniquenessRatio() -
setUniquenessRatio
public void setUniquenessRatio(int uniquenessRatio) -
getSmallerBlockSize
public int getSmallerBlockSize() -
setSmallerBlockSize
public void setSmallerBlockSize(int blockSize) -
getROI1
-
setROI1
-
getROI2
-
setROI2
-
create
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
-
create
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
-
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
-
finalize
- Overrides:
finalize
in classStereoMatcher
- Throws:
Throwable
-