corelib
include
rtabmap
core
stereo
StereoBM.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 STEREOBM_H_
29
#define STEREOBM_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
StereoBM
:
public
StereoDense
{
40
public
:
41
StereoBM
(
int
blockSize,
int
numDisparities);
42
StereoBM
(
const
ParametersMap
& parameters =
ParametersMap
());
43
virtual
~StereoBM
() {}
44
45
virtual
void
parseParameters(
const
ParametersMap
& parameters);
46
virtual
cv::Mat computeDisparity(
47
const
cv::Mat & leftImage,
48
const
cv::Mat & rightImage)
const
;
49
50
private
:
51
int
blockSize_
;
//15
52
int
minDisparity_
;
//0
53
int
numDisparities_
;
//64
54
int
preFilterSize_
;
//9
55
int
preFilterCap_
;
//31
56
int
uniquenessRatio_
;
//15
57
int
textureThreshold_
;
//10
58
int
speckleWindowSize_
;
//100
59
int
speckleRange_
;
//4
60
int
disp12MaxDiff_
;
//-1
61
};
62
63
}
/* namespace rtabmap */
64
65
#endif
/* STEREOBM_H_ */
RtabmapExp.h
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::StereoBM::uniquenessRatio_
int uniquenessRatio_
Definition:
StereoBM.h:56
rtabmap::StereoBM::blockSize_
int blockSize_
Definition:
StereoBM.h:51
rtabmap::StereoBM::speckleRange_
int speckleRange_
Definition:
StereoBM.h:59
rtabmap::StereoBM::preFilterSize_
int preFilterSize_
Definition:
StereoBM.h:54
rtabmap::StereoBM
Definition:
StereoBM.h:39
rtabmap::StereoBM::speckleWindowSize_
int speckleWindowSize_
Definition:
StereoBM.h:58
rtabmap::StereoBM::numDisparities_
int numDisparities_
Definition:
StereoBM.h:53
rtabmap::StereoBM::~StereoBM
virtual ~StereoBM()
Definition:
StereoBM.h:43
StereoDense.h
rtabmap::StereoBM::disp12MaxDiff_
int disp12MaxDiff_
Definition:
StereoBM.h:60
rtabmap::StereoBM::minDisparity_
int minDisparity_
Definition:
StereoBM.h:52
rtabmap::StereoBM::preFilterCap_
int preFilterCap_
Definition:
StereoBM.h:55
rtabmap::StereoBM::textureThreshold_
int textureThreshold_
Definition:
StereoBM.h:57
Parameters.h
rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:38:57