e 学: [1] ?| AdaptiveSmoothing: 图像平滑处理,用于对图像进行适度的平滑,再平滑噪声的条件下保留边缘效应,实现如下: Bitmap bt= new Bitmap(@"C:\Users\GAOXIANG\Desktop\"); Bitmap bt1 = (new Rectangle(new Point(0,0),),); = bt; // create filter filter = new (); // apply the filter (bt1); 结果如下图所示。 Add : 将原始图像和叠置图像像素相加得到新图像, 我们通过红色+ 黄色= 橙色来展示运行结果: Bitmap bt= new Bitmap(@"C:\Users\GAOXIANG\Desktop\"); Bitmap bt1 = new Bitmap(@"C:\Users\GAOXIANG\Desktop\"); //创建过滤器 filter = new (bt); //图像相加 Bitmap resultImage = (bt1); 运行结果如下图。 AdditiveNoise: 通俗的翻译, 我们可以理解为添加剂噪声滤波器, 在原始图像的像素中添加一个随机值,随机值由 IRandomNumberGenerator 生成,示例如下: Bitmap bt= new Bitmap(@"C:\Users\GAOXIANG\Desktop\"); = new Bitmap(@"C:\Users\GAOXIANG\Desktop\"); //创建随机数组 IRandomNumberGenerator generator = new UniformGenerator(new Range(-50, 50)); //创建过滤器 filter = new (generator); //图像处理 (bt); 运行结果如下。 BackwardQuadrilateralTransformation: 后向四边形转换, 可以实现将原始图像转换到目标图像的四边形区域当中,示例如下: Bitmap bt= new Bitmap(@"C:\Users\GAOXIANG\Desktop\"); Bitmap bt1 = new Bitmap(@"C:\Users\GAOXIANG\Desktop\"); //定义四边形角点 List<IntPoint> corners = new List<IntPoint>(); (new IntPoint(99, 99)); (new IntPoint(156, 79)); (new IntPoint(184, 126)); (new IntPoint(122, 150)); // create filter filter = new (bt, corners); // apply the filter Bitmap newImage = (bt1); 运行结果: BayerDithering: 基于 Bayer 矩阵的图像有序抖动,实现如下: Bitmap bt= new Bitmap(@"C:\Users\GAOXIANG\Desktop\"); Bitmap bt1 = (new Rectangle(new Point(0,0),),); //创建过滤器 f
e学习笔记 来自淘豆网m.daumloan.com转载请标明出处.