Example for deinterlacing interlaced images
- Author
- ischiller
#include <Filter/DeInterlace.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[])
{
if (argc<5){
cerr << argv[0] << " src dst useEvenLines(bool) dodownsamplingbytwo(bool)\n";
return -2;
}
#if type == 1
#else
#endif
BIASERR("error loading image "<<argv[1]);
return -1;
} else {
cerr << "read "<<argv[1]<<endl;
}
#if type != 1
BIASERR("error converting image "<<argv[1]);
}
#endif
return 0;
}