Exemplo n.º 1
0
        private void btn_Sure_Click(object sender, EventArgs e)
        {
            this.thresold_region.SelectedValue = this.thresold_region.Text;

            if (Check_pal())
            {
                UpdateThresholdTest.OnSendUpdateThresholdTest(new UpdateThresholdTestEventArgs(Threshold_image.SelectedItem.ToString(), thresold_region.Text.ToString() + ".region", comboBox_imageout.Text.ToString() + ".img", trackBar_min.Value, trackBar_max.Value, false));
                this.Visible = false;
            }
        }
Exemplo n.º 2
0
        public void sendevent()
        {
            this.thresold_region.SelectedValue = this.thresold_region.Text;

            if (Check_pal())
            {
                UpdateThresholdTest.OnSendUpdateThresholdTest(new UpdateThresholdTestEventArgs(Threshold_image.SelectedItem.ToString(), thresold_region.Text.ToString() + ".region", comboBox_imageout.Text.ToString() + ".img", trackBar_min.Value, trackBar_max.Value, false));
                //    this.Visible = false;
            }
        }
Exemplo n.º 3
0
 public bool Send_name()
 {
     if (Threshold_image.Items.Count == 0)
     {
         return(false);
     }
     if (Threshold_image.SelectedItem == null)
     {
         return(false);
     }
     UpdateThresholdTest.OnSendUpdateThresholdTest(new UpdateThresholdTestEventArgs(Threshold_image.SelectedItem.ToString() + ".img", thresold_region.Text.ToString() + ".region", comboBox_imageout.Text.ToString() + ".img", trackBar_min.Value, trackBar_max.Value, false));
     return(true);
 }
Exemplo n.º 4
0
        private void trackBar_max_ValueChanged(object sender, EventArgs e)
        {
            if (checkBox_dya.Checked)
            {
                if (this.Threshold_image.SelectedItem.ToString() == "" || this.Threshold_image == null)
                {
                    MessageBox.Show("二值化处理: 请选择输入图像");
                    return;
                }

                if (this.thresold_region == null && this.thresold_region.Text == "")
                {
                    MessageBox.Show("二值化处理: 请选择输出图像");
                    return;
                }

                if (this.trackBar_min.Value > this.trackBar_max.Value)
                {
                    MessageBox.Show("二值化处理: MinValue 不能超过MaxValue");
                    return;
                }
                UpdateThresholdTest.OnSendUpdateThresholdTest(new UpdateThresholdTestEventArgs(Threshold_image.SelectedItem.ToString() + ".img", thresold_region.Text.ToString() + ".region", comboBox_imageout.Text.ToString() + ".img", trackBar_min.Value, trackBar_max.Value, true));
            }
        }