corelib
include
rtabmap
core
stereo
StereoSGBM.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3
All rights reserved.
4
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions are met:
7
* Redistributions of source code must retain the above copyright
8
notice, this list of conditions and the following disclaimer.
9
* Redistributions in binary form must reproduce the above copyright
10
notice, this list of conditions and the following disclaimer in the
11
documentation and/or other materials provided with the distribution.
12
* Neither the name of the Universite de Sherbrooke nor the
13
names of its contributors may be used to endorse or promote products
14
derived from this software without specific prior written permission.
15
16
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
*/
27
28
#ifndef STEREOSGBM_H_
29
#define STEREOSGBM_H_
30
31
#include "
rtabmap/core/RtabmapExp.h
"
// DLL export/import defines
32
33
#include <
rtabmap/core/StereoDense.h
>
34
#include <
rtabmap/core/Parameters.h
>
35
#include <opencv2/core/core.hpp>
36
37
namespace
rtabmap
{
38
39
class
RTABMAP_EXP
StereoSGBM
:
public
StereoDense
{
40
public
:
41
StereoSGBM
(
const
ParametersMap
& parameters =
ParametersMap
());
42
virtual
~StereoSGBM
() {}
43
44
virtual
void
parseParameters(
const
ParametersMap
& parameters);
45
virtual
cv::Mat computeDisparity(
46
const
cv::Mat & leftImage,
47
const
cv::Mat & rightImage)
const
;
48
49
private
:
50
int
blockSize_
;
//15
51
int
minDisparity_
;
//0
52
int
numDisparities_
;
//64
53
int
preFilterCap_
;
//31
54
int
uniquenessRatio_
;
//15
55
int
speckleWindowSize_
;
//100
56
int
speckleRange_
;
//4
57
int
P1_
;
//0
58
int
P2_
;
//0
59
int
disp12MaxDiff_
;
//0
60
int
mode_
;
//0=cv::StereoSGBM::MODE_SGBM;
61
};
62
63
}
/* namespace rtabmap */
64
65
#endif
/* STEREOSGBM_H_ */
rtabmap::StereoSGBM::blockSize_
int blockSize_
Definition:
StereoSGBM.h:50
rtabmap::StereoSGBM::P2_
int P2_
Definition:
StereoSGBM.h:58
rtabmap::StereoSGBM
Definition:
StereoSGBM.h:39
rtabmap::StereoSGBM::minDisparity_
int minDisparity_
Definition:
StereoSGBM.h:51
RtabmapExp.h
rtabmap::StereoSGBM::preFilterCap_
int preFilterCap_
Definition:
StereoSGBM.h:53
rtabmap::StereoDense
Definition:
StereoDense.h:38
rtabmap
Definition:
CameraARCore.cpp:35
rtabmap::ParametersMap
std::map< std::string, std::string > ParametersMap
Definition:
Parameters.h:43
RTABMAP_EXP
#define RTABMAP_EXP
Definition:
RtabmapExp.h:38
rtabmap::StereoSGBM::uniquenessRatio_
int uniquenessRatio_
Definition:
StereoSGBM.h:54
rtabmap::StereoSGBM::P1_
int P1_
Definition:
StereoSGBM.h:57
rtabmap::StereoSGBM::speckleWindowSize_
int speckleWindowSize_
Definition:
StereoSGBM.h:55
rtabmap::StereoSGBM::numDisparities_
int numDisparities_
Definition:
StereoSGBM.h:52
rtabmap::StereoSGBM::~StereoSGBM
virtual ~StereoSGBM()
Definition:
StereoSGBM.h:42
rtabmap::StereoSGBM::speckleRange_
int speckleRange_
Definition:
StereoSGBM.h:56
rtabmap::StereoSGBM::disp12MaxDiff_
int disp12MaxDiff_
Definition:
StereoSGBM.h:59
StereoDense.h
rtabmap::StereoSGBM::mode_
int mode_
Definition:
StereoSGBM.h:60
Parameters.h
rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:38:57