コード例 #1
0
        private void ImportCameraModel()
        {
            NodeLoaderModule pars = metaContext.Get <NodeLoaderModule>();

            if (pars.Profiles.ContainsKey(_key))                         //check if the dict has the key for the calibration you're after.
            {
                Plugin.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()
        {
            NodeLoaderModule pars = metaContext.Get <NodeLoaderModule>();

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

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