gives an image in which each pixel represents a sum of all pixels below and to the left of that pixel in image.
Details and Options
- ImageAccumulate[image] pads the image with one row of zeros at the bottom and one column of zeros on the left of the image after accumulating the pixels and returns an image whose dimensions are 1+ImageDimensions[image].
- ImageAccumulate operates separately on each channel in an image.
- ImageAccumulate gives an image of a real type.
- ImageAccumulate[image,Method->"CompensatedSummation"] uses compensated summation to reduce numerical error in the result.
- ImageAccumulate also works with Image3D objects.
Examplesopen allclose all
The default method is fast, but may have some computation artifacts:
Use Method->"CompensatedSummation" for a more accurate result:
Properties & Relations (1)
Accumulated pixel values inside an upright rectangle defined by its bottom-left and top-right corners:
Define the upright rectangular area by its bottom-left corner and its width and height:
Accumulating the pixel values of the corresponding subimage yields the same result:
Wolfram Research (2012), ImageAccumulate, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageAccumulate.html (updated 2014).
Wolfram Language. 2012. "ImageAccumulate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ImageAccumulate.html.
Wolfram Language. (2012). ImageAccumulate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageAccumulate.html