28 #include <opencv2/opencv.hpp>
33 #include <VisionX/interface/components/KinectAndCameraCalibration.h>
36 #include <Math/Math3d.h>
37 #include <Math/Math2d.h>
57 defineOptionalProperty<std::string>(
"CameraImageProviderAdapterName",
"Armar3ImageProvider",
"Ice Adapter name of the camera image provider");
58 defineOptionalProperty<std::string>(
"KinectImageProviderAdapterName",
"OpenNIPointCloudProvider",
"Ice Adapter name of the Kinect image provider");
59 defineOptionalProperty<int>(
"NumberOfImages", 20,
"Number of images used for the calibration");
60 defineOptionalProperty<int>(
"WaitingIntervalBetweenImages", 500,
"Waiting time between captured images, in ms");
61 defineOptionalProperty<int>(
"NumberOfRows", 5,
"Number of rows on the calibration pattern");
62 defineOptionalProperty<int>(
"NumberOfColumns", 5,
"Number of columns on the calibration pattern");
63 defineOptionalProperty<double>(
"PatternSquareSize", 30.0,
"Size of the squares on the calibration pattern");
64 defineOptionalProperty<std::string>(
"OutputFileName",
"cameras.txt",
"Path to the file for saving the calibration");
85 virtual public visionx::KinectAndCameraCalibrationInterface
94 return "KinectAndCameraCalibration";
126 std::string cameraImageProviderName, kinectImageProviderName;
127 ImageProviderInterfacePrx cameraImageProviderPrx, kinectImageProviderPrx;
130 CByteImage** cameraImages, ** kinectImages;
131 int waitingIntervalBetweenImages, desiredNumberOfImages, numberOfCapturedImages;
132 double etalonParams[3];
134 std::string m_sCameraParameterFileName;
140 KinectPoseCalibration result;
141 KinectAndCameraCalibrationListenerPrx listenerPrx;