CoFusionParams.cpp
Go to the documentation of this file.
1 #include "CoFusionParams.h"
2 
3 using namespace armarx;
4 
6 {
7 
8 }
9 
10 
11 #if USE_MASKFUSION == 1
12 
13 std::unique_ptr<MaskFusion> CoFusionParams::makeCoFusion() const
14 {
15  Resolution::setResolution(width, height);
16  Intrinsics::setIntrinics(fx, fy, cx, cy);
17 
18  std::unique_ptr<MaskFusion> cofusion;
19 
20  cofusion.reset(new MaskFusion(
21  timeDelta,
23  errThresh,
24  covThresh,
25  closeLoops,
26  iclnuim,
27  reloc,
31  depthCut,
32  icpThresh,
33  fastOdom,
34  fernThresh,
35  so3,
39  segmentationMethod,
42  usePrecomputedMasksOnly,
43  frameQueueSize
44  ));
45 
46  return cofusion;
47 }
48 
49 
50 #else
51 
52 std::unique_ptr<CoFusion> CoFusionParams::makeCoFusion() const
53 {
54  Resolution::setResolution(width, height);
55  Intrinsics::setIntrinics(fx, fy, cx, cy);
56 
57  std::unique_ptr<CoFusion> cofusion;
58 
59  cofusion.reset(new CoFusion(
60  timeDelta,
62  errThresh,
63  covThresh,
64  closeLoops,
65  iclnuim,
66  reloc,
70  depthCut,
71  icpThresh,
72  fastOdom,
73  fernThresh,
74  so3,
80  ));
81 
82  return cofusion;
83 }
84 
85 #endif
86 
armarx::CoFusionParams::iclnuim
bool iclnuim
Definition: CoFusionParams.h:32
armarx::CoFusionParams::errThresh
float errThresh
Definition: CoFusionParams.h:29
armarx::CoFusionParams::countThresh
int countThresh
Definition: CoFusionParams.h:28
armarx::CoFusionParams::width
int width
Definition: CoFusionParams.h:49
armarx::CoFusionParams::closeLoops
bool closeLoops
Definition: CoFusionParams.h:31
armarx::CoFusionParams::timeDelta
int timeDelta
Definition: CoFusionParams.h:27
armarx::CoFusionParams::initConfidenceGlobal
float initConfidenceGlobal
Definition: CoFusionParams.h:35
armarx::CoFusionParams::covThresh
float covThresh
Definition: CoFusionParams.h:30
armarx::CoFusionParams::fastOdom
bool fastOdom
Definition: CoFusionParams.h:39
armarx::CoFusionParams::modelSpawnOffset
unsigned modelSpawnOffset
Definition: CoFusionParams.h:43
armarx::CoFusionParams::depthCut
float depthCut
Definition: CoFusionParams.h:37
armarx::CoFusionParams::fy
float fy
Definition: CoFusionParams.h:52
armarx::CoFusionParams::initConfidenceObject
float initConfidenceObject
Definition: CoFusionParams.h:36
armarx::CoFusionParams::fernThresh
float fernThresh
Definition: CoFusionParams.h:40
armarx::CoFusionParams::photoThresh
float photoThresh
Definition: CoFusionParams.h:34
armarx::CoFusionParams::exportSegmentationResults
bool exportSegmentationResults
Definition: CoFusionParams.h:47
armarx::CoFusionParams::fx
float fx
Definition: CoFusionParams.h:51
armarx::CoFusionParams::cx
float cx
Definition: CoFusionParams.h:53
armarx::CoFusionParams::exportDirectory
std::string exportDirectory
Definition: CoFusionParams.h:46
CoFusionParams.h
armarx::CoFusionParams::matchingType
Model::MatchingType matchingType
Definition: CoFusionParams.h:44
armarx::CoFusionParams::CoFusionParams
CoFusionParams()
Definition: CoFusionParams.cpp:5
armarx::CoFusionParams::height
int height
Definition: CoFusionParams.h:50
armarx::CoFusionParams::reloc
bool reloc
Definition: CoFusionParams.h:33
armarx::CoFusionParams::cy
float cy
Definition: CoFusionParams.h:54
armarx::CoFusionParams::makeCoFusion
std::unique_ptr< CoFusion > makeCoFusion() const
Definition: CoFusionParams.cpp:52
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::CoFusionParams::so3
bool so3
Definition: CoFusionParams.h:41
armarx::CoFusionParams::icpThresh
float icpThresh
Definition: CoFusionParams.h:38
armarx::CoFusionParams::frameToFrameRGB
bool frameToFrameRGB
Definition: CoFusionParams.h:42