From 0c647d07f87f7191c09ffa143825c468d753a4e2 Mon Sep 17 00:00:00 2001 From: Keyurpatel93 Date: Fri, 19 Apr 2019 11:59:44 -0600 Subject: [PATCH] option to create a continuous mat (#567) --- openbr/plugins/imgproc/crop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/plugins/imgproc/crop.cpp b/openbr/plugins/imgproc/crop.cpp index 8dcd136..9c17c7b 100644 --- a/openbr/plugins/imgproc/crop.cpp +++ b/openbr/plugins/imgproc/crop.cpp @@ -40,7 +40,7 @@ class CropTransform : public UntrainableTransform void project(const Template &src, Template &dst) const { - dst = Mat(src, Rect(x, y, width < 1 ? src.m().cols-x-abs(width) : width, height < 1 ? src.m().rows-y-abs(height) : height)); + dst = Mat(src, Rect(x, y, width < 1 ? src.m().cols-x-abs(width) : width, height < 1 ? src.m().rows-y-abs(height) : height)).clone(); } }; -- libgit2 0.21.4