pub fn sum_image_pixels<P>(
integral_image: &Image<P>,
left: u32,
top: u32,
right: u32,
bottom: u32,
) -> P::DataTypeExpand description
Sums the pixels in positions [left, right] * [top, bottom] in F, where integral_image is the
integral image of F.
The of ArrayData here is due to lack of const generics. This library contains
implementations of ArrayData for Luma, Rgb and Rgba for any element type T that
implements Primitive. In that case, this function returns [T; 1] for an image
whose pixels are of type Luma, [T; 3] for Rgb pixels and [T; 4] for Rgba pixels.
See the integral_image documentation for examples.