Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Image Arithmetic

Add, subtract, multiply, and divide images

Functions

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

Topics

Overview of Image Arithmetic Functions

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

Nesting Calls to Image Arithmetic Functions

To maintain precision when performing a series of image arithmetic operations, use the imlincomb function.

Image Arithmetic Saturation Rules

Results of image arithmetic that exceed the range of the image data type are truncated. Fractional results of image arithmetic are rounded.

Was this topic helpful?