This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Image Arithmetic

Add, subtract, multiply, and divide images

Image arithmetic is the implementation of standard arithmetic operations, such as addition, subtraction, multiplication, and division, on images. Image arithmetic has many uses in image processing both as a preliminary step in more complex operations and by itself. For example, image subtraction can be used to detect differences between two or more images of the same scene or object.

Functions

imabsdiffAbsolute difference of two images
imaddAdd two images or add constant to image
imapplymatrixLinear combination of color channels
imcomplementComplement image
imdivideDivide one image into another or divide image by constant
imlincombLinear combination of images
immultiplyMultiply two images or multiply image by constant
imsubtractSubtract one image from another or subtract constant from image

Topics

Image Arithmetic Functions

Image arithmetic is the implementation of standard arithmetic operations, such as addition, subtraction, multiplication, and division, on images.

Nest Calls to Image Arithmetic Functions

Learn how to maintain precision when performing a series of arithmetic operations in combination..

Image Arithmetic Clipping Rules

Learn how to deal with results of image arithmetic that exceed the range of the image data type.