|
@@ -127,7 +127,7 @@ void SemSegNovelty::visualizeRegion(const NICE::ColorImage &img, const NICE::Mat
|
|
{
|
|
{
|
|
outimage(x,y,c) = img(x,y,c);
|
|
outimage(x,y,c) = img(x,y,c);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -420,7 +420,7 @@ void SemSegNovelty::semanticseg ( CachedExample *ce, NICE::Image & segresult, NI
|
|
double sndMaxMean ( -numeric_limits<double>::max() );
|
|
double sndMaxMean ( -numeric_limits<double>::max() );
|
|
|
|
|
|
for ( int j = 0 ; j < cr.scores.size(); j++ )
|
|
for ( int j = 0 ; j < cr.scores.size(); j++ )
|
|
- {
|
|
|
|
|
|
+ {
|
|
if ( forbidden_classesTrain.find ( j ) != forbidden_classesTrain.end() )
|
|
if ( forbidden_classesTrain.find ( j ) != forbidden_classesTrain.end() )
|
|
{
|
|
{
|
|
continue;
|
|
continue;
|