private void ProcessAndDisplayImg() { UpdateParameters(); var currentImage = cc.ProcessImg(filePath); imgWindow.Source = CvUtils.ToBitmapSource(currentImage.Mat); }
private void bStart_Click(object sender, RoutedEventArgs e) { IImage img; if (String.IsNullOrEmpty(filePath)) { return; } UpdateParameters(); img = cc.ProcessImg(filePath); imgWindow.Source = CvUtils.ToBitmapSource(img); }