@Namespace(value="cv") @Properties(inherit=opencv_calib3d.class) public class StereoBM extends StereoMatcher
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
PREFILTER_NORMALIZED_RESPONSE
enum cv::StereoBM::
|
static int |
PREFILTER_XSOBEL
enum cv::StereoBM::
|
DISP_SCALE, DISP_SHIFT
Constructor and Description |
---|
StereoBM(Algorithm pointer)
Downcast constructor.
|
StereoBM(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static StereoBM |
create() |
static StereoBM |
create(int numDisparities,
int blockSize)
\brief Creates StereoBM object
|
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) |
asAlgorithm, asAlgorithm, compute, compute, compute, getBlockSize, getDisp12MaxDiff, getMinDisparity, getNumDisparities, getSpeckleRange, getSpeckleWindowSize, setBlockSize, setDisp12MaxDiff, setMinDisparity, setNumDisparities, setSpeckleRange, setSpeckleWindowSize
clear, empty, getDefaultName, getPointer, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public static final int PREFILTER_NORMALIZED_RESPONSE
public static final int PREFILTER_XSOBEL
public StereoBM(Pointer p)
Pointer(Pointer)
.public StereoBM(Algorithm pointer)
public int getPreFilterType()
public void setPreFilterType(int preFilterType)
public int getPreFilterSize()
public void setPreFilterSize(int preFilterSize)
public int getPreFilterCap()
public void setPreFilterCap(int preFilterCap)
public int getTextureThreshold()
public void setTextureThreshold(int textureThreshold)
public int getUniquenessRatio()
public void setUniquenessRatio(int uniquenessRatio)
public int getSmallerBlockSize()
public void setSmallerBlockSize(int blockSize)
@opencv_core.Ptr 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.
@opencv_core.Ptr public static StereoBM create()
Copyright © 2024. All rights reserved.