Table of Contents

Class StereoBM

Namespace
Emgu.CV
Assembly
Emgu.CV.dll

Class for computing stereo correspondence using the block matching algorithm, introduced and contributed to OpenCV by K. Konolige.

public class StereoBM : SharedPtrObject, IDisposable, IStereoMatcher
Inheritance
StereoBM
Implements
Inherited Members
Extension Methods

Constructors

StereoBM(int, int)

Create a stereoBM object

public StereoBM(int numberOfDisparities = 0, int blockSize = 21)

Parameters

numberOfDisparities int

the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numberOfDisparities. The search range can then be shifted by changing the minimum disparity.

blockSize int

the linear size of the blocks compared by the algorithm. The size should be odd (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence.

Properties

StereoMatcherPtr

Pointer to the stereo matcher

public nint StereoMatcherPtr { get; }

Property Value

nint

Methods

DisposeObject()

Release the stereo state and all the memory associate with it

protected override void DisposeObject()