很简单,一个对象使用apply()函数搞定。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AForge.Imaging;
using AForge.Imaging.Filters;
using AForge;
namespace aforge_test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e) //中值滤波
{
Bitmap a = new Bitmap("adaptive_smooth.png");
pictureBox1.Image = a;
Median luobi = new Median(5);
pictureBox2.Image= luobi.Apply(