图像算术
图像的加减乘除
图像算术指对图像执行标准算术运算,如加法、减法、乘法和除法。图像算术在图像处理中有许多用途,它既可作为更复杂运算的初步步骤,本身也是一项运算。例如,图像相减可用于检测同一场景或对象的两个或多个图像之间的差异。
函数
imabsdiff | 两个图像的绝对差 |
imadd | 将两个图像相加或在图像中添加常量 |
imapplymatrix | Linear combination of color channels |
imcomplement | 对图像求补码 |
imdivide | 将一个图像除以另一个图像或用常量除以图像 |
imlincomb | Linear combination of images |
immultiply | 将两个图像相乘或者将图像乘以常量 |
imsubtract | 从一个图像中减去另一个图像或从图像中减去常量 |
主题
- 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.