示例#1
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));
            }
        }
示例#2
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));
        }