Beispiel #1
0
        private void Equalbtn_Click(object sender, EventArgs e)
        {
            image2 = (Bitmap)image.Clone();
            myclass.grayscale(image2);
            MyHistogram histogram = new MyHistogram();

            int[,] hist;
            hist = histogram.CalculateHistogram(image2);
            histogram.Equalization(image2, hist, comboBox1.SelectedIndex, (int)nmrMin.Value, (int)nmrMax.Value);
            pictureBox2.Image = image2;
            pictureBox2.Refresh();
        }
Beispiel #2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            MyHistogram histogram = new MyHistogram();

            int[,] hist;
            hist = histogram.CalculateHistogram(image);
            Bitmap histimage;

            histimage         = histogram.DrawHistogram(hist, comboBox1.SelectedIndex);
            pictureBox1.Image = histimage;
            pictureBox1.Refresh();
        }