public BinarizationWindow(MainWindow mainWindow)
        {
            this.mainWindow = mainWindow;
            InitializeComponent();
            imageTransformations = new ImageTransformations();
            operationalBitmap    = new Bitmap(this.mainWindow.Bitmap);

            pb_inputImageBinarization.Image = this.mainWindow.Bitmap;
            rb_userThreshold.Checked        = true;
            lb_userThreshold.Text           = trackb_binarizationThreshold.Value.ToString();
        }
Beispiel #2
0
        public ImageHistogramWindow(MainWindow mainWindow)
        {
            this.mainWindow       = mainWindow;
            operatingBitmap       = new Bitmap(this.mainWindow.Bitmap);
            imageTransformations  = new ImageTransformations();
            statisticsDataOfImage = new StatisticsDataOfImage();

            InitializeComponent();

            pb_entranceImage.Image            = this.mainWindow.Bitmap;
            pb_imageHistogram.Image           = new Bitmap(255, pb_imageHistogram.Height);
            cb_histogramChannel.SelectedIndex = 0;
            rb_histogram.Checked = true;
        }
        public GeometricalTransformationWindow(MainWindow okno)
        {
            mainWindow = okno;

            imageTransformations       = new ImageTransformations();
            operationalBitmap          = new Bitmap(okno.Bitmap);
            cutedFragmentOfImageBitmap = operationalBitmap;
            ratioOfAngle = 0;
            zoomPosition = 0;
            outputHeight = operationalBitmap.Height;
            outputWidth  = operationalBitmap.Width;

            InitializeComponent();
        }
Beispiel #4
0
        public BrightnessOperationWindow(MainWindow mainWindow)
        {
            this.mainWindow = mainWindow;
            InitializeComponent();
            imageTransformations = new ImageTransformations();

            pb_inputImage.Image = this.mainWindow.Bitmap;

            operationalBitmap            = new Bitmap(this.mainWindow.Bitmap);
            rb_brightnessOfImage.Checked = true;

            lb_levelOfOperation.Text = @"Poziom min: " + trackb_levelOfOperation.Minimum + Environment.NewLine
                                       + @"Poziom max: " + trackb_levelOfOperation.Maximum + Environment.NewLine + @"Aktualny poziom: " + trackb_levelOfOperation.Value;
        }
        public MainWindow()
        {
            InitializeComponent();
            AppDomain.CurrentDomain.ProcessExit += OnProcessExit;

            imageTransformations = new ImageTransformations();
            CollectionOfBitmapTransformations = new List <Bitmap>();
            Bitmap = new Bitmap(Properties.Resources.Lena);
            getReadyToImageDetectionTask = new Task(GetReadyToImageDetection);

            getReadyToImageDetectionTask.Start();
            gb_imageDetectionTools.Enabled = false;
            pb_entranceImage.Image         = Bitmap;

            rTB_loggerOfImageTransformationHistory.Text += @"Obraz domyślny," + Environment.NewLine;
        }