Commit bbfa70e51c0cb1263355a3f71465cc640d04f009

Authored by Josh Klontz
1 parent a57cd29c

bug fix

Showing 1 changed file with 2 additions and 2 deletions
openbr/plugins/integral.cpp
... ... @@ -182,11 +182,11 @@ class RecursiveIntegralSamplerTransform : public Transform
182 182 const SecondOrderInputDescriptor d(tmp.ptr<float>(3), channels, 1);
183 183 const SecondOrderInputDescriptor e(tmp.ptr<float>(4), channels, 1);
184 184  
185   - dst = Mat(3, channels, CV_32FC1);
  185 + dst = Mat(4, channels, CV_32FC1);
186 186 OutputDescriptor(dst.ptr<float>(0), channels, 1) = (a+b+c+d)/4.f;
187 187 OutputDescriptor(dst.ptr<float>(1), channels, 1) = ((a+b+c+d)/4.f-e);
188 188 OutputDescriptor(dst.ptr<float>(2), channels, 1) = ((a+b)-(c+d))/2.f;
189   - OutputDescriptor(dst.ptr<float>(0), channels, 1) = ((a+c)-(b+d))/2.f;
  189 + OutputDescriptor(dst.ptr<float>(3), channels, 1) = ((a+c)-(b+d))/2.f;
190 190 }
191 191  
192 192 Template subdivide(const Template &src) const
... ...