public Supervisor(UIDataModel dm)
        {
            dataBuffer = new ConcurrentQueue <RawImageSource>();
            detector   = new SmockDetector();
            dataModel  = dm;

            faceRec = new FaceRecognition();
        }
 private void btnCheckImg_Click(object sender, RoutedEventArgs e)
 {
     if (imgUT != null)
     {
         SmockDetector detector = new SmockDetector();
         //double minValue = Convert.ToDouble(this.txtMinorValue.Text);
         //double maxValue = Convert.ToDouble(this.txtMaxValue.Text);
         //this.CheckedImage.Source = detector.IsBlueMost(imgUT, minValue, maxValue).ToBitmapSource();
     }
 }
        public void DataHandleThreadMethod(object o)
        {
            SmockDetector detector = new SmockDetector();

            while (true)
            {
                if (!dataBuffer.IsEmpty)
                {
                    RawImageSource data;
                    if (dataBuffer.TryDequeue(out data))
                    {
                        HandleData(data);
                    }
                }
                Thread.Sleep(10);
            }
        }