Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (CreatModel == true)
     {
         HalconCommonFunc.CreateModel(PublicData.createNewCheckModel.ModelImage, PublicData.createNewCheckModel.VisualModelRegion,
                                      out PublicData.createNewCheckModel.VisualModelID, out TransContours);
         HalconCommonFunc.DisplayImage(PublicData.createNewCheckModel.ModelImage, WindowsHandle);
         HalconCommonFunc.DisplayRegionOrXld(TransContours, "blue", WindowsHandle, 2);
     }
     else
     {
         MessageBox.Show("还未框定区域");
     }
 }