30 #include <opencv2/opencv.hpp>
37 #include <Math/Math2d.h>
38 #include <Math/Math3d.h>
53 defineOptionalProperty<std::string>(
"ImageProviderAdapterName",
55 "Ice Adapter name of the image provider");
56 defineOptionalProperty<int>(
57 "NumberOfImages", 20,
"Number of images used for the calibration");
58 defineOptionalProperty<int>(
59 "WaitingIntervalBetweenImages", 500,
"Waiting time between captured images, in ms");
60 defineOptionalProperty<int>(
61 "NumberOfRows", 5,
"Number of rows on the calibration pattern");
62 defineOptionalProperty<int>(
63 "NumberOfColumns", 5,
"Number of columns on the calibration pattern");
64 defineOptionalProperty<double>(
65 "PatternSquareSize", 30.0,
"Size of the squares on the calibration pattern");
66 defineOptionalProperty<std::string>(
67 "OutputFileName",
"cameras.txt",
"Path to the file for saving the calibration");
94 return "CalibrationCreator";
117 std::string providerName;
118 ImageProviderInterfacePrx imageProviderPrx;
120 CvPoint2D32f* m_pCorners2DFloat;
121 CvPoint2D64f* m_pCorners2D;
122 CvPoint3D64f* m_pCorners3D;
124 CByteImage** cameraImages;
125 int waitingIntervalBetweenImages, desiredNumberOfImages, numberOfCapturedImages;
126 std::string m_sCameraParameterFileName;