ImageTools[Complement] - compute the complement of an image
|
Calling Sequence
|
|
Complement( img, peak, opts )
|
|
Parameters
|
|
img
|
-
|
Image; the image
|
peak
|
-
|
(optional) realcons; maximum pixel value
|
opts
|
-
|
(optional) equation(s) of the form option = value; specify options for the Complement command
|
|
|
|
|
Description
|
|
•
|
The Complement command computes the complement of img. The operation applies the transform to each pixel in the image. It does not affect the alpha channel (fourth layer).
|
•
|
The img parameter is the input image.
|
•
|
The optional parameter peak specifies the peak value to use. The default is 1.
|
|
|
Options
|
|
|
Specifies whether the operation is performed in-place. This can be used to avoid allocating memory. The default is false.
|
|
Specifies a data structure into which the output is written. This can be used to avoid allocating memory. The size and number of layers must match that of the input. The dimensions of the output image are adjusted so that the row and column indices match the input. The default is NULL.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
|
|
Download Help Document
Was this information helpful?