摘要: /*实现思路很简单,就是以每一个像素点为中心框一个N*N的矩形,将矩形内的所有像素值排序,得到中位数,再重新把这个点的像素值设为中位数。*/#include "stdafx.h"#include #include #include #include using namespace std;const int N = 3;int pixl2int(IplImage *img, int x, int y) { return ((uchar *)(img->imageData + x*img->widthStep))[y];}void setPixl(IplImage 阅读全文
posted @ 2013-06-26 16:30 AC_Von 阅读(4571) 评论(0) 推荐(0) 编辑