1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /**
- * @file FeatureLearningGeneric.cpp
- * @brief abstract interface for feature learning algorithms
- * @author Alexander Freytag
- * @date 16-04-2013 (dd-mm-yyyy)
- */
- #include <iostream>
- #include <vislearning/baselib/Preprocess.h>
- #include "FeatureLearningGeneric.h"
- using namespace OBJREC;
- using namespace std;
- using namespace NICE;
- FeatureLearningGeneric::FeatureLearningGeneric ( const Config *_conf )
- {
- this->conf = _conf;
- Preprocess::Init ( _conf );
- }
- FeatureLearningGeneric::~FeatureLearningGeneric()
- {
- }
- void FeatureLearningGeneric::learnNewFeatures ( const std::string & _filename )
- {
- // Globals::setCurrentImgFN ( filename );
- // CachedExample *ce;
- // if ( imagetype == IMAGETYPE_RGB )
- // {
- // NICE::ColorImage img = Preprocess::ReadImgAdvRGB ( filename );
- // ce = new CachedExample ( img );
- // } else {
- //
- // NICE::Image img = Preprocess::ReadImgAdv ( filename );
- // ce = new CachedExample ( img );
- // }
- // fprintf ( stderr, "Starting Semantic Segmentation !\n" );
- // learnNewFeatures ( ce );
- // delete ce;
- }
|