diff --git a/openbr/plugins/integral.cpp b/openbr/plugins/integral.cpp index 2738668..06f53d1 100644 --- a/openbr/plugins/integral.cpp +++ b/openbr/plugins/integral.cpp @@ -182,11 +182,12 @@ class RecursiveIntegralSamplerTransform : public Transform const SecondOrderInputDescriptor d(tmp.ptr(3), channels, 1); const SecondOrderInputDescriptor e(tmp.ptr(4), channels, 1); - dst = Mat(4, channels, CV_32FC1); + dst = Mat(5, 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(3), channels, 1) = ((a+c)-(b+d))/2.f; + OutputDescriptor(dst.ptr(4), channels, 1) = ((a+d)-(b+c))/2.f; } Template subdivide(const Template &src) const diff --git a/openbr/plugins/quantize.cpp b/openbr/plugins/quantize.cpp index 66ddc0d..ba53be2 100644 --- a/openbr/plugins/quantize.cpp +++ b/openbr/plugins/quantize.cpp @@ -286,7 +286,7 @@ class RecursiveProductQuantizationDistance : public Distance { Q_OBJECT Q_PROPERTY(float t READ get_t WRITE set_t RESET reset_t STORED false) - BR_PROPERTY(float, t, -1) + BR_PROPERTY(float, t, -std::numeric_limits::max()) float compare(const Template &a, const Template &b) const {