FeatureLearningGeneric.cpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * @file FeatureLearningGeneric.cpp
  3. * @brief abstract interface for feature learning algorithms
  4. * @author Alexander Freytag
  5. * @date 16-04-2013 (dd-mm-yyyy)
  6. */
  7. #include <iostream>
  8. #include <vislearning/baselib/Preprocess.h>
  9. #include "FeatureLearningGeneric.h"
  10. using namespace OBJREC;
  11. using namespace std;
  12. using namespace NICE;
  13. FeatureLearningGeneric::FeatureLearningGeneric ( const Config *_conf )
  14. {
  15. this->conf = _conf;
  16. Preprocess::Init ( _conf );
  17. }
  18. FeatureLearningGeneric::~FeatureLearningGeneric()
  19. {
  20. }
  21. void FeatureLearningGeneric::learnNewFeatures ( const std::string & _filename )
  22. {
  23. // Globals::setCurrentImgFN ( filename );
  24. // CachedExample *ce;
  25. // if ( imagetype == IMAGETYPE_RGB )
  26. // {
  27. // NICE::ColorImage img = Preprocess::ReadImgAdvRGB ( filename );
  28. // ce = new CachedExample ( img );
  29. // } else {
  30. //
  31. // NICE::Image img = Preprocess::ReadImgAdv ( filename );
  32. // ce = new CachedExample ( img );
  33. // }
  34. // fprintf ( stderr, "Starting Semantic Segmentation !\n" );
  35. // learnNewFeatures ( ce );
  36. // delete ce;
  37. }