imgthrs - tpcclib 0.7.7 © 2021 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]
Save cutoff mask file containing pixels values 1 (between threshold
limits) and 0 (under lower or over upper threshold).
Thresholds are given as absolute values instead of percentages
of maximum in the static image; not applicable to dynamic images.
AUC calculation starts from given time. By default from scan start.
AUC calculation ends to given time. By default until scan end.
Program does not mind if none of pixels are thresholded;
otherwise that is considered as an error.
Display usage information on standard output and exit.
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.
Suppress displaying normal results on standard output.
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
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