Beispiel #1
0
        private void ConvertToRGB_Click(object sender, RoutedEventArgs e)
        {
            if (background_image == null)
            {
                MessageBox.Show("请先加载图片!");
                return;
            }
            HOperatorSet.Decompose3(background_image, out RedPic, out GreenPic, out BluePic);

            HD.ShowSubPic(RedPicture.HalconWindow, RedPic);
            HD.ShowSubPic(GreenPicture.HalconWindow, GreenPic);
            HD.ShowSubPic(BluePicture.HalconWindow, BluePic);

            SubWindowHalconID.RedPictureHalconID = RedPicture.HalconID;

            SubWindowHalconID.RedPicrureHalconWindow = RedPicture.HalconWindow;

            SubWindowHalconID.RedPic   = RedPic;
            SubWindowHalconID.GreenPic = GreenPic;
            SubWindowHalconID.BluePic  = BluePic;
        }