main.cpp 652 B

123456789101112131415161718192021222324252627282930
  1. #include <iostream>
  2. #include "CImg.h"
  3. using namespace cimg_library;
  4. #include "imgmanipbs.h"
  5. using namespace std;
  6. #ifndef cimg_imagepath
  7. #define cimg_imagepath "img/"
  8. #endif
  9. int main(int argc, char *argv[])
  10. {
  11. // Read input image filename from the command line (or set it to "./ref.jpg" if option '-i' is not provided).
  12. std::string file_i( cimg_option("-i","./ref.jpg","Input image") );
  13. // Read output foldername from the command line (or set it to "./" if option '-o' is not provided).
  14. std::string out_folder( cimg_option("-o","./","Output folder") );
  15. ImgManipBS im = ImgManipBS(file_i.c_str());
  16. return 0;
  17. }