Commit 976ee446 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #8125 from terfendail:ovxhal_integral_fix

parents 3b5f1f76 b6561ce5
...@@ -1064,7 +1064,7 @@ int ovx_hal_integral(int depth, int sdepth, int, const uchar * a, size_t astep, ...@@ -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, ia = ivx::Image::createFromHandle(ctx, VX_DF_IMAGE_U8,
ivx::Image::createAddressing(w, h, 1, (vx_int32)astep), const_cast<uchar*>(a)), ivx::Image::createAddressing(w, h, 1, (vx_int32)astep), const_cast<uchar*>(a)),
ib = ivx::Image::createFromHandle(ctx, VX_DF_IMAGE_U32, 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)); ivx::IVX_CHECK_STATUS(vxuIntegralImage(ctx, ia, ib));
memset(b, 0, (w + 1) * sizeof(unsigned int)); memset(b, 0, (w + 1) * sizeof(unsigned int));
b += bstep; b += bstep;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment