//测试
        //opencv_method_index op;
        public void testswitch()
        {
            opencv_method_index op = new opencv_method_index();

            switch (op)
            {
            case opencv_method_index.cvt_color:
                MessageBox.Show("1");
                break;
            }
        }
        //public static opencvmethod obj_opencv_method = null;

        public Mat anopencv_method_run(Mat input_img, Mat output_img)
        {
            opencv_method_index index = new opencv_method_index();

            switch (index)
            {
            case opencv_method_index.cvt_color:
            {
                Cv2.CvtColor(input_img, output_img, ColorConversionCodes.RGB2BGR);
                break;
            }

            case opencv_method_index.threshold:
            {
                Cv2.Threshold(input_img, output_img, 50, 200, ThresholdTypes.Otsu);
                break;
            }

            case opencv_method_index.canny:
            {
                Cv2.Canny(input_img, output_img, 45, 200);
                break;
            }

            default:
                //Console.WriteLine("default");
                //FormMain form = new FormMain();
                MessageBox.Show("default");
                break;
            }


            //FormMain form = new FormMain();


            return(output_img);
        }