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, save
public static final int DISP_SHIFT
public static final int DISP_SCALE
public static StereoMatcher __fromPtr__(long addr)
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 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 © 2024. All rights reserved.