Commit 3b11b8a9085f9fcf1beb320cede33e07d1e978c3
1 parent
04e5eb47
Downsample should also consider PossibleFTE for use with FTETransform
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/plugins/independent.cpp
| @@ -49,7 +49,7 @@ static TemplateList Downsample(const TemplateList &templates, int classes, int i | @@ -49,7 +49,7 @@ static TemplateList Downsample(const TemplateList &templates, int classes, int i | ||
| 49 | const QString selectedLabel = selectedLabels[i]; | 49 | const QString selectedLabel = selectedLabels[i]; |
| 50 | QList<int> indices; | 50 | QList<int> indices; |
| 51 | for (int j=0; j<allLabels.size(); j++) | 51 | for (int j=0; j<allLabels.size(); j++) |
| 52 | - if ((allLabels[j] == selectedLabel) && (!templates.value(j).file.get<bool>("FTE", false))) | 52 | + if ((allLabels[j] == selectedLabel) && (!templates.value(j).file.get<bool>("FTE", false)) && (!templates.value(j).file.get<bool>("PossibleFTE", false))) |
| 53 | indices.append(j); | 53 | indices.append(j); |
| 54 | 54 | ||
| 55 | std::random_shuffle(indices.begin(), indices.end()); | 55 | std::random_shuffle(indices.begin(), indices.end()); |