28 #include <opencv2/opencv.hpp>
35 #include <Math/Math3d.h>
36 #include <Math/Math2d.h>
54 defineOptionalProperty<std::string>(
"ImageProviderAdapterName",
"ImageProvider",
"Ice Adapter name of the image provider");
55 defineOptionalProperty<int>(
"NumberOfImages", 20,
"Number of images used for the calibration");
56 defineOptionalProperty<int>(
"WaitingIntervalBetweenImages", 500,
"Waiting time between captured images, in ms");
57 defineOptionalProperty<int>(
"NumberOfRows", 5,
"Number of rows on the calibration pattern");
58 defineOptionalProperty<int>(
"NumberOfColumns", 5,
"Number of columns on the calibration pattern");
59 defineOptionalProperty<double>(
"PatternSquareSize", 30.0,
"Size of the squares on the calibration pattern");
60 defineOptionalProperty<std::string>(
"OutputFileName",
"cameras.txt",
"Path to the file for saving the calibration");
88 return "CalibrationCreator";
112 std::string providerName;
113 ImageProviderInterfacePrx imageProviderPrx;
115 CvPoint2D32f* m_pCorners2DFloat;
116 CvPoint2D64f* m_pCorners2D;
117 CvPoint3D64f* m_pCorners3D;
119 CByteImage** cameraImages;
120 int waitingIntervalBetweenImages, desiredNumberOfImages, numberOfCapturedImages;
121 std::string m_sCameraParameterFileName;