imlincomb
Linear combination of images
Syntax
Description
specifies the output class 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
imlincomb
to 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.imlincomb
computes each element of the outputZ
individually, in double-precision floating point. IfZ
is an integer array,imlincomb
clips elements ofZ
that 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