Refactor PP5 comparison handling

Introduce PP5GalleryTransform, a transform that compares incoming templates
against a fixed gallery (thereby avoiding the cost of repeatedly setting up
pp5 galleries for the same templates).

Modify AlgorithmCore to support supplying Transforms to the right of the
: in an algorithm string. If a distance cannot be created (testing if
defaultDistance is returned from Distance::make), store the comparison
part as a string, and use it to make a replacement for GalleryCompareTransfrom
in calls to AlgorithmCore::compare

This commit essentially disables DefaultDistance (which could previously
be used as a shorthand for DistDistance with some specific metric),
instead leaving DefaultDistance as a non-functional distance.
Git blame suggests that you are correct, I thought .gal progress counting
worked correctly at some point, but it doesn't really look like that is the
case!


On Thu, Jul 3, 2014 at 8:30 AM, Josh Klontz <notifications@github.com>
wrote:

> In openbr/plugins/gallery.cpp:
>
> > @@ -129,7 +129,7 @@ class BinaryGallery : public Gallery
> >              if (t.isEmpty() && t.file.isNull())
> >                  continue;
> >              templates.append(t);
> > -            templates.last().file.set("progress", totalSize());
> > +            templates.last().file.set("progress", position());
>
> I think that was your code to begin with, no?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biometrics/openbr/pull/213/files#r14510650>.
>