|Image Processing Toolbox User's Guide|
Subtract one image from another, or subtract a constant from an image
Z = imsubtract(X,Y) subtracts each element in array
Y from the corresponding element in array
X and returns the difference in the corresponding element of the output array
Y are real, nonsparse numeric arrays of the same size and class, or
Y is a double scalar. The array returned,
Z, has the same size and class as
X is logical, in which case
Z is double.
If X is an integer array, then elements of the output that exceed the range of the integer type are truncated, and fractional values are rounded.
On Intel architecture processors, |
uint8 arrays. Note that negative results are rounded to
Estimate and subtract the background of an image:
Subtract a constant value from an image:
© 1994-2005 The MathWorks, Inc.