From bbfa70e51c0cb1263355a3f71465cc640d04f009 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 1 Apr 2013 17:06:25 -0400 Subject: [PATCH] bug fix --- openbr/plugins/integral.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbr/plugins/integral.cpp b/openbr/plugins/integral.cpp index adb8e55..b45f2bd 100644 --- a/openbr/plugins/integral.cpp +++ b/openbr/plugins/integral.cpp @@ -182,11 +182,11 @@ class RecursiveIntegralSamplerTransform : public Transform const SecondOrderInputDescriptor d(tmp.ptr(3), channels, 1); const SecondOrderInputDescriptor e(tmp.ptr(4), channels, 1); - dst = Mat(3, channels, CV_32FC1); + dst = Mat(4, channels, CV_32FC1); OutputDescriptor(dst.ptr(0), channels, 1) = (a+b+c+d)/4.f; OutputDescriptor(dst.ptr(1), channels, 1) = ((a+b+c+d)/4.f-e); OutputDescriptor(dst.ptr(2), channels, 1) = ((a+b)-(c+d))/2.f; - OutputDescriptor(dst.ptr(0), channels, 1) = ((a+c)-(b+d))/2.f; + OutputDescriptor(dst.ptr(3), channels, 1) = ((a+c)-(b+d))/2.f; } Template subdivide(const Template &src) const -- libgit2 0.21.4