Example for median filtering images with 3x3
- Author
- MIP
#include "Filter/Median.hh"
#include "Base/Image/ImageIO.hh"
#include <iostream>
#include <Base/Debug/TimeMeasure.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[])
{
if (!(argc>1)){
BIASERR("no arg"); return -1;
};
BIASASSERT(argc>1);
cout <<"Error loading "<<argv[1]<<endl;
exit(-1);
}
diff = orig-filtered;
return 0;
}