Example #1
0
        //****************************************************************
        //****************************************************************
        public FrameProcessor(string Frame1, string Frame2)
        {
            // give the path of Illuminated and AmbientFrame image
            _frame1 = Frame1;
            _frame2 = Frame2;

            _captureSessionParameter = new CaptureSessionParameter();
            _previewParameter        = new PreviewParameter();
            //Initialize IR Image Queue
            _iRImageQueue = new Queue <ImageFrame>();

            _ImageAutoEvent = new AutoResetEvent(false);
            StartIRDeviceManagedThread();

            _sensorSourceManager = new FSSensorSourceManager(_iRImageQueue, _ImageAutoEvent, _displayAutoEvent);

            _frameProcessThread = new ThreadsManager();
            _frameProcessThread.ThreadStart(FrameProcessThread);
            _selectedIRindex = 0;
        }
Example #2
0
 private void StartIRDeviceManagedThread()
 {
     _displayAutoEvent      = new AutoResetEvent(false);
     _IRDeviceManagedThread = new ThreadsManager();
     _IRDeviceManagedThread.ThreadStart(IRDeviceManagedThread);
 }