Expand description

Functions for computing integral images and running sums of rows and columns.

Traits§

  • Hack to get around lack of const generics. See comment on sum_image_pixels.

Functions§

  • Computes the running sum of one column of image, padded at the top and bottom. The padding is by continuity. Takes a reference to buffer so that this can be reused for all columns in an image.
  • Computes the 2d running sum of an image. Channels are summed independently.
  • Computes the 2d running sum of the squares of the intensities in an image. Channels are summed independently.
  • Computes the running sum of one row of image, padded at the beginning and end. The padding is by continuity. Takes a reference to buffer so that this can be reused for all rows in an image.
  • Sums the pixels in positions [left, right] * [top, bottom] in F, where integral_image is the integral image of F.
  • Computes the variance of [left, right] * [top, bottom] in F, where integral_image is the integral image of F and integral_squared_image is the integral image of the squares of the pixels in F.