Example for median filtering images
- 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<4) {
cerr << "num args " << argc << " usage: filtersizeX filtersizeY sourceimage destimage \n";
return -2;
}
BIASERR("error loading image "<<argv[3]);
return -1;
} else {
cerr << "read "<<argv[3]<<endl;
}
BIASERR("error converting image "<<argv[3]);
}
median.
SetSize(atoi(argv[1]),atoi(argv[2]));
} else {
}
cout << "saving to " << string(argv[4]) << endl;
return 0;
}