Main Content
imcomplement
Complement image
Syntax
Description
computes the complement of the
image J
= imcomplement(I
)I
and returns the result in
J
.
Examples
Input Arguments
Output Arguments
More About
Tips
If
I
is a grayscale or RGB image of classdouble
, then you can use the expression1-I
instead of this function.If
I
is a binary image, then you can use the expression~I
instead of this function.
Extended Capabilities
Version History
Introduced before R2006a
See Also
imabsdiff
| imadd
| imdivide
| imlincomb
| immultiply
| imsubtract