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