Example #1
0
        private void button10_Click(object sender, EventArgs e)
        {
            Info info = new Info();

            info.a0 = 0;
            info.a1 = 1.05d;
            info.a2 = 0.05d;
            info.b0 = 0;
            info.b1 = 0.05d;
            info.b2 = 1.05d;

            AffineTransformation at = new AffineTransformation(orgImg.getRGBBitmap());

            at.transform(info.a0, info.a1, info.a2, info.b0, info.b1, info.b2, true);

            OriganalImage origanalImage2 = new OriganalImage(at.getTransformImage(), progressBar1);

            AccuracyAlgorithms newForm = new AccuracyAlgorithms(orgImg, origanalImage2, info);

            newForm.Show();
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Info info = new Info();

            info.a0 = Convert.ToDouble(textBox1.Text);
            info.a1 = Convert.ToDouble(textBox3.Text);
            info.a2 = Convert.ToDouble(textBox5.Text);
            info.b0 = Convert.ToDouble(textBox2.Text);
            info.b1 = Convert.ToDouble(textBox4.Text);
            info.b2 = Convert.ToDouble(textBox6.Text);

            OriganalImage origanalImage = new OriganalImage(image, new ProgressBar());

            at.transform(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox3.Text),
                         Convert.ToDouble(textBox5.Text), Convert.ToDouble(textBox2.Text),
                         Convert.ToDouble(textBox4.Text), Convert.ToDouble(textBox6.Text),
                         radioButton1.Checked);
            OriganalImage origanalImage2 = new OriganalImage(at.getTransformImage(), new ProgressBar());

            AccuracyAlgorithms newForm = new AccuracyAlgorithms(origanalImage, origanalImage2, info);

            newForm.Show();
        }