Commit a641da3a8d976bfca0e5a92a57e603d31fc50505
1 parent
025514ba
msvc compile fix
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/plugins/metadata/majorityvoting.cpp
| ... | ... | @@ -58,7 +58,7 @@ class MajorityVotingTransform : public UntrainableMetadataTransform |
| 58 | 58 | } |
| 59 | 59 | QVector<int> classCount(numClasses, 0); |
| 60 | 60 | for (int c = 0; c < scores.size(); c+= numClasses){ |
| 61 | - if(numClasses == 2 and thresh != -1){ | |
| 61 | + if ((numClasses == 2) && (thresh != -1)){ | |
| 62 | 62 | if (scores[c] > thresh) |
| 63 | 63 | classCount[0]++; |
| 64 | 64 | else | ... | ... |