public class StereoMatcher extends Algorithm
| Modifier and Type | Field and Description |
|---|---|
static int |
DISP_SCALE |
static int |
DISP_SHIFT |
| Modifier | Constructor and Description |
|---|---|
protected |
StereoMatcher(long addr) |
| Modifier and Type | Method and Description |
|---|---|
static StereoMatcher |
__fromPtr__(long addr) |
void |
compute(Mat left,
Mat right,
Mat disparity)
Computes disparity map for the specified stereo pair
|
protected void |
finalize() |
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, getNativeObjAddr, savepublic static final int DISP_SHIFT
public static final int DISP_SCALE
public static StereoMatcher __fromPtr__(long addr)
public int getBlockSize()
public int getDisp12MaxDiff()
public int getMinDisparity()
public int getNumDisparities()
public int getSpeckleRange()
public int getSpeckleWindowSize()
public void compute(Mat left, Mat right, 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 void setBlockSize(int blockSize)
public void setDisp12MaxDiff(int disp12MaxDiff)
public void setMinDisparity(int minDisparity)
public void setNumDisparities(int numDisparities)
public void setSpeckleRange(int speckleRange)
public void setSpeckleWindowSize(int speckleWindowSize)
Copyright © 2020. All rights reserved.