public HObject medianImage(HObject pic)
        {
            Application.Current.Dispatcher.Invoke(new Action(() =>
            {
                ComboBox medianImageMaskType = (ComboBox)FindName(CurrentStepGroupBox + "medianImageMaskType");
                if (medianImageMaskType == null)
                {
                    return;
                }
                ComboBox medianImageRadius = (ComboBox)FindName(CurrentStepGroupBox + "medianImageRadius");
                if (medianImageRadius == null)
                {
                    return;
                }
                ComboBoxItem MaskType_selectedItem = (ComboBoxItem)(medianImageMaskType.SelectedValue);
                ComboBoxItem Radius_selectedItem   = (ComboBoxItem)(medianImageRadius.SelectedValue);

                string MaskType = (MaskType_selectedItem.Content).ToString();
                int Radius      = Convert.ToInt32(Radius_selectedItem.Content);

                Global_ProcessingPic = HD.MedianImage(pic, ProcessingPic.HalconWindow, MaskType, Radius, "mirrored");
                HOperatorSet.DispObj(Global_ProcessingPic, ProcessingPic.HalconWindow);
            }));
            return(Global_ProcessingPic);
        }