imgthrs - tpcclib 0.8.0 © 2023 by Turku PET Centre
Threshold PET image file in ECAT, NIfTI, or Analyze format.
Program calculates an integral (AUC) over time frames of a dynamic image,
finds the maximal integral value of all planes, and cuts off (sets to zero)
the pixels in dynamic image which have lower or higher integral than
the specified threshold-%.
Original image file is not modified.
Usage: imgthrs [Options] imgfile lowerthreshold upperthreshold [outputfile]
Options:
-mask=<filename>
Save cutoff mask file containing pixels values 1 (between threshold
limits) and 0 (under lower or over upper threshold).
-abs
Thresholds are given as absolute values instead of percentages
of maximum in the static image; not applicable to dynamic images.
-start=<time (min)>
AUC calculation starts from given time. By default from scan start.
-end=<time (min)>
AUC calculation ends to given time. By default until scan end.
--force
Program does not mind if none of pixels are thresholded;
otherwise that is considered as an error.
-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.
Example: threshold the background and cerebrospinal fluid:
imgthrs b123dy1.v 30 100 b123thres.v
See also: img2dft, imgmask, imgqntls, imginteg, imgposv, imgslim, imgcutof
Keywords: image, threshold, mask