Beispiel #1
0
 public void Calibrate(TurntableCalibrator calibrator)
 {
     if (calibrator.IsCalibrated)
     {
         NBTranslationX.Value = calibrator.TranslationX;
         NBTranslationY.Value = calibrator.TranslationY;
         NBTranslationZ.Value = calibrator.TranslationZ;
         NBRotationX.Value    = calibrator.RotationX;
         NBRotationZ.Value    = calibrator.RotationZ;
     }
 }
Beispiel #2
0
        public TurntableCalibrationForm(KinectScanContext context)
        {
            Context = context;
            InitializeComponent();
            Context.DeviceDisposing += Context_DeviceDisposing;
            RM = new ResourceManager(typeof(LocalizedResources));
            SetStep(1);
            ClientSize              = new System.Drawing.Size(Context.DepthWidth, Context.DepthHeight + 128);
            PHelp.Width             = PImage.Width = Context.DepthHeight;
            TLP.RowStyles[0].Height = Context.DepthHeight;
            PHelp.PerformLayout();

            SC             = SynchronizationContext.Current;
            TableA         = ModuleSettings.Default.CalibrationTableA;
            TableB         = ModuleSettings.Default.CalibrationTableB;
            StandardA      = ModuleSettings.Default.CalibrationCylinderA;
            StandardB      = ModuleSettings.Default.CalibrationCylinderB;
            Calibrator     = new TurntableCalibrator(Context);
            G3D            = new Graphics3D(Context.DepthWidth, Context.DepthHeight);
            G3D.Projection = Context.DepthIntrinsics;
        }