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

ImageMultiply

ImageMultiply[image, x]
multiplies each channel value in image by a factor x.
ImageMultiply[image1, image2]
gives an image in which each pixel is the product of the corresponding pixels in image1 and image2.
  • The image returned by ImageMultiply[image, ...] has the same dimensions as image.
  • If the image dimensions are different, ImageMultiply[image1, image2] multiplies image2 into the center of image1.
  • If image1 or image2 is a single-channel image, its values are multiplied by the values in each channel of the other image in ImageMultiply[image1, image2].
  • If image1 and image2 are both multichannel images, the values in each channel are multiplied separately.
  • In ImageMultiply[image, x], the number x is normally in the range 0 to 1.
  • ImageMultiply[image, x] gives an image with the same underlying data type as image, clipping or truncating values if necessary.
  • ImageMultiply[image1, image2] gives an image with the largest type of either image1 and image2, clipping or truncating values if necessary.
  • For binary images, ImageMultiply effectively finds the logical AND of pixel values.
Mask an image by multiplying it with a grayscale image:
Brighten an RGB image by multiplying all pixels with a constant factor:
Logical AND of two binary images:
Mask an image by multiplying it with a grayscale image:
In[1]:=
Click for copyable input
Out[1]=
 
Brighten an RGB image by multiplying all pixels with a constant factor:
In[1]:=
Click for copyable input
Out[1]=
 
Logical AND of two binary images:
In[1]:=
Click for copyable input
Out[1]=
Multiply a color and a grayscale image:
New in 7