示例#1
0
 private void loadPictureToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         intensity         = Transformations.RGBtoGrey(new Bitmap(openFileDialog1.FileName), ref sourceFile);
         pictureBox1.Image = sourceFile;
         chart1.Series["Series1"].Points.Clear();
         for (int i = 0; i < 256; ++i)
         {
             chart1.Series["Series1"].Points.AddY(intensity[i]);
         }
     }
 }
示例#2
0
 private void button7_Click(object sender, EventArgs e)
 {
     pictureBox2.Image = Transformations.IerarhOtsu(sourceFile, intensity, (int)numericUpDown4.Value);
 }
示例#3
0
 private void button6_Click(object sender, EventArgs e)
 {
     pictureBox2.Image = Transformations.LocalOtsu(sourceFile);
 }
示例#4
0
 private void button5_Click(object sender, EventArgs e)
 {
     pictureBox2.Image = Transformations.GlobalOtsu(sourceFile, intensity);
 }
示例#5
0
 private void button4_Click(object sender, EventArgs e)
 {
     pictureBox2.Image = Transformations.BinarizationD(sourceFile,
                                                       (int)numericUpDown2.Value,
                                                       (int)numericUpDown3.Value);
 }
示例#6
0
 private void button1_Click(object sender, EventArgs e)
 {
     pictureBox2.Image = Transformations.QuantizationImage(sourceFile, (int)numericUpDown1.Value);
 }