Woolz Image Processing  Version 1.7.5
WlzGreySetValue
Name
WlzGreySetValue - sets the grey values of the object to a specified value.
Synopsis
WlzGreySetValue [-c #,#,#] [-C #,#,#,#] [-g#] [-h] [<input mask> [<input obj>]]
Options
-c New colour value r,g,b - default 0,0,0, alpha=255.
-C New colour value r,g,b,a - default 0,0,0,255.
-g The specified grey value - default 0.
-h Help, prints usage message.
Description
Set the grey values of the object to the input value. A valuetable will be attached if required.
Examples
WlzGreySetValue -g 128 dom.wlz >out.wlz
Creates a new object with the domain of the object read from dom.wlz but with all grey values having value 128. The grey type of the resulting object are chosen to be the minimum which can be used to encode the specified value, with the possible types (in increasing order) being: unsigned byte, short, int and double. The resulting object is written to out.wlz.
File
WlzGreySetValue.c
See Also
WlzIntro(1) WlzGreyMask(1) WlzGreySetValue(3)