Table of Contents

Class CudaStereoBM

Namespace
Emgu.CV.Cuda
Assembly
Emgu.CV.dll

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 int

The number of disparities. Must be multiple of 8. Use 64 for default

blockSize int

The 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 IInputArray

The left single-channel, 8-bit image

right IInputArray

The right image of the same size and the same type

disparity IOutputArray

The disparity map

stream Stream

Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).