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

ImageMultiply

ImageMultiply
multiplies each channel value in image by a factor x.
ImageMultiply
gives an image in which each pixel is the product of the corresponding pixels in and .
  • The image returned by ImageMultiply has the same dimensions as image.
  • If the image dimensions are different, ImageMultiply multiplies into the center of .
  • If or is a single-channel image, its values are multiplied by the values in each channel of the other image in ImageMultiply.
  • If and are both multichannel images, the values in each channel are multiplied separately.
  • ImageMultiply gives an image with the same underlying data type as image, clipping or truncating values if necessary.
  • ImageMultiply gives an image with the largest type of either or , 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]=
Uniform multiplicative noise:
Multiply a color and a grayscale image:
New in 7