- // Boolean the know if the registration it's done
- bool end_registration = false;
-
- /*
- * Set up the intrinsic camera parameters: CANON
- */
- double f = 45; // focal length in mm
- double sx = 22.3, sy = 14.9;
- double width = 2592, height = 1944;
- double params_CANON[] = { width*f/sx, // fx
- height*f/sy, // fy
- width/2, // cx
- height/2}; // cy
-
-
- // Setup the points to register in the image
- // In the order of the *.ply file and starting at 1
- int n = 8;
- int pts[] = {1, 2, 3, 4, 5, 6, 7, 8}; // 3 -> 4
-
- /*
- * Set up some basic colors
- */
- cv::Scalar red(0, 0, 255);
- cv::Scalar green(0,255,0);
- cv::Scalar blue(255,0,0);
- cv::Scalar yellow(0,255,255);
-
- /*
- * CREATE MODEL REGISTRATION OBJECT
- * CREATE OBJECT MESH
- * CREATE OBJECT MODEL
- * CREATE PNP OBJECT
- */
- ModelRegistration registration;
- Model model;
- Mesh mesh;
- PnPProblem pnp_registration(params_CANON);
+// Some basic colors
+cv::Scalar red(0, 0, 255);
+cv::Scalar green(0,255,0);
+cv::Scalar blue(255,0,0);
+cv::Scalar yellow(0,255,255);