1234567891011121314151617181920212223242526272829303132 |
- #include "vislearning/features/regionfeatures/RegionFeatures.h"
- #include <iostream>
- using namespace OBJREC;
- using namespace std;
- using namespace NICE;
- RegionFeatures::RegionFeatures( const Config *_conf )
- {
- conf = _conf;
- }
- void RegionFeatures::extract ( const NICE::Image & img, const RegionGraph &rg, const NICE::Matrix &mask, VVector & feats )
- {
- fprintf (stderr, "RegionFeatures::extract: not yet implemented !\n");
- exit(-1);
- }
- void RegionFeatures::extractRGB ( const NICE::ColorImage & cimg, const RegionGraph &rg, const NICE::Matrix &mask, VVector & feats )
- {
- NICE::Image tmp;
- rgbToGray(cimg, &tmp);
- fprintf (stderr, "No Colorfeatures, using GrayImg instead\n");
-
- return extract(tmp, rg, mask, feats);
- }
- RegionFeatures::~RegionFeatures()
- {
- }
|