iCub-main
Loading...
Searching...
No Matches
icub-main
src
modules
dualCamCalib
src
main.cpp
Go to the documentation of this file.
1
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3
// Copyright (C) 2015 Istituto Italiano di Tecnologia - iCub Facility
4
// Author: Marco Randazzo <marco.randazzo@iit.it>
5
// CopyPolicy: Released under the terms of the GNU GPL v2.0.
6
7
// ***** THIS MODULE IS EXPERIMENTAL *****
8
9
// yarp
10
#include <yarp/os/Network.h>
11
12
// iCub
13
#include <iCub/CalibToolFactory.h>
14
#include <iCub/PinholeCalibTool.h>
15
#include <iCub/SphericalCalibTool.h>
16
#include <
iCub/DualCamCalibModule.h
>
17
18
// OpenCV
19
#include <opencv2/core/core_c.h>
20
21
using namespace
std;
22
using namespace
yarp::os;
23
using namespace
yarp::sig;
24
25
26
int
main
(
int
argc,
char
*argv[]) {
27
28
CalibToolFactories
& pool =
CalibToolFactories::getPool
();
29
pool.
add
(
new
CalibToolFactoryOf<PinholeCalibTool>
(
"pinhole"
));
30
pool.
add
(
new
CalibToolFactoryOf<SphericalCalibTool>
(
"spherical"
));
31
32
Network
yarp
;
33
ResourceFinder rf;
34
rf.setDefaultConfigFile(
"camCalib.ini"
);
//overridden by --from parameter
35
rf.setDefaultContext(
"cameraCalibration"
);
//overridden by --context parameter
36
rf.configure(argc, argv);
37
CamCalibModule
module
;
38
return
module
.runModule(rf);
39
}
DualCamCalibModule.h
CalibToolFactories
Definition
CalibToolFactory.h:44
CalibToolFactories::getPool
static CalibToolFactories & getPool()
Definition
CalibToolFactory.h:54
CalibToolFactories::add
void add(CalibToolFactory *factory)
Definition
CalibToolFactory.h:50
CalibToolFactoryOf
Definition
CalibToolFactory.h:27
CamCalibModule
Camera Calibration Module class.
Definition
CamCalibModule.h:61
main
int main()
Definition
main.cpp:67
yarp
Copyright (C) 2008 RobotCub Consortium.
Definition
DebugInterfaces.h:51
Generated on Wed Dec 18 2024 16:34:46 for iCub-main by
1.9.8