|
@@ -82,7 +82,7 @@ void LocalFeatureColorWeijer::restoreLUT()
|
|
|
{
|
|
|
fthrow(Exception,"ColorWeijer: could not find lookup table file. Specify the path in the config, e.g., YOURNICEHOME/vislearning/features/localfeatures/input/colorWeijer/w2c.txt");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
while( !fin.eof() )
|
|
|
{
|
|
|
double rd,gd,bd;
|
|
@@ -172,7 +172,7 @@ int LocalFeatureColorWeijer::findColor( string &fn )
|
|
|
return WHITE;
|
|
|
if ( fn.find( "yellow" ) != string::npos )
|
|
|
return YELLOW;
|
|
|
-
|
|
|
+
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
@@ -203,7 +203,7 @@ void LocalFeatureColorWeijer::visualizeFeatures( const NICE::ColorImage & cimg )
|
|
|
|
|
|
void LocalFeatureColorWeijer::visualizeFeatures( const NICE::ColorImage & cimg, NICE::ColorImage &out ) const
|
|
|
{
|
|
|
- VVector pos, feats;
|
|
|
+ NICE::VVector pos, feats;
|
|
|
for ( int y = 0; y < cimg.height(); y++ )
|
|
|
{
|
|
|
for ( int x = 0; x < cimg.width(); x++ )
|
|
@@ -251,7 +251,7 @@ void LocalFeatureColorWeijer::visualizeFeatures( const NICE::ColorImage & cimg,
|
|
|
showImage( combinedout, "result" );
|
|
|
}
|
|
|
|
|
|
-void LocalFeatureColorWeijer::getFeats( const ColorImage &img, MultiChannelImageT<double> &feats )
|
|
|
+void LocalFeatureColorWeijer::getFeats( const NICE::ColorImage &img, MultiChannelImageT<double> &feats )
|
|
|
{
|
|
|
int width = ( int )img.width();
|
|
|
int height = ( int )img.height();
|