From 71885f41dce92f2a3c47bda7673560b4c115dd2b Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 16 Feb 2015 11:25:23 -0500 Subject: [PATCH] Scale operates on points and rects as well --- openbr/plugins/cvt.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/cvt.cpp b/openbr/plugins/cvt.cpp index 362ca0c..e247ab7 100644 --- a/openbr/plugins/cvt.cpp +++ b/openbr/plugins/cvt.cpp @@ -115,7 +115,18 @@ class ScaleTransform : public UntrainableTransform void project(const Template &src, Template &dst) const { - resize(src, dst, Size(src.m().cols*scaleFactor,src.m().rows*scaleFactor)); + resize(src, dst, Size(src.m().cols*scaleFactor,src.m().rows*scaleFactor)); + + QList rects = src.file.rects(); + for (int i=0; i points = src.file.points(); + for (int i=0; i