private void button3_Click(object sender, EventArgs e) { brd_bmp = filter.Segmentate(ImageUtils.MakeGrayscale(seg_bmp)); picturebox3_bmp = new Bitmap(brd_bmp, ImageUtils.GenerateImageDimensions(brd_bmp.Width, brd_bmp.Height, pictureBox3.Width, pictureBox3.Height)); pictureBox3.Image = picturebox3_bmp; }
private void button1_Click(object sender, EventArgs e) { //progressBar1.Value = 0; res_bmp = filter.Segmentate(ImageUtils.MakeGrayscale(source_bmp)); picturebox2_bmp = new Bitmap(res_bmp, ImageUtils.GenerateImageDimensions(res_bmp.Width, res_bmp.Height, pictureBox2.Width, pictureBox2.Height)); pictureBox2.Image = picturebox2_bmp; }