private void proccessButton_Click(object sender, RoutedEventArgs e) { resultsGrid.Visibility = System.Windows.Visibility.Visible; ImageProcessing process = new ImageProcessing(); byte[] processedImageBytes; byte[] grayscale = process.setGrayscale(originalImageBytes); ArrayData inputData = new ArrayData(grayscale, originalImage.PixelWidth, originalImage.PixelHeight); timer.Start(); var outputData = process.houghTransform(inputData, 360, 360, 20); processedImageBytes = outputData.dataArray; timer.Stop(); timeElapsed1.Content = "Time: " + timer.ElapsedMilliseconds + " ms"; blurImage1.Source = ImageConvertor.ByteArrayToImage(processedImageBytes, outputData.width, outputData.height, 1); }