OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.Calib3dModule.StereoMatcher Class Reference

The base class for stereo correspondence algorithms. More...

Public Member Functions

void compute (Mat left, Mat right, Mat disparity)
 Computes disparity map for the specified stereo pair.
 
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)
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new StereoMatcher __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Static Public Attributes

const int DISP_SCALE = (1 << DISP_SHIFT)
 
const int DISP_SHIFT = 4
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

The base class for stereo correspondence algorithms.

Member Function Documentation

◆ __fromPtr__()

static new StereoMatcher OpenCVForUnity.Calib3dModule.StereoMatcher.__fromPtr__ ( IntPtr addr)
static

◆ compute()

void OpenCVForUnity.Calib3dModule.StereoMatcher.compute ( Mat left,
Mat right,
Mat disparity )

Computes disparity map for the specified stereo pair.

Parameters
leftLeft 8-bit single-channel image.
rightRight image of the same size and the same type as the left one.
disparityOutput 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.

◆ Dispose()

override void OpenCVForUnity.Calib3dModule.StereoMatcher.Dispose ( bool disposing)
protectedvirtual

◆ getBlockSize()

int OpenCVForUnity.Calib3dModule.StereoMatcher.getBlockSize ( )

◆ getDisp12MaxDiff()

int OpenCVForUnity.Calib3dModule.StereoMatcher.getDisp12MaxDiff ( )

◆ getMinDisparity()

int OpenCVForUnity.Calib3dModule.StereoMatcher.getMinDisparity ( )

◆ getNumDisparities()

int OpenCVForUnity.Calib3dModule.StereoMatcher.getNumDisparities ( )

◆ getSpeckleRange()

int OpenCVForUnity.Calib3dModule.StereoMatcher.getSpeckleRange ( )

◆ getSpeckleWindowSize()

int OpenCVForUnity.Calib3dModule.StereoMatcher.getSpeckleWindowSize ( )

◆ setBlockSize()

void OpenCVForUnity.Calib3dModule.StereoMatcher.setBlockSize ( int blockSize)

◆ setDisp12MaxDiff()

void OpenCVForUnity.Calib3dModule.StereoMatcher.setDisp12MaxDiff ( int disp12MaxDiff)

◆ setMinDisparity()

void OpenCVForUnity.Calib3dModule.StereoMatcher.setMinDisparity ( int minDisparity)

◆ setNumDisparities()

void OpenCVForUnity.Calib3dModule.StereoMatcher.setNumDisparities ( int numDisparities)

◆ setSpeckleRange()

void OpenCVForUnity.Calib3dModule.StereoMatcher.setSpeckleRange ( int speckleRange)

◆ setSpeckleWindowSize()

void OpenCVForUnity.Calib3dModule.StereoMatcher.setSpeckleWindowSize ( int speckleWindowSize)

Member Data Documentation

◆ DISP_SCALE

const int OpenCVForUnity.Calib3dModule.StereoMatcher.DISP_SCALE = (1 << DISP_SHIFT)
static

◆ DISP_SHIFT

const int OpenCVForUnity.Calib3dModule.StereoMatcher.DISP_SHIFT = 4
static

The documentation for this class was generated from the following file: