From ad65110ebe2bb9fd745ec7f6630e3415c4064667 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Thu, 4 Jun 2015 14:10:49 -0400 Subject: [PATCH] More cleanup --- openbr/plugins/classification/dlib.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/openbr/plugins/classification/dlib.cpp b/openbr/plugins/classification/dlib.cpp index 9b5d4c4..eb4ac82 100644 --- a/openbr/plugins/classification/dlib.cpp +++ b/openbr/plugins/classification/dlib.cpp @@ -48,18 +48,20 @@ private: void project(const Template &src, Template &dst) const { - dst = src; + dst = src; if (!src.file.rects().isEmpty()) { shape_predictor *sp = shapeResource.acquire(); - cv_image cimg(src.m().clone()); + cv_image cimg(src.m()); + array2d image; + assign_image(image,cimg); for (int j=0; j cimg(t.m().clone()); + cv_image cimg(t.m()); array2d image; assign_image(image,cimg); @@ -134,7 +136,7 @@ private: void project(const Template &src, Template &dst) const { dst = src; - cv_image cimg(src.m().clone()); + cv_image cimg(src.m()); array2d image; assign_image(image,cimg); -- libgit2 0.21.4