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]); } } }
private void button7_Click(object sender, EventArgs e) { pictureBox2.Image = Transformations.IerarhOtsu(sourceFile, intensity, (int)numericUpDown4.Value); }
private void button6_Click(object sender, EventArgs e) { pictureBox2.Image = Transformations.LocalOtsu(sourceFile); }
private void button5_Click(object sender, EventArgs e) { pictureBox2.Image = Transformations.GlobalOtsu(sourceFile, intensity); }
private void button4_Click(object sender, EventArgs e) { pictureBox2.Image = Transformations.BinarizationD(sourceFile, (int)numericUpDown2.Value, (int)numericUpDown3.Value); }
private void button1_Click(object sender, EventArgs e) { pictureBox2.Image = Transformations.QuantizationImage(sourceFile, (int)numericUpDown1.Value); }