67 for (
unsigned int i = 0; i <=
_width; ++i)
73 for (
unsigned int i = 0; i <=
_height; ++i)
79 for (
unsigned int i = 1; i <=
_height; ++i)
80 for (
unsigned int j = 1; j <=
_width; ++j)
82 _ii[i][j] = img[i - 1][j - 1] +
_ii[i - 1][j] +
_ii[i][j - 1] -
_ii[i - 1][j - 1];
91 double** aImagePtr =
new double*[iHeight];
94 for (
unsigned int i = 0; i < iHeight; ++i)
96 aImagePtr[i] =
new double[iWidth] {};
105 for (
unsigned int i = 0; i < iHeight; ++i)
107 delete[] iImagePtr[i];
static double ** AllocateImage(unsigned int iWidth, unsigned int iHeight)
void init(vigra::DImage &img)
static void DeallocateImage(double **iImagePtr, unsigned int iHeight)
void buildIntegralImage(vigra::DImage &img)