RemoveNoise() 공개 정적인 메소드

去除噪点
public static RemoveNoise ( Bitmap img, int maxAroundPoints = 1 ) : Image
img System.Drawing.Bitmap 图片
maxAroundPoints int 噪点的最大粘连数
리턴 Image
예제 #1
0
        /// <summary>
        /// 去噪点
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_noise_Click(object sender, EventArgs e)
        {
            Image img_noise = ImageProcess.RemoveNoise((Bitmap)pb_bg.Image.Clone(), noiseThreshold);

            //img_noise = ccccccmd.ImageHelper.ClearNoise(img_noise, v, 2);
            imgNoised = Image2Num((Bitmap)img_noise);
            WriteToFile(imgNoised, "experiment\\" + Path.GetFileNameWithoutExtension(imgurl) + "_noised.txt");
            pb_noise.Image = img_noise;
        }