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(); } }
/// <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(); } }