Skip to content

Commit b6561ce

Browse files
committed
Fixed addressing structure population for integral image output
1 parent a2fed4c commit b6561ce

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)