Woolz Image Processing  Version 1.7.5
Name
WlzGreyInvert - inverts the grey-range of a grey-level object.
Synopsis
WlzGreyInvert [-u#] [-l#] [-h] [-v] [<input file>]
Options
-h Help, prints usage message.
-v Verbose operation.
-l Low grey value, default min value in source.
-u Upper grey value, default max value in source.
Description
Invert the grey-range of a grey-level woolz object writing the new object to standard output. The original grey-values are transformed from their original range. The transformation is

\[ g_{out} = g_u + g_l - g_{in} \]

where \(g_{out}\) is the new grey value, \(g_{in}\) is the given grey value, \(g_u\) is the upper grey value and \(g_l\) is the lower grey value.
Examples
WlzGreyInvert -u 255 -l 0 in.wlz >out.wlz
Inverts the grey valued object read from in.wlz so that its values are inverted and in the range 0 - 255. The resulting object is then written to out.wlz.
File
WlzGreyInvert.c
See Also
WlzIntro(1) WlzGreySetRange(1)