private void buttonBinaryImage_Click(object sender, EventArgs e) { if (bitmap == null) { MessageBox.Show("Select an image to work with.(By clicking on it)\n " + "If there is no image, then upload it by clicking the <open image>", "Error: no image selected", MessageBoxButtons.OK ); return; } buttonBinaryImage.Enabled = false; pictureBox2.Image = FiltersForImage.bynaryImage(bitmap); buttonBinaryImage.Enabled = true; }
private void buttonHough_Click(object sender, EventArgs e) { if (bitmap == null) { MessageBox.Show("Select an image to work with.(By clicking on it)\n " + "If there is no image, then upload it by clicking the <open image>", "Error: no image selected", MessageBoxButtons.OK ); return; } buttonHough.Enabled = false; Bitmap bmp = FiltersForImage.bynaryImage(bitmap); pictureBox4.Image = HoughTransform.Hough(bmp, trackBar4.Value); buttonHough.Enabled = true; }