Class for computing stereo correspondence using the block matching algorithm
Class for computing stereo correspondence using the block matching
algorithm, introduced and contributed to OpenCV by K. Konolige.
Usage
bm = cv.StereoBM('NumDisparities',0, ...);
bm.MinDisparity = ...;
disparity = bm.compute(left, right);
| BlockSize |
SAD window size, odd within 5..255 and not larger than image width |
| Disp12MaxDiff |
Maximum allowed difference (in integer pixel units) in the |
| MinDisparity |
Minimum possible disparity value, default 0 |
| NumDisparities |
Maximum disparity minus minimum disparity, positive and divisble by |
| PreFilterCap |
Truncation value for prefiltering image pixels, within 1..63, |
| PreFilterSize |
pre-filtering size, odd and betweeen 5..255, default 9 |
| PreFilterType |
pre-filtering type, one of: 'NormalizedResponse' or 'XSobel' (default) |
| ROI1 |
computes disparity for ROI in first image. default [0,0,0,0]. |
| ROI2 |
computes disparity for ROI in second image. default [0,0,0,0]. |
| SmallerBlockSize |
currently unused. default 0 |
| SpeckleRange |
Maximum disparity variation within each connected component (when |
| SpeckleWindowSize |
Maximum size of smooth disparity regions to consider their noise |
| TextureThreshold |
texture threshold, non-negative. default 10 |
| UniquenessRatio |
uniqueness ratio, non-negative. default 15 |
| id |
Object ID |
|
|
addlistener |
Add listener for event. |
|
|
clear |
Clears the algorithm state. |
|
|
compute |
Computes disparity map for the specified stereo pair |
|
|
delete |
Destructor |
|
|
empty |
Checks if algorithm object is empty. |
|
|
eq |
== (EQ) Test handle equality. |
|
|
findobj |
Find objects matching specified conditions. |
|
|
findprop |
Find property of MATLAB handle object. |
|
|
ge |
>= (GE) Greater than or equal relation for handles. |
|
|
getDefaultName |
Returns the algorithm string identifier. |
|
|
gt |
> (GT) Greater than relation for handles. |
| Sealed
|
isvalid |
Test handle validity. |
|
|
le |
<= (LE) Less than or equal relation for handles. |
|
|
load |
Loads algorithm from a file or a string. |
|
|
lt |
< (LT) Less than relation for handles. |
|
|
ne |
~= (NE) Not equal relation for handles. |
|
|
notify |
Notify listeners of event. |
|
|
save |
Saves the algorithm to a file. |