Commit 4de577620ccfe74483d806f3c445b89e0cf99b69
1 parent
bd13c06e
Actually, the change in bd13c06 was never necessary since the use case for the a…
…llPartitions flag was using a set of images as an extended gallery for a commercial matcher. In this case, the crossValidation flag does not need to be set nor does the commercial plugin need to be enclosed in CrossValidate(...).
Showing
1 changed file
with
1 additions
and
6 deletions
openbr/plugins/validate.cpp
| @@ -53,12 +53,7 @@ class CrossValidateTransform : public MetaTransform | @@ -53,12 +53,7 @@ class CrossValidateTransform : public MetaTransform | ||
| 53 | 53 | ||
| 54 | void project(const Template &src, Template &dst) const | 54 | void project(const Template &src, Template &dst) const |
| 55 | { | 55 | { |
| 56 | - // If the src partition is 1, | ||
| 57 | - // assume that projection should be done using the same training data for all partitions. | ||
| 58 | - int partition = src.file.get<int>("Partition", 0); | ||
| 59 | - if (partition == -1 ) partition = 0; | ||
| 60 | - | ||
| 61 | - transforms[partition]->project(src, dst); | 56 | + transforms[src.file.get<int>("Partition", 0)]->project(src, dst); |
| 62 | } | 57 | } |
| 63 | 58 | ||
| 64 | void store(QDataStream &stream) const | 59 | void store(QDataStream &stream) const |