private void FiltrM5x5_Click(object sender, RoutedEventArgs e) { FiltrLibrary lib = new FiltrLibrary(); Bitmap result = lib.FiltrMediana(imageDisplayed, null, 2); MessageBox.Show("Koniec"); image.Source = BitmapToImageSource(result); }
private void Filtr_konwolucyjny_Click(object sender, RoutedEventArgs e) { var getMask = new GetMask(); getMask.ShowDialog(); var mask = getMask._mask; FiltrLibrary lib = new FiltrLibrary(); Bitmap result = lib.FiltrKonwolucyjny(imageDisplayed, mask); MessageBox.Show("Koniec"); image.Source = BitmapToImageSource(result); }