Example for median filtering images wiht 3x3
- Author
- MIP
#include "Filter/Median.hh"
#include "Base/Image/ImageIO.hh"
#include <Base/Image/ImageConvert.hh>
#include <iostream>
#include <Base/Debug/TimeMeasure.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[]) {
if (argc<2) {
cerr << argv[0] << "source image \n";
return -2;
}
vector<Image<unsigned char> > images;
for (int i = 1; i < argc; i++) {
BIASERR("error loading image "<<argv[1]);
return -1;
} else {
cerr << "read "<<argv[i]<<endl;
}
images.push_back(im);
}
return 0;
}