private void button14_Click(object sender, EventArgs e) { MessageBox.Show("在左侧图像里框取ROI区域,调整完后按鼠标右键以确定!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information); string fileName = AppConfig.VisonPath + "\\CenterLocROI.hobj"; DrawROI Pen = new DrawROI(); Pen.DrawCircleRingROI(WinCtro_CLP.HalconWindow, fileName); }
private void button3_Click(object sender, EventArgs e) { MessageBox.Show("在左侧图像里框取ROI区域,调整完后按鼠标右键以确定!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information); DrawROI DR = new DrawROI(); DR.DrawCricle(WinCtro_CLP.HalconWindow); tB_x.Text = Convert.ToString(System.Math.Round(DR.row[0].D, 4)); tB_y.Text = Convert.ToString(System.Math.Round(DR.column[0].D, 4)); tB_r.Text = Convert.ToString(System.Math.Round(DR.radius[0].D, 4)); }