public AccuracyAlgorithms(OriganalImage beforeImage, OriganalImage afterImage, Info info) { InitializeComponent(); originalImage = beforeImage; originalImage2 = afterImage; isClicked = false; isClicked2 = false; rectModel = new Rectangle(0, 0, 0, 0); rectSearch = new Rectangle(0, 0, 0, 0); rectFind = new Rectangle(0, 0, 0, 0); penWhite = new Pen(Color.White, 1); penGreen = new Pen(Color.Green, 1); penYellow = new Pen(Color.Yellow, 1); penDarkOrange = new Pen(Color.DarkOrange, 1); rectModel = new Rectangle(); this.image = originalImage.getRedBitmap(); this.image2 = originalImage2.getRedBitmap(); imageOrigin = (Bitmap)image.Clone(); imageOrigin2 = (Bitmap)image2.Clone(); imagePaint = new Bitmap(image.Width, image.Height); imagePaint2 = new Bitmap(image2.Width, image2.Height); pictureBox1.Image = image; pictureBox2.Image = image2; image4 = (Bitmap)image2.Clone(); modelForm = new Model(); aac = new AccuracyAlgorithmsCorrelation(info); points = new List <Point>(); points2 = new List <Point>(); points4 = new List <Point>(); }
public Accuracy(OriganalImage beforeImage, OriganalImage afterImage, Info info) { InitializeComponent(); this.beforeImage = beforeImage; this.afterImage = afterImage; currentBefore = (Bitmap)beforeImage.getRedBitmap().Clone(); currentAfter = (Bitmap)afterImage.getRedBitmap().Clone(); pictureBox1.Image = currentBefore; pictureBox2.Image = currentAfter; imagePaintBefore = new Bitmap(currentBefore.Width, currentBefore.Height); imagePaintAfter = new Bitmap(currentAfter.Width, currentAfter.Height); penWhite = new Pen(Color.White, 1); penGreen = new Pen(Color.Green, 1); penYellow = new Pen(Color.Yellow, 1); penDarkOrange = new Pen(Color.DarkOrange, 1); isClicked = false; rectModel = new Rectangle(0, 0, 0, 0); this.info = info; }
private void radioButton1_CheckedChanged(object sender, EventArgs e) { currentBefore = (Bitmap)beforeImage.getRedBitmap().Clone(); currentAfter = (Bitmap)afterImage.getRedBitmap().Clone(); pictureBox1.Image = currentBefore; pictureBox2.Image = currentAfter; }
private void radioButton1_CheckedChanged(object sender, EventArgs e) { image = originalImage.getRedBitmap(); image2 = originalImage2.getRedBitmap(); imageOrigin = (Bitmap)image.Clone(); imageOrigin2 = (Bitmap)image2.Clone(); imagePaint = new Bitmap(image.Width, image.Height); imagePaint2 = new Bitmap(image2.Width, image2.Height); pictureBox1.Image = image; pictureBox2.Image = image2; }
private void button4_Click(object sender, EventArgs e) { PictureShow newForm = new PictureShow(Colors.RED, colorModel, orgImg.getRedBitmap(), modelImg, model); newForm.Show(); }