public class StereoBM extends StereoMatcher
Modifier and Type | Field and Description |
---|---|
static int |
PREFILTER_NORMALIZED_RESPONSE |
static int |
PREFILTER_XSOBEL |
DISP_SCALE, DISP_SHIFT
Modifier | Constructor and Description |
---|---|
protected |
StereoBM(long addr) |
Modifier and Type | Method and Description |
---|---|
static 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 object
|
static StereoBM |
create(int numDisparities,
int blockSize)
Creates StereoBM object
|
protected void |
finalize() |
int |
getPreFilterCap() |
int |
getPreFilterSize() |
int |
getPreFilterType() |
Rect |
getROI1() |
Rect |
getROI2() |
int |
getSmallerBlockSize() |
int |
getTextureThreshold() |
int |
getUniquenessRatio() |
void |
setPreFilterCap(int preFilterCap) |
void |
setPreFilterSize(int preFilterSize) |
void |
setPreFilterType(int preFilterType) |
void |
setROI1(Rect roi1) |
void |
setROI2(Rect roi2) |
void |
setSmallerBlockSize(int blockSize) |
void |
setTextureThreshold(int textureThreshold) |
void |
setUniquenessRatio(int uniquenessRatio) |
compute, getBlockSize, getDisp12MaxDiff, getMinDisparity, getNumDisparities, getSpeckleRange, getSpeckleWindowSize, setBlockSize, setDisp12MaxDiff, setMinDisparity, setNumDisparities, setSpeckleRange, setSpeckleWindowSize
clear, empty, getDefaultName, getNativeObjAddr, save
public static final int PREFILTER_NORMALIZED_RESPONSE
public static final int PREFILTER_XSOBEL
public static StereoBM __fromPtr__(long addr)
public static StereoBM create(int numDisparities, int blockSize)
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.public static StereoBM create(int numDisparities)
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.public static StereoBM create()
public Rect getROI1()
public Rect getROI2()
public int getPreFilterCap()
public int getPreFilterSize()
public int getPreFilterType()
public int getSmallerBlockSize()
public int getTextureThreshold()
public int getUniquenessRatio()
public void setPreFilterCap(int preFilterCap)
public void setPreFilterSize(int preFilterSize)
public void setPreFilterType(int preFilterType)
public void setROI1(Rect roi1)
public void setROI2(Rect roi2)
public void setSmallerBlockSize(int blockSize)
public void setTextureThreshold(int textureThreshold)
public void setUniquenessRatio(int uniquenessRatio)
protected void finalize() throws Throwable
finalize
in class StereoMatcher
Throwable
Copyright © 2020. All rights reserved.