9 #ifndef __PINHOLECALIBTOOL__
10 #define __PINHOLECALIBTOOL__
19 #include <opencv2/core/core_c.h>
20 #include <opencv2/calib3d/calib3d_c.h>
21 #include <opencv2/calib3d.hpp>
25 #include <yarp/sig/all.h>
26 #include <yarp/os/Bottle.h>
27 #include <yarp/os/Value.h>
30 #include <iCub/ICalibTool.h>
42 CvMat *_intrinsic_matrix;
43 CvMat *_intrinsic_matrix_scaled;
44 CvMat *_distortion_coeffs;;
46 IplImage *_mapUndistortX;
47 IplImage *_mapUndistortY;
54 bool _drawCenterCross;
56 bool init(CvSize currImgSize, CvSize calibImgSize);
64 virtual bool open (yarp::os::Searchable &config);
65 virtual bool close ();
91 virtual bool configure (yarp::os::Searchable &config);
100 void apply(
const yarp::sig::ImageOf<yarp::sig::PixelRgb> & in,
101 yarp::sig::ImageOf<yarp::sig::PixelRgb> &
out);