private void niblackToolStripMenuItem_Click(object sender, EventArgs e) { //savedBitmap.Push(new Bitmap(picture)); //if (savedBitmap.Count() >= 0) // button1.Enabled = true; Niblack NiblackForm = new Niblack(this); NiblackForm.Show(); }
private void Binarisation_LocalTresholdNiblack(object sender, RoutedEventArgs e) { if (Binarization.IsImageColoured((BitmapSource)ModifiedImgSingleton.Source)) { MessageBox.Show("Obraz musi być czarno-biały", "Błąd", MessageBoxButton.OK, MessageBoxImage.Error); return; } var niblack = new Niblack(); niblack.Show(); }