Example #1
0
        private void 直方图均衡化ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            checkPictureBox1();
            if (!valid)
            {
                return;
            }

            Bitmap original = new Bitmap(pictureBox1.Image);

            pictureBox3.Image = GraphicClass.drawHistogram(original);

            Bitmap result = GraphicClass.histogramEqualization(original);

            pictureBox1.Image = GraphicClass.convertRGB2Gray(original);

            pictureBox2.Image = result;
            pictureBox4.Image = GraphicClass.drawHistogram(result);
        }