From 4de577620ccfe74483d806f3c445b89e0cf99b69 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 5 Aug 2013 12:19:06 -0400 Subject: [PATCH] Actually, the change in bd13c06 was never necessary since the use case for the allPartitions 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(...). --- openbr/plugins/validate.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/openbr/plugins/validate.cpp b/openbr/plugins/validate.cpp index ba946d7..23768b6 100644 --- a/openbr/plugins/validate.cpp +++ b/openbr/plugins/validate.cpp @@ -53,12 +53,7 @@ class CrossValidateTransform : public MetaTransform void project(const Template &src, Template &dst) const { - // If the src partition is 1, - // assume that projection should be done using the same training data for all partitions. - int partition = src.file.get("Partition", 0); - if (partition == -1 ) partition = 0; - - transforms[partition]->project(src, dst); + transforms[src.file.get("Partition", 0)]->project(src, dst); } void store(QDataStream &stream) const -- libgit2 0.21.4