Class CudaStereoBM
Use Block Matching algorithm to find stereo correspondence
public class CudaStereoBM : SharedPtrObject, IDisposable
- Inheritance
-
CudaStereoBM
- Implements
- Inherited Members
Constructors
CudaStereoBM(int, int)
Create a stereoBM
public CudaStereoBM(int numberOfDisparities = 64, int blockSize = 19)
Parameters
numberOfDisparities
intThe number of disparities. Must be multiple of 8. Use 64 for default
blockSize
intThe SAD window size. Use 19 for default
Methods
DisposeObject()
Release the stereo state and all the memory associate with it
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).