|
@@ -2002,9 +2002,12 @@ void SemSegContextTree::semanticseg ( CachedExample *ce, NICE::Image & segresult
|
|
vector<double> sorted = probs;
|
|
vector<double> sorted = probs;
|
|
sort (sorted.begin(), sorted.end());
|
|
sort (sorted.begin(), sorted.end());
|
|
|
|
|
|
|
|
+ double thr = sorted[3];
|
|
|
|
+ thr = 0.0;
|
|
|
|
+
|
|
for(int c = 0; c < classes; c++)
|
|
for(int c = 0; c < classes; c++)
|
|
{
|
|
{
|
|
- if(probs[c] < sorted[3])
|
|
|
|
|
|
+ if(probs[c] < thr)
|
|
{
|
|
{
|
|
useclass[c] = 1;
|
|
useclass[c] = 1;
|
|
}
|
|
}
|