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/StereoDense.h
>
32
#include <
rtabmap/core/Parameters.h
>
33
#include <opencv2/core/core.hpp>
34
35
namespace
rtabmap
{
36
37
class
RTABMAP_CORE_EXPORT
StereoSGBM
:
public
StereoDense
{
38
public
:
39
StereoSGBM
(
const
ParametersMap
& parameters =
ParametersMap
());
40
virtual
~StereoSGBM
() {}
41
42
virtual
void
parseParameters(
const
ParametersMap
& parameters);
43
virtual
cv::Mat computeDisparity(
44
const
cv::Mat & leftImage,
45
const
cv::Mat & rightImage)
const
;
46
47
private
:
48
int
blockSize_
;
//15
49
int
minDisparity_
;
//0
50
int
numDisparities_
;
//64
51
int
preFilterCap_
;
//31
52
int
uniquenessRatio_
;
//15
53
int
speckleWindowSize_
;
//100
54
int
speckleRange_
;
//4
55
int
P1_
;
//0
56
int
P2_
;
//0
57
int
disp12MaxDiff_
;
//0
58
int
mode_
;
//0=cv::StereoSGBM::MODE_SGBM;
59
};
60
61
}
/* namespace rtabmap */
62
63
#endif
/* STEREOSGBM_H_ */
rtabmap::StereoSGBM
Definition:
StereoSGBM.h:37
rtabmap::StereoSGBM::blockSize_
int blockSize_
Definition:
StereoSGBM.h:48
rtabmap::StereoSGBM::uniquenessRatio_
int uniquenessRatio_
Definition:
StereoSGBM.h:52
rtabmap::StereoSGBM::P1_
int P1_
Definition:
StereoSGBM.h:55
rtabmap::ParametersMap
std::map< std::string, std::string > ParametersMap
Definition:
Parameters.h:43
Parameters.h
rtabmap::StereoSGBM::preFilterCap_
int preFilterCap_
Definition:
StereoSGBM.h:51
rtabmap::StereoSGBM::speckleRange_
int speckleRange_
Definition:
StereoSGBM.h:54
rtabmap::StereoDense
Definition:
StereoDense.h:38
rtabmap::StereoSGBM::speckleWindowSize_
int speckleWindowSize_
Definition:
StereoSGBM.h:53
rtabmap::StereoSGBM::mode_
int mode_
Definition:
StereoSGBM.h:58
rtabmap::StereoSGBM::minDisparity_
int minDisparity_
Definition:
StereoSGBM.h:49
rtabmap::StereoSGBM::disp12MaxDiff_
int disp12MaxDiff_
Definition:
StereoSGBM.h:57
rtabmap::StereoSGBM::numDisparities_
int numDisparities_
Definition:
StereoSGBM.h:50
rtabmap::StereoSGBM::~StereoSGBM
virtual ~StereoSGBM()
Definition:
StereoSGBM.h:40
rtabmap::StereoSGBM::P2_
int P2_
Definition:
StereoSGBM.h:56
rtabmap
Definition:
CameraARCore.cpp:35
StereoDense.h
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:22