Function File: out = immultiply (a, b)
Function File: out = immultiply (a, b, class)

Multiply image by another image or constant.

If a and b are two images of same size and class, the images are multiplied. Alternatively, if b is a floating-point scalar, a is multiplied by it.

The class of out will be the same as a unless a is logical in which case out will be double. Alternatively, it can be specified with class.

Note: the values are truncated to the mininum value of the output class.

See also: imabsdiff, imadd, imcomplement, imdivide, imlincomb, imsubtract.

Package: image