Woolz Image Processing  Version 1.7.0
WlzGreySetRange
Name
WlzGreySetRange - sets the grey-range of a grey-level woolz object.
Synopsis
WlzGreySetRange [-u#] [-l#] [-U#] [-L#] [-h] [-v] [<input file>]
Options
-h Help, prints usage message.
-d Dither values.
-v Verbose operation.
-l Low grey value in source image, default min value in source.
-L Low grey value in destination image, default 0.
-u Upper grey value in source image, default max value in source.
-U Upper grey value in dest image, default 0.
Description
Sets the grey-range of a grey-level woolz object riting the new object to standard output. The original grey-values are linearly transformed from their original range. The transformation is

\[ g_{out} = (\frac{U - L}{u - l})g_{in} + L new_grey = ((U - L)/(u - l))*old_grey + L \]

where \(U\) and \(L\) are the new upper and lower values and \(u\) and \(l\) are the old upper and lower values. If \(u\) and \(l\) are set it is up to the user to ensure that the actual image values are within the range \([u,l]\). Use WlzGreyRange to check.
Examples
 
File
WlzGreySetRange.c
See Also
WlzIntro(1) WlzGreyRange(1) WlzGreySetRange(3)