WLJS LogoWLJS Notebook

ImageAccumulate

ImageAccumulate[image] gives an image in which each pixel represents a sum of all pixels below and to the left of that pixel in image.

This creates an integral image (summed-area table), useful for fast box filtering operations.

Examples

ImageAccumulate[ExampleData[{"TestImage", "Lena"}]]
img = RandomImage[1, {100, 100}];
ImageAccumulate[img]
ImageAccumulate[ColorConvert[image, "Grayscale"]]

*See the official Wolfram Language Reference for more details.

On this page