|
|
@ -11,6 +11,7 @@ |
|
|
|
#include <cfloat> |
|
|
|
#include <cfloat> |
|
|
|
#include <climits> |
|
|
|
#include <climits> |
|
|
|
#include <cmath> |
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
#include <cstring> |
|
|
|
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//==================================================================================================
|
|
|
|
// utility
|
|
|
|
// utility
|
|
|
@ -1076,7 +1077,7 @@ int ovx_hal_integral(int depth, int sdepth, int, const uchar * a, size_t astep, |
|
|
|
ib = ivx::Image::createFromHandle(ctx, VX_DF_IMAGE_U32, |
|
|
|
ib = ivx::Image::createFromHandle(ctx, VX_DF_IMAGE_U32, |
|
|
|
ivx::Image::createAddressing(w, h, 4, (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)); |
|
|
|
std::memset(b, 0, (w + 1) * sizeof(unsigned int)); |
|
|
|
b += bstep; |
|
|
|
b += bstep; |
|
|
|
for (int i = 0; i < h; i++, b += bstep) |
|
|
|
for (int i = 0; i < h; i++, b += bstep) |
|
|
|
{ |
|
|
|
{ |
|
|
|