예제 #1
0
 public override void Initialize()
 {
     objData = new MObjData(CodedImage, ObjectSelection, -1);
     Roi     = new EROIBW8();
     Roi.SetPlacement(0, 0, 300, 300);
     ResultData.Name = objConfig.ToolName;
     ResultData.ValueParams.Clear();
     ResultData.ValueParams.Add("斑点数量", new float[] { 0 });
     ResultData.ValueParams.Add("斑点面积", new float[] { 0 });
     ResultData.ValueParams.Add("斑点中心X", new float[] { 0 });
     ResultData.ValueParams.Add("斑点中心Y", new float[] { 0 });
     ResultData.ValueParams.Add("斑点重心X", new float[] { 0 });
     ResultData.ValueParams.Add("斑点重心Y", new float[] { 0 });
     ResultData.ValueParams.Add("斑点宽度", new float[] { 0 });
     ResultData.ValueParams.Add("斑点高度", new float[] { 0 });
     ResultData.ValueParams.Add("斑点角度", new float[] { 0 });
     ParentTask.ResultDatas.Add(ResultData);
 }
예제 #2
0
        private void ObjectFrm_Load(object sender, EventArgs e)
        {
            objdata = objEvent.objData;
            picbox_ToolEdit.MRois.Add(objEvent.Roi);
            picbox_ToolEdit.objDatas.Add(objdata);
            if (objEvent.InputImg != null)
            {
                objEvent.Roi.Attach(objEvent.InputImg);
            }
            this.comboBox2.SelectedIndexChanged += delegate { UpdateUIToEvent(); Run(); };
            this.ckBox_Roi.CheckedChanged       += delegate {
                panel3.Visible = ckBox_Roi.Checked;
                UpdateUIToEvent();
            };

            chkbox_Sort.CheckedChanged     += delegate { UpdateUIToEvent(); };
            comboBox3.SelectedIndexChanged += delegate { UpdateUIToEvent(); };
            radbtn_Ascend.CheckedChanged   += delegate { UpdateUIToEvent(); };
            radbtn_Descend.CheckedChanged  += delegate { UpdateUIToEvent(); };
        }