Пример #1
0
        private void ImportCameraModel()
        {
            CalibrationParameters pars = metaContext.Get <CalibrationParameters>();

            if (pars.Profiles.ContainsKey(_key))                  //check if the dict has the key for the calibration you're after.
            {
                CalibrationProfile profile = pars.Profiles[_key]; //get the calibration
                _cameraModel = profile.CameraModel;
                UpdateParameters();
            }
        }
Пример #2
0
        /// <summary>
        /// Import the Pose from Calibration Parameters
        /// </summary>
        public void CalibratePose()
        {
            CalibrationParameters pars = metaContext.Get <CalibrationParameters>();

            // Remove from event
            pars.OnParametersReady -= CalibratePose;

            if (pars.Profiles.ContainsKey(_key))                  //check if the dict has the key for the calibration you're after.
            {
                CalibrationProfile profile = pars.Profiles[_key]; //get the calibration
                _poseMatrix = profile.RelativePose;
                UpdatePose();
            }
        }