9 #ifndef __SPHERICALCALIBTOOL__
10 #define __SPHERICALCALIBTOOL__
14 #include <yarp/sig/all.h>
15 #include <yarp/os/Value.h>
18 #include <opencv2/core/core_c.h>
21 #include <iCub/ICalibTool.h>
22 #include <iCub/spherical_projection.h>
35 double _fx, _fx_scaled;
36 double _fy, _fy_scaled;
37 double _cx, _cx_scaled;
38 double _cy, _cy_scaled;
49 bool _drawCenterCross;
51 bool init(CvSize currImgSize, CvSize calibImgSize);
58 virtual bool open (yarp::os::Searchable &config);
60 virtual bool configure (yarp::os::Searchable &config);
65 void apply(
const yarp::sig::ImageOf<yarp::sig::PixelRgb> & in,
66 yarp::sig::ImageOf<yarp::sig::PixelRgb> &
out);