ImageTools[ColorTransform] - apply a linear transform to the colors of an image
|
Calling Sequence
|
|
ColorTransform( img, mat, opts )
|
|
Parameters
|
|
img
|
-
|
ColorImage or ColorAImage; input image
|
mat
|
-
|
Matrix; 3 x 3 transformation matrix
|
opts
|
-
|
(optional) equation(s) of the form option = value; specify options for the ColorTransform command
|
|
|
|
|
Description
|
|
•
|
The ColorTransform command transforms the color of each pixel of an image using the linear transformation c2=m*c1, where m is a 3 x 3 matrix, c1 is the input color vector of a pixel and c2 is the output color vector of a pixel.
|
•
|
The mat parameter specifies the transformation matrix. It must be a 3 x 3 Matrix.
|
|
|
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?