opencv2/stereo.hpp#

#include <opencv2/core.hpp>

Include dependency graph for stereo.hpp:

opencv2/stereo.hpp Node1 opencv2/stereo.hpp Node2 opencv2/core.hpp Node1->Node2 Node3 opencv2/core/cvdef.h Node2->Node3 Node10 opencv2/core/base.hpp Node2->Node10 Node14 opencv2/core/cvstd.hpp Node2->Node14 Node30 opencv2/core/traits.hpp Node2->Node30 Node31 opencv2/core/matx.hpp Node2->Node31 Node36 opencv2/core/types.hpp Node2->Node36 Node39 opencv2/core/mat.hpp Node2->Node39 Node43 opencv2/core/persistence.hpp Node2->Node43 Node44 opencv2/core/operations.hpp Node2->Node44 Node47 opencv2/core/cvstd.inl.hpp Node2->Node47 Node48 opencv2/core/utility.hpp Node2->Node48 Node51 opencv2/core/optim.hpp Node2->Node51 Node4 opencv2/core/version.hpp Node3->Node4 Node5 limits Node3->Node5 Node6 opencv2/core/hal/interface.h Node3->Node6 Node8 cstdint Node3->Node8 Node9 cv_cpu_dispatch.h Node3->Node9 Node7 cstddef Node6->Node7 Node6->Node8 Node10->Node3 Node11 opencv2/opencv_modules.hpp Node10->Node11 Node12 climits Node10->Node12 Node13 algorithm Node10->Node13 Node10->Node14 Node24 opencv2/core/fwddecl.hpp Node10->Node24 Node25 opencv2/core/neon_utils.hpp Node10->Node25 Node26 opencv2/core/vsx_utils.hpp Node10->Node26 Node28 opencv2/core/exception.hpp Node10->Node28 Node29 opencv2/core/check.hpp Node10->Node29 Node14->Node3 Node14->Node7 Node14->Node13 Node15 cstring Node14->Node15 Node16 cctype Node14->Node16 Node17 string Node14->Node17 Node18 utility Node14->Node18 Node19 cstdlib Node14->Node19 Node20 cmath Node14->Node20 Node21 cvstd_wrapper.hpp Node14->Node21 Node21->Node3 Node21->Node17 Node22 memory Node21->Node22 Node23 type_traits Node21->Node23 Node24->Node3 Node25->Node3 Node26->Node3 Node27 assert.h Node26->Node27 Node28->Node3 Node28->Node14 Node29->Node3 Node29->Node14 Node29->Node24 Node30->Node3 Node31->Node3 Node31->Node10 Node31->Node30 Node32 opencv2/core/saturate.hpp Node31->Node32 Node34 initializer_list Node31->Node34 Node35 opencv2/core/matx.inl.hpp Node31->Node35 Node32->Node3 Node32->Node12 Node33 opencv2/core/fast_math.hpp Node32->Node33 Node33->Node3 Node33->Node20 Node36->Node3 Node36->Node5 Node36->Node12 Node36->Node14 Node36->Node31 Node37 cfloat Node36->Node37 Node38 vector Node36->Node38 Node39->Node23 Node39->Node31 Node39->Node36 Node40 opencv2/core/bufferpool.hpp Node39->Node40 Node41 array Node39->Node41 Node42 opencv2/core/mat.inl.hpp Node39->Node42 Node43->Node36 Node43->Node39 Node45 cstdio Node44->Node45 Node46 ostream Node44->Node46 Node48->Node2 Node48->Node46 Node49 functional Node48->Node49 Node50 mutex Node48->Node50 Node51->Node2

opencv2/stereo.hpp Node1 opencv2/stereo.hpp Node2 opencv2/core.hpp Node1->Node2 Node3 opencv2/core/cvdef.h Node2->Node3 Node10 opencv2/core/base.hpp Node2->Node10 Node14 opencv2/core/cvstd.hpp Node2->Node14 Node30 opencv2/core/traits.hpp Node2->Node30 Node31 opencv2/core/matx.hpp Node2->Node31 Node36 opencv2/core/types.hpp Node2->Node36 Node39 opencv2/core/mat.hpp Node2->Node39 Node43 opencv2/core/persistence.hpp Node2->Node43 Node44 opencv2/core/operations.hpp Node2->Node44 Node47 opencv2/core/cvstd.inl.hpp Node2->Node47 Node48 opencv2/core/utility.hpp Node2->Node48 Node51 opencv2/core/optim.hpp Node2->Node51 Node4 opencv2/core/version.hpp Node3->Node4 Node5 limits Node3->Node5 Node6 opencv2/core/hal/interface.h Node3->Node6 Node8 cstdint Node3->Node8 Node9 cv_cpu_dispatch.h Node3->Node9 Node7 cstddef Node6->Node7 Node6->Node8 Node10->Node3 Node11 opencv2/opencv_modules.hpp Node10->Node11 Node12 climits Node10->Node12 Node13 algorithm Node10->Node13 Node10->Node14 Node24 opencv2/core/fwddecl.hpp Node10->Node24 Node25 opencv2/core/neon_utils.hpp Node10->Node25 Node26 opencv2/core/vsx_utils.hpp Node10->Node26 Node28 opencv2/core/exception.hpp Node10->Node28 Node29 opencv2/core/check.hpp Node10->Node29 Node14->Node3 Node14->Node7 Node14->Node13 Node15 cstring Node14->Node15 Node16 cctype Node14->Node16 Node17 string Node14->Node17 Node18 utility Node14->Node18 Node19 cstdlib Node14->Node19 Node20 cmath Node14->Node20 Node21 cvstd_wrapper.hpp Node14->Node21 Node21->Node3 Node21->Node17 Node22 memory Node21->Node22 Node23 type_traits Node21->Node23 Node24->Node3 Node25->Node3 Node26->Node3 Node27 assert.h Node26->Node27 Node28->Node3 Node28->Node14 Node29->Node3 Node29->Node14 Node29->Node24 Node30->Node3 Node31->Node3 Node31->Node10 Node31->Node30 Node32 opencv2/core/saturate.hpp Node31->Node32 Node34 initializer_list Node31->Node34 Node35 opencv2/core/matx.inl.hpp Node31->Node35 Node32->Node3 Node32->Node12 Node33 opencv2/core/fast_math.hpp Node32->Node33 Node33->Node3 Node33->Node20 Node36->Node3 Node36->Node5 Node36->Node12 Node36->Node14 Node36->Node31 Node37 cfloat Node36->Node37 Node38 vector Node36->Node38 Node39->Node23 Node39->Node31 Node39->Node36 Node40 opencv2/core/bufferpool.hpp Node39->Node40 Node41 array Node39->Node41 Node42 opencv2/core/mat.inl.hpp Node39->Node42 Node43->Node36 Node43->Node39 Node45 cstdio Node44->Node45 Node46 ostream Node44->Node46 Node48->Node2 Node48->Node46 Node49 functional Node48->Node49 Node50 mutex Node48->Node50 Node51->Node2

This graph shows which files directly or indirectly include stereo.hpp:

incby n6c23e95f0f opencv2/calib3d/calib3d.hpp n3d80380455 opencv2/calib3d.hpp n6c23e95f0f->n3d80380455 n320e90fe47 opencv2/stereo.hpp n3d80380455->n320e90fe47 n0dd5338166 opencv2/cudastereo.hpp n0dd5338166->n320e90fe47 ne3081d1775 opencv2/ximgproc/disparity_filter.hpp ne3081d1775->n320e90fe47 n9ca252fadb opencv2/ximgproc.hpp n9ca252fadb->ne3081d1775 nd2d93bbb2b opencv2/xstereo.hpp nd2d93bbb2b->n320e90fe47

incby n6c23e95f0f opencv2/calib3d/calib3d.hpp n3d80380455 opencv2/calib3d.hpp n6c23e95f0f->n3d80380455 n320e90fe47 opencv2/stereo.hpp n3d80380455->n320e90fe47 n0dd5338166 opencv2/cudastereo.hpp n0dd5338166->n320e90fe47 ne3081d1775 opencv2/ximgproc/disparity_filter.hpp ne3081d1775->n320e90fe47 n9ca252fadb opencv2/ximgproc.hpp n9ca252fadb->ne3081d1775 nd2d93bbb2b opencv2/xstereo.hpp nd2d93bbb2b->n320e90fe47

Classes#

class cv::StereoBM

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

class cv::StereoMatcher

The base class for stereo correspondence algorithms. More…

class cv::StereoSGBM

The class implements the modified H. Hirschmuller algorithm [141] that differs from the original one as follows: More…

Namespaces#

namespace cv
namespace cv::fisheye

Enumerations#

enum cv::StereoMatcher {
DISP_SHIFT = 4,
DISP_SCALE = (1 << DISP_SHIFT)
}
enum cv::StereoBM {
PREFILTER_NORMALIZED_RESPONSE = 0,
PREFILTER_XSOBEL = 1
}
enum cv::StereoSGBM {
MODE_SGBM = 0,
MODE_HH = 1,
MODE_SGBM_3WAY = 2,
MODE_HH4 = 3
}

Functions#

void cv::StereoMatcher::compute (InputArray left, InputArray right, OutputArray disparity)=0

Computes disparity map for the specified stereo pair.

static Ptr< StereoBM > cv::StereoBM::create (int numDisparities=0, int blockSize=21)

Creates StereoBM object.

static Ptr< StereoSGBM > cv::StereoSGBM::create (int minDisparity=0, int numDisparities=16, int blockSize=3, int P1=0, int P2=0, int disp12MaxDiff=0, int preFilterCap=0, int uniquenessRatio=0, int speckleWindowSize=0, int speckleRange=0, int mode=StereoSGBM::MODE_SGBM)

Creates StereoSGBM object.

void cv::filterSpeckles (InputOutputArray img, double newVal, int maxSpeckleSize, double maxDiff, InputOutputArray buf=noArray())

Filters off small noise blobs (speckles) in the disparity map.

int cv::StereoMatcher::getBlockSize () const =0
int cv::StereoMatcher::getDisp12MaxDiff () const =0
int cv::StereoMatcher::getMinDisparity () const =0
int cv::StereoSGBM::getMode () const =0
int cv::StereoMatcher::getNumDisparities () const =0
int cv::StereoSGBM::getP1 () const =0
int cv::StereoSGBM::getP2 () const =0
int cv::StereoBM::getPreFilterCap () const =0
int cv::StereoSGBM::getPreFilterCap () const =0
int cv::StereoBM::getPreFilterSize () const =0
int cv::StereoBM::getPreFilterType () const =0
Rect cv::StereoBM::getROI1 () const =0
Rect cv::StereoBM::getROI2 () const =0
int cv::StereoBM::getSmallerBlockSize () const =0
int cv::StereoMatcher::getSpeckleRange () const =0
int cv::StereoMatcher::getSpeckleWindowSize () const =0
int cv::StereoBM::getTextureThreshold () const =0
int cv::StereoBM::getUniquenessRatio () const =0
int cv::StereoSGBM::getUniquenessRatio () const =0
Rect cv::getValidDisparityROI (Rect roi1, Rect roi2, int minDisparity, int numberOfDisparities, int blockSize)

computes valid disparity ROI from the valid ROIs of the rectified images (that are returned by stereoRectify)

float cv::rectify3Collinear (InputArray _cameraMatrix1, InputArray _distCoeffs1, InputArray _cameraMatrix2, InputArray _distCoeffs2, InputArray _cameraMatrix3, InputArray _distCoeffs3, InputArrayOfArrays _imgpt1, InputArrayOfArrays _imgpt3, Size imageSize, InputArray _Rmat12, InputArray _Tmat12, InputArray _Rmat13, InputArray _Tmat13, OutputArray _Rmat1, OutputArray _Rmat2, OutputArray _Rmat3, OutputArray _Pmat1, OutputArray _Pmat2, OutputArray _Pmat3, OutputArray _Qmat, double alpha, Size newImgSize, Rect *roi1, Rect *roi2, int flags)
void cv::reprojectImageTo3D (InputArray disparity, OutputArray _3dImage, InputArray Q, bool handleMissingValues=false, int ddepth=-1)

Reprojects a disparity image to 3D space.

void cv::StereoMatcher::setBlockSize (int blockSize)=0
void cv::StereoMatcher::setDisp12MaxDiff (int disp12MaxDiff)=0
void cv::StereoMatcher::setMinDisparity (int minDisparity)=0
void cv::StereoSGBM::setMode (int mode)=0
void cv::StereoMatcher::setNumDisparities (int numDisparities)=0
void cv::StereoSGBM::setP1 (int P1)=0
void cv::StereoSGBM::setP2 (int P2)=0
void cv::StereoBM::setPreFilterCap (int preFilterCap)=0
void cv::StereoSGBM::setPreFilterCap (int preFilterCap)=0
void cv::StereoBM::setPreFilterSize (int preFilterSize)=0
void cv::StereoBM::setPreFilterType (int preFilterType)=0
void cv::StereoBM::setROI1 (Rect roi1)=0
void cv::StereoBM::setROI2 (Rect roi2)=0
void cv::StereoBM::setSmallerBlockSize (int blockSize)=0
void cv::StereoMatcher::setSpeckleRange (int speckleRange)=0
void cv::StereoMatcher::setSpeckleWindowSize (int speckleWindowSize)=0
void cv::StereoBM::setTextureThreshold (int textureThreshold)=0
void cv::StereoBM::setUniquenessRatio (int uniquenessRatio)=0
void cv::StereoSGBM::setUniquenessRatio (int uniquenessRatio)=0
void cv::fisheye::stereoRectify (InputArray K1, InputArray D1, InputArray K2, InputArray D2, const Size &imageSize, InputArray R, InputArray tvec, OutputArray R1, OutputArray R2, OutputArray P1, OutputArray P2, OutputArray Q, int flags, const Size &newImageSize=Size(), double balance=0.0, double fov_scale=1.0)

Stereo rectification for fisheye camera model.

void cv::stereoRectify (InputArray cameraMatrix1, InputArray distCoeffs1, InputArray cameraMatrix2, InputArray distCoeffs2, Size imageSize, InputArray R, InputArray T, OutputArray R1, OutputArray R2, OutputArray P1, OutputArray P2, OutputArray Q, int flags=STEREO_ZERO_DISPARITY, double alpha=-1, Size newImageSize=Size(), Rect *validPixROI1=0, Rect *validPixROI2=0)

Computes rectification transforms for each head of a calibrated stereo camera.

bool cv::stereoRectifyUncalibrated (InputArray points1, InputArray points2, InputArray F, Size imgSize, OutputArray H1, OutputArray H2, double threshold=5)

Computes a rectification transform for an uncalibrated stereo camera.

void cv::validateDisparity (InputOutputArray disparity, InputArray cost, int minDisparity, int numberOfDisparities, int disp12MaxDisp=1)

validates disparity using the left-right check. The matrix “cost” should be computed by the stereo correspondence algorithm