imgdim - tpcclib 0.7.5 © 2020 by Turku PET Centre

Report the image dimensions.
 
Usage: imgdim [Options] imgfile
 
Image file can be in ECAT 6.3 or 7.x, NIfTI-1, or Analyze 7.5 format.
 
Options:
 -x | -y | -z | -t
     Report only the width (x), height (y), planes (z), or time frames (t);
     by default all are printed in stdout.
 -size
     Instead of image dimension, report the pixel size(s) in mm.
 -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.
 
Example: print dimensions of all ECAT 7 images in Windows command shell
       for %f in (*.v) do imgdim %f
 
Example: print dimensions of all ECAT 7 images in Linux/OSX command shell
       for file in ./*.v; do imgdim $file; done
 
See also: imgdelfr, imgdelpl, lmlist, imgbox, imgshrink, imgadd
 
Keywords: image, pixel, header, cropping, tool