imgcutof - tpcclib 0.7.9 © 2022 by Turku PET Centre
Cut off PET image (in ECAT, NIfTI, or Analyze format) pixel values that are
outside given range of values.
Original image file is modified, if file name for output is not given.
Usage: imgcutof [Options] imgfile lowerlimit upperlimit [outputfile]
Options:
-zero
Set pixel value to zero if original value is outside of the range;
by default value is set to the limit.
-mask
Set pixel value to one or zero, depending whether original value is
inside or outside of the range.
--force
Optional output file is written even in the case that no pixel values
fell outside of limits; by default image is saved only if contents were
modified.
-h, --help
Display usage information on standard output and exit.
-v, --version
Display version and compile information on standard output and exit.
-d[n], --debug[=n], --verbose[=n]
Set the level (n) of debugging messages and listings.
-q, --quiet
Suppress displaying normal results on standard output.
-s, --silent
Suppress displaying anything except errors.
Lower and upper limit can be given directly as values on the command line,
or as names of files containing only the value, or value with key 'lower' or
'upper', respectively.
See also: imgthrs, imgmask, imgqntls, imginteg, imgunit
Keywords: image, threshold, mask