flat2nii - tpcclib 0.8.1 © 2025 by Turku PET Centre
Create a 4D PET image file in NIfTI 1S format, with contents from
the 32-bit float values in flat binary file.
Flat file must contain the pixel values in order t>z>y>x.
Usage: flat2nii [Options] flatfile xdim ydim zdim tdim imagefile
Options:
-pxlsize=<x,y,z>
Pixel sizes in x, y, and z dimensions in mm; by default 1 mm each.
-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:
flat2nii -pxlsize=2.5,2.5,3.0 data.bin 128 128 63 25 output
See also: img2flat, tac2nii, nii_ehdr, img2tif, simboxes, simcirc, pxl2mask
Keywords: image, NIfTI, simulation, software testing