Skip to content

Commit 976ee44

Browse files
committed
Merge pull request opencv#8125 from terfendail:ovxhal_integral_fix
2 parents 3b5f1f7 + b6561ce commit 976ee44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3rdparty/openvx/hal/openvx_hal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ int ovx_hal_integral(int depth, int sdepth, int, const uchar * a, size_t astep,
10641064
ia = ivx::Image::createFromHandle(ctx, VX_DF_IMAGE_U8,
10651065
ivx::Image::createAddressing(w, h, 1, (vx_int32)astep), const_cast<uchar*>(a)),
10661066
ib = ivx::Image::createFromHandle(ctx, VX_DF_IMAGE_U32,
1067-
ivx::Image::createAddressing(w, h, 1, (vx_int32)bstep), (unsigned int *)(b + bstep + sizeof(unsigned int)));
1067+
ivx::Image::createAddressing(w, h, 4, (vx_int32)bstep), (unsigned int *)(b + bstep + sizeof(unsigned int)));
10681068
ivx::IVX_CHECK_STATUS(vxuIntegralImage(ctx, ia, ib));
10691069
memset(b, 0, (w + 1) * sizeof(unsigned int));
10701070
b += bstep;

0 commit comments

Comments
 (0)