예제 #1
0
 private void changeApplyFunctionCorrection_Click(object sender, EventArgs e)
 {
     correction3       = new FunctionCorrection((Bitmap)pictureBox2.Image);
     correction4       = new CorrectionWithEqualizationHist((Bitmap)pictureBox2.Image);
     pictureBox1.Image = pictureBox2.Image;
     pictureBox2.Image = null;
     pictureBoxHistCorrection2.Image = null;
     chartHistCorrection2.Visible    = false;
 }
예제 #2
0
        //-------------------

        private void loadPictureToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                sourceFile        = new Bitmap(openFileDialog1.FileName);
                pictureBox1.Image = sourceFile;
                correction1       = new CorrectionWithBasicColor(sourceFile);
                correction2       = new CorrectionGreyWorld(sourceFile);
                correction3       = new FunctionCorrection(sourceFile);
                correction4       = new CorrectionWithEqualizationHist(sourceFile);
            }
        }