RegionOperationPool.cpp 840 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @file RegionOperationPool.cpp
  3. * @brief pool for region feature extraction methods
  4. * @author Sven Sickert
  5. * @date 10/09/2015
  6. */
  7. #include "RegionOperationPool.h"
  8. using namespace OBJREC;
  9. RegionOperationPool::RegionOperationPool ( const NICE::Config *_config )
  10. : OperationPool ( _config )
  11. {
  12. contextMode = false;
  13. }
  14. RegionOperationPool::RegionOperationPool ( const NICE::Config *_config,
  15. const bool _contextMode )
  16. : OperationPool ( _config )
  17. {
  18. contextMode = _contextMode;
  19. }
  20. RegionOperationPool::~RegionOperationPool ( )
  21. {
  22. }
  23. void RegionOperationPool::getOperations ( std::string confString )
  24. {
  25. if ( config->gB ( confString, "region", true ) )
  26. {
  27. Operation3D* o = new RegionFeat3D();
  28. o->setContext( contextMode );
  29. pool.push_back ( o );
  30. }
  31. }