Beispiel #1
0
        private void Bin_Lok_Click(object sender, RoutedEventArgs e)
        {
            TwoValueWindow window = new TwoValueWindow();

            if (window.ShowDialog().Value)
            {
                BinarizationLibrary bl = new BinarizationLibrary();
                image.Source = BitmapToImageSource(bl.TransformBinaryNiblack(imageDisplayed, window._size, window._k));
            }
        }
Beispiel #2
0
        private void Bin_Reczna_Click(object sender, RoutedEventArgs e)
        {
            getOneValueWindow wi = new getOneValueWindow();

            if (wi.ShowDialog().Value)
            {
                BinarizationLibrary bl = new BinarizationLibrary();
                image.Source = BitmapToImageSource(bl.TransformBinary(imageDisplayed, wi._value));
            }
        }
Beispiel #3
0
        private void Thinning_Click(object sender, RoutedEventArgs e)
        {
            //krok 1: binaryzacja
            BinarizationLibrary bl = new BinarizationLibrary();
            Bitmap bi = bl.TransformBinary(imageDisplayed, 125);

            //krok2: algorytm ścieniania
            ThinningLibrary thinning = new ThinningLibrary();

            image.Source = BitmapToImageSource(thinning.thin(bi));
        }
Beispiel #4
0
        private void Bin_Automat_Click(object sender, RoutedEventArgs e)
        {
            BinarizationLibrary bl = new BinarizationLibrary();

            image.Source = BitmapToImageSource(bl.TransformOtsu(imageDisplayed));
        }
Beispiel #5
0
        private void Odcienie_Szarosci_Click(object sender, RoutedEventArgs e)
        {
            BinarizationLibrary bl = new BinarizationLibrary();

            image.Source = BitmapToImageSource(bl.ConvertToGrayscale(imageDisplayed));
        }