Пример #1
0
        /// <summary>
        /// Start the Calibration Procedure, by zeroing the data structures
        /// </summary>
        private void StartCalibrationProcedure()
        {
            LeftHand_Kinect_PA.Reset();
            RightHand_Kinect_PA.Reset();
            LeftHand_Hololens_PA.Reset();
            RightHand_Hololens_PA.Reset();

            LeftHand_Hololens_list.Clear();
            RightHand_Hololens_list.Clear();
            LeftHand_Kinect_list.Clear();
            RightHand_Kinect_list.Clear();

            calibration_points_acquired = 0;
        }
Пример #2
0
        /// <summary>
        /// First step of the calibration procedure: it gathers couples of points
        /// </summary>
        private void CalibratenewCoupleofPoints()
        {
            if (calibration_points_acquired++ > 0)
            {
                LeftHand_Kinect_PA.UpdateAverages(25, 80);
                RightHand_Kinect_PA.UpdateAverages(25, 80);
                LeftHand_Hololens_PA.UpdateAverages(25, 80);
                RightHand_Hololens_PA.UpdateAverages(25, 80);

                LeftHand_Hololens_list.Add(new Point3D(LeftHand_Hololens_PA.avg_x, LeftHand_Hololens_PA.avg_y, LeftHand_Hololens_PA.avg_z));
                RightHand_Hololens_list.Add(new Point3D(RightHand_Hololens_PA.avg_x, RightHand_Hololens_PA.avg_y, RightHand_Hololens_PA.avg_z));

                LeftHand_Kinect_list.Add(new Point3D(LeftHand_Kinect_PA.avg_x, LeftHand_Kinect_PA.avg_y, LeftHand_Kinect_PA.avg_z));
                RightHand_Kinect_list.Add(new Point3D(RightHand_Kinect_PA.avg_x, RightHand_Kinect_PA.avg_y, RightHand_Kinect_PA.avg_z));

                LeftHand_Kinect_PA.Reset();
                RightHand_Kinect_PA.Reset();
                LeftHand_Hololens_PA.Reset();
                RightHand_Hololens_PA.Reset();
            }
        }