From b6561ce57dab8f03a6ff2c8b631a39216c409e5f Mon Sep 17 00:00:00 2001 From: Vitaly Tuzov Date: Fri, 3 Feb 2017 13:54:22 +0300 Subject: [PATCH] Fixed addressing structure population for integral image output --- 3rdparty/openvx/hal/openvx_hal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/openvx/hal/openvx_hal.cpp b/3rdparty/openvx/hal/openvx_hal.cpp index f7962d1eb5..1e87a9f240 100644 --- a/3rdparty/openvx/hal/openvx_hal.cpp +++ b/3rdparty/openvx/hal/openvx_hal.cpp @@ -1064,7 +1064,7 @@ int ovx_hal_integral(int depth, int sdepth, int, const uchar * a, size_t astep, ia = ivx::Image::createFromHandle(ctx, VX_DF_IMAGE_U8, ivx::Image::createAddressing(w, h, 1, (vx_int32)astep), const_cast(a)), ib = ivx::Image::createFromHandle(ctx, VX_DF_IMAGE_U32, - ivx::Image::createAddressing(w, h, 1, (vx_int32)bstep), (unsigned int *)(b + bstep + sizeof(unsigned int))); + ivx::Image::createAddressing(w, h, 4, (vx_int32)bstep), (unsigned int *)(b + bstep + sizeof(unsigned int))); ivx::IVX_CHECK_STATUS(vxuIntegralImage(ctx, ia, ib)); memset(b, 0, (w + 1) * sizeof(unsigned int)); b += bstep;