This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ImageAdd

ImageAdd[image, x]
adds an amount x to each channel value in image.
ImageAdd[image1, image2]
gives an image in which each pixel is the sum of the corresponding pixels in image1 and image2.
  • The image returned by ImageAdd[image, ...] has the same dimensions as image.
  • 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.
  • In ImageAdd[image, x], the number x is normally in the range 0 to 1.
  • ImageAdd[image, x] gives an image with the same underlying data type as image, clipping or truncating values if necessary.
  • ImageAdd[image1, image2] gives an image with the largest type of either image1 and image2, clipping or truncating values if necessary.
  • For binary images, ImageAdd effectively finds the logical OR of pixel values.
Mask an image by adding a thresholded version of it:
Brighten a color image by adding a constant amount to all channels:
Add two color images:
Logical OR of two binary images:
Mask an image by adding a thresholded version of it:
In[1]:=
Click for copyable input
Out[1]=
 
Brighten a color image by adding a constant amount to all channels:
In[1]:=
Click for copyable input
Out[1]=
 
Add two color images:
In[1]:=
Click for copyable input
Out[1]=
 
Logical OR of two binary images:
In[1]:=
Click for copyable input
Out[1]=
Numerical rounding in finite-precision images can be affected by the limited precision of machine arithmetic:
New in 7