configuration.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * configuration.h
  3. *
  4. * Created on: Jul 15, 2017
  5. * Author: jjanai
  6. */
  7. #ifndef CONFIGURATION_H_
  8. #define CONFIGURATION_H_
  9. #include <iostream>
  10. #include <string>
  11. #define IDENT(x) x
  12. #define XSTR(x) #x
  13. #define STR(x) XSTR(x)
  14. #define CONCAT(x,y) STR(IDENT(x)IDENT(y))
  15. //############################# PLEASE SPECIFY #############################
  16. const std::string DEEPMATCHING_PATH = "[SPECIFY PATH TO DEEP MATCHING]"; // DeepMatching
  17. #define MIDDLEBURY_PATH(file) CONCAT([SPECIFY PATH TO MIDDLEBURY DEVKIT], file) // Middlebury Devkit
  18. #define GCO_PATH(file) CONCAT([SPECIFY PATH TO GRAPH CUT], file) // Graph cut library
  19. #define TRWS_PATH(file) CONCAT([SPECIFY PATH TO TRWS], file) // Tree-Reweigthed Message Passing
  20. //#define DMGUNTURK
  21. //#define DMGUNTURK_PATH(file) CONCAT([SPECIFY PATH TO HAMILTON ADAMS DEMOSAICING], file) // Gunturk-Altunbasak-Mersereau Alternating Projections Image Demosaicking
  22. //############################# PLEASE SPECIFY #############################
  23. // source path
  24. const std::string SOURCE_FILE = __FILE__;
  25. const std::string SOURCE_PATH = SOURCE_FILE.substr(0, SOURCE_FILE.rfind("/") + 1);
  26. #endif /* CONFIGURATION_H_ */