FIShotton.h 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @file FIShotton.h
  3. * @brief feature images for preprocessing according to shotton
  4. * @author Erik Rodner
  5. * @date 05/30/2008
  6. */
  7. #ifndef FIShottonINCLUDE
  8. #define FIShottonINCLUDE
  9. #ifdef NOVISUAL
  10. #include <objrec/nice_nonvis.h>
  11. #else
  12. #include <objrec/nice.h>
  13. #endif
  14. #include "objrec/math/mathbase/SparseVector.h"
  15. #include "objrec/cbaselib/CachedExample.h"
  16. #include "objrec/classifier/fpclassifier/randomforest/FPCRandomForests.h"
  17. namespace OBJREC {
  18. /** feature images */
  19. class FIShotton
  20. {
  21. protected:
  22. public:
  23. static void buildSemanticMap ( CachedExample *ce,
  24. FPCRandomForests *fpcrf,
  25. int subsamplex, int subsampley,
  26. int numClasses );
  27. static void buildTextonMap ( CachedExample *ce,
  28. FPCRandomForests *fpcrf,
  29. map<DecisionNode *, pair<long, int> > index,
  30. int subsamplex,
  31. int subsampley,
  32. int maxdepthSegmentationForest );
  33. };
  34. } // namespace
  35. #endif