Exemple #1
0
 public void resetMainWindow()
 {
     if (File.Exists("KinectScanConfig.json"))
     {
         KinectScanConfig kinectScanConfig = new KinectScanConfig("KinectScanConfig.json");
         kinectScanConfig.setRunStatus(false, false);
         kinectScanConfig.makeConfigFile();
     }
     Thread.Sleep(1000);
     PlayKinects();
 }
Exemple #2
0
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     //previewCams = false;
     stopThreads = true;
     if (File.Exists("KinectScanConfig.json"))
     {
         KinectScanConfig kinectScanConfig = new KinectScanConfig("KinectScanConfig.json");
         kinectScanConfig.setRunStatus(false, false);
         kinectScanConfig.makeConfigFile();
     }
 }
Exemple #3
0
        private void Scan1_Loaded(object sender, RoutedEventArgs e)
        {
            // GENERATE FILE NAMES

            // create new kinectscan config file
            //kinectScanConfig.setColorImgNames("ColorImg");
            //kinectScanConfig.setColorCropImgName("ColorCropImg");
            //kinectScanConfig.setDepthImgNames("DepthImg");
            kinectScanConfig.setCropSettings(
                FrameMarginLRSides: mw.appConfig.FrameMarginLRSides,
                FrameMarginTBSides: mw.appConfig.FrameMarginTBSides,
                ImgCrop_edgeTreshold_HorizBottom: mw.appConfig.ImgCrop_edgeTreshold_HorizBottom,
                ImgCrop_edgeTreshold_HorizTop: mw.appConfig.ImgCrop_edgeTreshold_HorizTop,
                ImgCrop_edgeTreshold_Vert: mw.appConfig.ImgCrop_edgeTreshold_Vert,
                DepthDelta_mm: mw.appConfig.DepthDelta_mm);
            kinectScanConfig.SetChromaKey(mw.appConfig.chromaKeySetting);
            kinectScanConfig.makeConfigFile();
            Thread.Sleep(1000);
            // launch kinectscan
            mw.runKinectScan = true;
        }