예제 #1
0
        public AffineTransformationForm(Bitmap image)
        {
            InitializeComponent();

            pictureBox1.Image = image;
            this.image        = (Bitmap)image.Clone();

            pictureBox1.Size  = new Size(image.Width, image.Height);
            pictureBox1.Image = this.image;

            at = new AffineTransformation(image);
        }
예제 #2
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();
        }