imlincomb
Linear combination of images
Syntax
Description
specifies the output data type of Z = imlincomb(___,outputClass)Z.
Examples
Input Arguments
Output Arguments
Tips
When performing a series of arithmetic operations on a pair of images, you can achieve more accurate results if you use
imlincombto combine the operations, rather than nesting calls to the individual arithmetic functions, such asimadd. When you nest calls to the arithmetic functions, and the input arrays are of an integer class, each function truncates and rounds the result before passing it to the next function, thus losing accuracy in the final result.imlincombcomputes each element of the outputZindividually, in double-precision floating point. IfZis an integer array,imlincombclips elements ofZthat exceed the range of the integer type and rounds off fractional values.
Extended Capabilities
Version History
Introduced before R2006aSee Also
imadd | imcomplement | imdivide | immultiply | imsubtract



