typeTruncatedQuadratic2D.h 945 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __AJALSOQJAJSDFASD_H__
  2. #define __AJALSOQJAJSDFASD_H__
  3. #include <stdio.h>
  4. // This file is a stub, to make TRWS compile.
  5. namespace OBJREC
  6. {
  7. struct TypeTruncatedQuadratic2D
  8. {
  9. typedef double REAL;
  10. struct Edge
  11. {
  12. void DistanceTransformL2(int /*K*/, int /*stride*/, REAL /*alpha*/, REAL* /*source*/, REAL* /*dest*/,
  13. int* /*parabolas*/, int* /*intersections*/)
  14. {
  15. printf("\n\
  16. +-------------------------------------------------------------+\n\
  17. | In order to run TRW-S with truncted L2 terms, |\n\
  18. | you need to download the implementation from |\n\
  19. | http://www.adastral.ucl.ac.uk/~vnk/papers/TRW-S.html |\n\
  20. | and copy file typeTruncatedQuadratic2D.h |\n\
  21. | to the main directory (i.e. replace the existing file) |\n\
  22. +-------------------------------------------------------------+\n\
  23. ");
  24. exit(1);
  25. }
  26. };
  27. };
  28. }
  29. #endif