Example for gauss filtering images
- Author
- MIP
#include <iostream>
#include "Filter/Gauss.hh"
#include "Base/Image/ImageIO.hh"
#include <Base/Debug/TimeMeasure.hh>
#include <Base/Common/BIASpragma.hh>
using namespace BIAS;
using namespace std;
#define TYPE2 unsigned char
int main(int argc, char *argv[])
{
cout <<"Error loading "<<argv[1]<<endl;
exit(-1);
}
cout<<"now filtering in 7x7"<<endl;
cout<<"now filtering in int"<<endl;
cout<<"now filtering in float"<<endl;
bool WantCompare = true;
if (WantCompare) {
TYPE2 fmin, fmax;
cerr << "differences between "<<(double)fmin<<" and "<<(double)fmax<<endl;
}
bool WantTiming = true;
if (WantTiming) {
for (int i=0; i<10; i++){
cout<<"now filtering in int"<<endl;
cout<<"now filtering in float"<<endl;
}
cout<<"Now comparing performance..."<<endl<<flush;
for (int i=0; i<100; i++){
}
cerr << "int took "<<endl;
cerr << "float took "<<endl;
cerr << "7x7 took "<<endl;
}
return 0;
}