Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the MainWindow class.
        /// </summary>
        public MainWindow()
        {
            this.skelRec = new SkelRecorder();

            this.skelDisp = new SkelDisplay(null);

            InitializeComponent();

            // TODO: Delete this
            if (isTesting)
            {
                AnnTester.initNeuralNetworkTest();
            }

            try
            {
                if (!isTesting)
                {
                    if (isRecord)
                    {
                        Client.BeginReceive(new AsyncCallback(recv), null);
                    }
                    else
                    {
                        this.calibration = new Calibration(SESSION_TIMESTAMP, numOfCameras, this.skelDisp);
                    }
                }
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.ToString());
            }
        }
Esempio n. 2
0
 private void timer2_Tick(object sender, EventArgs e)
 {
     /* Tests. TODO: Delete*/
     if (isTesting)
     {
         DrawingGroup drawingGroup = new DrawingGroup();
         Image.Source = new DrawingImage(drawingGroup);
         AnnTester.runNeuralNetworkTest(drawingGroup);
     }
     /* --- */
     else
     {
         this.calibration.calibrate();
     }
 }