Esempio n. 1
0
        /// <summary>
        /// Stretch Image Histogram
        /// </summary>
        private void Stretch()
        {
            this.labelLoading.Text = "Stretching Histogram from image...";
            this.Update();

            int lower = (int)this.numericUpDownLower.Value;
            int upper = (int)this.numericUpDownUpper.Value;

            this.pictureBoxStretched.Image = Histogram.Stretch(lower, upper);

            HistogramStretched = new Histogram((Bitmap)this.pictureBoxStretched.Image);

            this.isStretched       = true;
            this.labelLoading.Text = "";
        }