CaptchaRecogition.gp_down.btn_binary_Click C# (CSharp) Метод

btn_binary_Click() приватный Метод

二值化处理
private btn_binary_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void btn_binary_Click(object sender, EventArgs e)
        {
            //去噪处理后的图片
            Image imgBinary = (Image)pb_noise.Image.Clone();
            //int v2 = ccccccmd.ImageHelper.ComputeThresholdValue((Bitmap)imgBinary);
           // int v2 = ImageProcess.ComputeThresholdValue((Bitmap)imgBinary);
           // imgBinary = ImageProcess.PBinary((Bitmap)imgBinary, v2);
            imgBinary = ImageProcess.Binary((Bitmap)imgBinary);
             imgBinaried = Image2Num((Bitmap)imgBinary);
            WriteToFile(imgBinaried, "experiment\\" + Path.GetFileNameWithoutExtension(imgurl) + "_binaried.txt");
            pb_noise_binary.Image = imgBinary;
        }
        /// <summary>