ImageAdd
✖
ImageAdd
Details

- The image returned by ImageAdd[image,…] has the same dimensions as image.
- In ImageAdd[image,x], x can be a number normally in the range 0 to 1, a color, or a list of color channel values.
- ImageAdd[image,x] typically gives an image with the same underlying data type as image, clipping or truncating values if necessary.
- If the image dimensions are different, ImageAdd[image1,image2] adds image2 at the center of image1.
- If image1 or image2 is a single-channel image, its values are added to the values in each channel of the other image in ImageAdd[image1,image2].
- If image1 and image2 are both multichannel images, the values in each channel are added separately.
- ImageAdd[image1,image2] gives an image with the largest type of either image1 or image2, clipping or truncating values if necessary.
- For binary images, ImageAdd effectively finds the logical OR of pixel values.
- ImageAdd[image,expr1,expr2,…] folds ImageAdd on the list of arguments.
- ImageAdd[{image,expr1,expr2,…}] is equivalent to ImageAdd[image,expr1,expr2,…].
- ImageAdd works with Image3D objects.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Scope (3)Survey of the scope of standard use cases
Mask an image by adding a thresholded version of it:

https://wolfram.com/xid/0cg4t6l1u-csfsok

Add multiple images to each other:

https://wolfram.com/xid/0cg4t6l1u-oflm61

Add a noise image to a 3D image:

https://wolfram.com/xid/0cg4t6l1u-kr6wd6

Applications (3)Sample problems that can be solved with this function

https://wolfram.com/xid/0cg4t6l1u-h7tdlv


https://wolfram.com/xid/0cg4t6l1u-hjzmfw

Convert a color image to a sepia image:

https://wolfram.com/xid/0cg4t6l1u-udolfl

https://wolfram.com/xid/0cg4t6l1u-l25bs9

Multiply by a Gaussian frame to create a vignette effect:

https://wolfram.com/xid/0cg4t6l1u-jzvvy4

Possible Issues (3)Common pitfalls and unexpected behavior
Numerical rounding in finite-precision images can be affected by the limited precision of machine arithmetic:

https://wolfram.com/xid/0cg4t6l1u-juhb4j


https://wolfram.com/xid/0cg4t6l1u-279kcq

When adding images of different color spaces, channel values are added respectively:

https://wolfram.com/xid/0cg4t6l1u-7modp2


https://wolfram.com/xid/0cg4t6l1u-2ii9de

The resulting image will have an Automatic color space:

https://wolfram.com/xid/0cg4t6l1u-xcvz7o

When adding images of integer types, pixel value clipping is happening:

https://wolfram.com/xid/0cg4t6l1u-6arn7j

https://wolfram.com/xid/0cg4t6l1u-z5ud4q

Adjusting cannot restore the clipped values:

https://wolfram.com/xid/0cg4t6l1u-4n8u09

Use a real image type to avoid clipping:

https://wolfram.com/xid/0cg4t6l1u-2awllq

Wolfram Research (2008), ImageAdd, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageAdd.html (updated 2014).
Text
Wolfram Research (2008), ImageAdd, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageAdd.html (updated 2014).
Wolfram Research (2008), ImageAdd, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageAdd.html (updated 2014).
CMS
Wolfram Language. 2008. "ImageAdd." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ImageAdd.html.
Wolfram Language. 2008. "ImageAdd." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ImageAdd.html.
APA
Wolfram Language. (2008). ImageAdd. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageAdd.html
Wolfram Language. (2008). ImageAdd. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageAdd.html
BibTeX
@misc{reference.wolfram_2025_imageadd, author="Wolfram Research", title="{ImageAdd}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ImageAdd.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_imageadd, organization={Wolfram Research}, title={ImageAdd}, year={2014}, url={https://reference.wolfram.com/language/ref/ImageAdd.html}, note=[Accessed: 29-March-2025
]}