OpenCV for Unity 2.6.5
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.
|
Class for computing stereo correspondence using the block matching algorithm, introduced and contributed to OpenCV by K. Konolige. More...
Public Member Functions | |
int | getPreFilterCap () |
int | getPreFilterSize () |
int | getPreFilterType () |
Rect | getROI1 () |
int int int int height | getROI1AsValueTuple () |
Vec4i | getROI1AsVec4i () |
Rect | getROI2 () |
int int int int height | getROI2AsValueTuple () |
Vec4i | getROI2AsVec4i () |
int | getSmallerBlockSize () |
int | getTextureThreshold () |
int | getUniquenessRatio () |
void | setPreFilterCap (int preFilterCap) |
void | setPreFilterSize (int preFilterSize) |
void | setPreFilterType (int preFilterType) |
void | setROI1 (in Vec4i roi1) |
void | setROI1 (in(int x, int y, int width, int height) roi1) |
void | setROI1 (Rect roi1) |
void | setROI2 (in Vec4i roi2) |
void | setROI2 (in(int x, int y, int width, int height) roi2) |
void | setROI2 (Rect roi2) |
void | setSmallerBlockSize (int blockSize) |
void | setTextureThreshold (int textureThreshold) |
void | setUniquenessRatio (int uniquenessRatio) |
![]() | |
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) |
![]() | |
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) |
![]() | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static new StereoBM | __fromPtr__ (IntPtr addr) |
static StereoBM | create () |
Creates StereoBM object. | |
static StereoBM | create (int numDisparities) |
Creates StereoBM object. | |
static StereoBM | create (int numDisparities, int blockSize) |
Creates StereoBM object. | |
![]() | |
static new StereoMatcher | __fromPtr__ (IntPtr addr) |
![]() | |
static Algorithm | __fromPtr__ (IntPtr addr) |
![]() | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Public Attributes | |
int int int | width |
int | x |
int int | y |
Static Public Attributes | |
const int | PREFILTER_NORMALIZED_RESPONSE = 0 |
const int | PREFILTER_XSOBEL = 1 |
![]() | |
const int | DISP_SCALE = (1 << DISP_SHIFT) |
const int | DISP_SHIFT = 4 |
Protected Member Functions | |
override void | Dispose (bool disposing) |
![]() | |
override void | Dispose (bool disposing) |
![]() | |
![]() | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
![]() | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
![]() | |
![]() | |
![]() | |
![]() | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
Class for computing stereo correspondence using the block matching algorithm, introduced and contributed to OpenCV by K. Konolige.
|
static |
|
static |
Creates StereoBM object.
numDisparities | the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity. |
blockSize | 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. |
The function create StereoBM object. You can then call StereoBM.compute() to compute disparity for a specific stereo pair.
|
static |
Creates StereoBM object.
numDisparities | the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity. |
blockSize | 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. |
The function create StereoBM object. You can then call StereoBM.compute() to compute disparity for a specific stereo pair.
|
static |
Creates StereoBM object.
numDisparities | the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity. |
blockSize | 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. |
The function create StereoBM object. You can then call StereoBM.compute() to compute disparity for a specific stereo pair.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
int OpenCVForUnity.Calib3dModule.StereoBM.getPreFilterCap | ( | ) |
int OpenCVForUnity.Calib3dModule.StereoBM.getPreFilterSize | ( | ) |
int OpenCVForUnity.Calib3dModule.StereoBM.getPreFilterType | ( | ) |
Rect OpenCVForUnity.Calib3dModule.StereoBM.getROI1 | ( | ) |
int int int int height OpenCVForUnity.Calib3dModule.StereoBM.getROI1AsValueTuple | ( | ) |
Vec4i OpenCVForUnity.Calib3dModule.StereoBM.getROI1AsVec4i | ( | ) |
Rect OpenCVForUnity.Calib3dModule.StereoBM.getROI2 | ( | ) |
int int int int height OpenCVForUnity.Calib3dModule.StereoBM.getROI2AsValueTuple | ( | ) |
Vec4i OpenCVForUnity.Calib3dModule.StereoBM.getROI2AsVec4i | ( | ) |
int OpenCVForUnity.Calib3dModule.StereoBM.getSmallerBlockSize | ( | ) |
int OpenCVForUnity.Calib3dModule.StereoBM.getTextureThreshold | ( | ) |
int OpenCVForUnity.Calib3dModule.StereoBM.getUniquenessRatio | ( | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setPreFilterCap | ( | int | preFilterCap | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setPreFilterSize | ( | int | preFilterSize | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setPreFilterType | ( | int | preFilterType | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setROI1 | ( | in Vec4i | roi1 | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setROI1 | ( | Rect | roi1 | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setROI2 | ( | in Vec4i | roi2 | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setROI2 | ( | Rect | roi2 | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setSmallerBlockSize | ( | int | blockSize | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setTextureThreshold | ( | int | textureThreshold | ) |
void OpenCVForUnity.Calib3dModule.StereoBM.setUniquenessRatio | ( | int | uniquenessRatio | ) |
|
static |
|
static |
int int int OpenCVForUnity.Calib3dModule.StereoBM.width |
int OpenCVForUnity.Calib3dModule.StereoBM.x |
int int OpenCVForUnity.Calib3dModule.StereoBM.y |