@Namespace(value="cv") @Properties(inherit=opencv_calib3d.class) public class StereoMatcher extends Algorithm
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
DISP_SCALE
enum cv::StereoMatcher::
|
static int |
DISP_SHIFT
enum cv::StereoMatcher::
|
Constructor and Description |
---|
StereoMatcher(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
compute(GpuMat left,
GpuMat right,
GpuMat disparity) |
void |
compute(Mat left,
Mat right,
Mat disparity)
\brief Computes disparity map for the specified stereo pair
|
void |
compute(UMat left,
UMat right,
UMat disparity) |
int |
getBlockSize() |
int |
getDisp12MaxDiff() |
int |
getMinDisparity() |
int |
getNumDisparities() |
int |
getSpeckleRange() |
int |
getSpeckleWindowSize() |
void |
setBlockSize(int blockSize) |
void |
setDisp12MaxDiff(int disp12MaxDiff) |
void |
setMinDisparity(int minDisparity) |
void |
setNumDisparities(int numDisparities) |
void |
setSpeckleRange(int speckleRange) |
void |
setSpeckleWindowSize(int speckleWindowSize) |
clear, empty, getDefaultName, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public static final int DISP_SHIFT
public static final int DISP_SCALE
public StereoMatcher(Pointer p)
Pointer.Pointer(Pointer)
.public void compute(@ByVal Mat left, @ByVal Mat right, @ByVal Mat disparity)
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.public int getMinDisparity()
public void setMinDisparity(int minDisparity)
public int getNumDisparities()
public void setNumDisparities(int numDisparities)
public int getBlockSize()
public void setBlockSize(int blockSize)
public int getSpeckleWindowSize()
public void setSpeckleWindowSize(int speckleWindowSize)
public int getSpeckleRange()
public void setSpeckleRange(int speckleRange)
public int getDisp12MaxDiff()
public void setDisp12MaxDiff(int disp12MaxDiff)
Copyright © 2020. All rights reserved.