RegionFeatures.cpp 770 B

1234567891011121314151617181920212223242526272829303132
  1. #include "vislearning/features/regionfeatures/RegionFeatures.h"
  2. #include <iostream>
  3. using namespace OBJREC;
  4. using namespace std;
  5. using namespace NICE;
  6. RegionFeatures::RegionFeatures( const Config *_conf )
  7. {
  8. conf = _conf;
  9. }
  10. void RegionFeatures::extract ( const NICE::Image & img, const RegionGraph &rg, const NICE::Matrix &mask, VVector & feats )
  11. {
  12. fprintf (stderr, "RegionFeatures::extract: not yet implemented !\n");
  13. exit(-1);
  14. }
  15. void RegionFeatures::extractRGB ( const NICE::ColorImage & cimg, const RegionGraph &rg, const NICE::Matrix &mask, VVector & feats )
  16. {
  17. NICE::Image tmp;
  18. rgbToGray(cimg, &tmp);
  19. fprintf (stderr, "No Colorfeatures, using GrayImg instead\n");
  20. return extract(tmp, rg, mask, feats);
  21. }
  22. RegionFeatures::~RegionFeatures()
  23. {
  24. }