This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Image Arithmetic

Add, subtract, multiply, and divide images


imabsdiff Absolute difference of two images
imadd Add two images or add constant to image
imapplymatrix Linear combination of color channels
imcomplement Complement image
imdivide Divide one image into another or divide image by constant
imlincomb Linear combination of images
immultiply Multiply two images or multiply image by constant
imsubtract Subtract one image from another or subtract constant from image

Examples and How To

Nesting Calls to Image Arithmetic Functions

You can use the image arithmetic functions in combination to perform a series of operations.


Overview of Image Arithmetic Functions

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

Image Arithmetic Saturation Rules

The results of integer arithmetic can easily overflow the data type allotted for storage.

Was this topic helpful?