private void ButtonGo_Click(object sender, RoutedEventArgs e) { System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); m_Engine = new Engine.Engine(); m_Engine.BoardImagePath = System.IO.Path.GetFullPath(".\\..\\Images\\MyBoards\\Board01.jpg"); m_Engine.Process(); sw.Stop(); TextBlockTimeTaken.Text = sw.ElapsedMilliseconds.ToString() + "ms"; OrigImage.Source = BitmapSourceConvert.ToBitmapSource(m_Engine.Board.BoardImage); OrigImageWithQuads.Source = BitmapSourceConvert.ToBitmapSource(m_Engine.Board.BoardImageWithBoxes); ShowPieceImage(); //GrayImage.Source = BitmapSourceConvert.ToBitmapSource(engine.Board.GrayImage); //CannyImage.Source = BitmapSourceConvert.ToBitmapSource(engine.Board.CannyImage); //LinesImage.Source = BitmapSourceConvert.ToBitmapSource(engine.Board.LinesImage); WarpedImage.Source = BitmapSourceConvert.ToBitmapSource(m_Engine.Board.WarpedImage); WarpedCannyImage.Source = BitmapSourceConvert.ToBitmapSource(m_Engine.Board.WarpedCannyImage); WarpedLinesImage.Source = BitmapSourceConvert.ToBitmapSource(m_Engine.Board.WarpedLinesImage); GridBoxesImage.Source = BitmapSourceConvert.ToBitmapSource(m_Engine.Board.GridQuadsImage); }