Class CudaStereoConstantSpaceBP
A Constant-Space Belief Propagation Algorithm for Stereo Matching. Qingxiong Yang, Liang Wang, Narendra Ahuja. http://vision.ai.uiuc.edu/~qyang6/
public class CudaStereoConstantSpaceBP : SharedPtrObject, IDisposable
- Inheritance
-
CudaStereoConstantSpaceBP
- Implements
- Inherited Members
Constructors
CudaStereoConstantSpaceBP(int, int, int, int)
A Constant-Space Belief Propagation Algorithm for Stereo Matching
public CudaStereoConstantSpaceBP(int ndisp = 128, int iters = 8, int levels = 4, int nrPlane = 4)
Parameters
ndisp
intThe number of disparities. Use 128 as default
iters
intThe number of BP iterations on each level. Use 8 as default.
levels
intThe number of levels. Use 4 as default
nrPlane
intThe number of active disparity on the first level. Use 4 as default.
Methods
DisposeObject()
Release the unmanaged memory
protected override void DisposeObject()
FindStereoCorrespondence(IInputArray, IInputArray, IOutputArray, Stream)
Computes disparity map for the input rectified stereo pair.
public void FindStereoCorrespondence(IInputArray left, IInputArray right, IOutputArray disparity, Stream stream = null)
Parameters
left
IInputArrayThe left single-channel, 8-bit image
right
IInputArrayThe right image of the same size and the same type
disparity
IOutputArrayThe disparity map
stream
StreamUse a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).