Ejemplo n.º 1
0
        void scanner_RawFrameIn(object sender, Scanner.RawFrameEventArgs e)
        {
            if (SequenceRecording && e.FrameID % SequenceInterval == 0)
            {
                string path = WorkingDirectory + '\\' + SequenceLabel + '_' + SequenceCounter.ToString("D5");
                switch (e.FrameType)
                {
                case Scanner.FrameTypes.Depth:
                    SetSequenceCounter(SequenceCounter + 1);
                    path += ".rwd";
                    break;

                case Scanner.FrameTypes.Color:
                    path += ".rwc";
                    break;
                }
                SequenceTasks.Enqueue(new SequenceTask()
                {
                    Data     = e.Data,
                    FileName = path
                });

                for (int i = 0; i < SaveAREs.Length; i++)
                {
                    SaveAREs[i].Set();
                }
            }
        }
Ejemplo n.º 2
0
 void Scanner_RawFrameIn(object sender, Scanner.RawFrameEventArgs e)
 {
     if (e.FrameType == Scanner.FrameTypes.Depth)
     {
         Context.Scanner.RawFrameIn -= Scanner_RawFrameIn;
         SC.Post(CalibrationFrameIn, e.Data);
     }
 }