flat2img - tpcclib 0.8.0 © 2023 by Turku PET Centre
Construct an ECAT PET image or sinogram from pixel values stored as 4-byte
(32-bits) floating point values in a binary flat file.
Data must be stored in this matrix order: all planes of the 1st frame,
2nd frame, and so on.
The format of the output file is determined from its file name extension
(*.v, *.s, *.i, *.img or *.scn).
The byte order of binary data is assumed to be the same as in current
platform; use option -e to change the byte order, if necessary.
Usage: flat2img [Options] flatfile ecatfile [zdim tdim xdim ydim]
Options:
-mif=<Matrix information file>
ASCII file containing the number of planes and frames, and x and y
dimensions, unless these are given as command-line arguments.
-scanner=<Advance|931|HR+|HRRT>
Set scanner specific parameters in headers.
-zoom=<reconstruction zoom>
Set reconstruction zoom in image headers (only for images)
-zero
Zero hot spots outside of FOV (only for images).
-bins=<Nr of bins>
Nr of bins in the output sinogram; use this to add (nr-dim1)/2 bins
filled with zeroes to both sides of sinogram.
-transpose
Transpose the data, i.e. switch x and y axis.
-e
Switch the byte order between little and big endian
-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.
Examples:
flat2img -scanner=Advance xyz.dat xyz.scn 35 1 281 336
flat2img -scanner=HRRT -mif=qwe.mif qwe.dat qwe.v
See also: img2flat, asc2flat, ana2ecat, nii2ecat, e7emhdr, eframe
Keywords: ECAT, image, sinogram, format conversion, simulation