Expand description
Functions for computing integral images and running sums of rows and columns.
Traits§
- Array
Data - Hack to get around lack of const generics. See comment on
sum_image_pixels
.
Functions§
- column_
running_ sum - 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.
- integral_
image - Computes the 2d running sum of an image. Channels are summed independently.
- integral_
squared_ image - Computes the 2d running sum of the squares of the intensities in an image. Channels are summed independently.
- row_
running_ sum - 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.
- sum_
image_ pixels - Sums the pixels in positions [left, right] * [top, bottom] in F, where
integral_image
is the integral image of F. - variance
- Computes the variance of [left, right] * [top, bottom] in F, where
integral_image
is the integral image of F andintegral_squared_image
is the integral image of the squares of the pixels in F.