- Author
- MIP
#include <Filter/Rescale.hh>
#include <Base/Image/ImageIO.hh>
#include <Base/Image/ImageConvert.hh>
#include <Base/Debug/TimeMeasure.hh>
using namespace BIAS;
using namespace std;
#define type 1
#if type == 1
#define StorageType unsigned char
#define OutputImageType unsigned char
#else
#define StorageType float
#define OutputImageType float
#endif
int main(int argc, char *argv[])
{
int argind = 1;
if (argc-argind<1 || argind<1){
cerr << argv[0] << " [parameter] <im1> <im2> [ <im3> ... ] \n";
return -2;
}
for (int i=argind; i<argc; i++){
#if type == 1
#else
#endif
BIASERR("error loading image "<<argv[i]);
return -1;
} else {
cerr << "read "<<argv[i]<<endl;
}
#if type != 1
BIASERR("error converting image "<<argv[i]);
}
#endif
ostringstream name;
name << "rescale-"<<setw(4)<<setfill('0')<<i-argind<<".ppm";
}
return 0;
}