simboxes - tpcclib 0.7.8 © 2022 by Turku PET Centre

Draw x,y,z matrix containing boxes with values starting from 1
for simple simulations, SW testing, and creating ROI masks.
Matrix and box x,y-dimension and z-dimension must be given in pixels.
 
Usage: simboxes [Options] matxydim matzdim boxxydim boxzdim outputfile
 
Options:
 -format=<<TSV>|<CSV>|<float>|<short>>
     Matrix data can be saved as tab separated values (TSV, default),
     comma separated values (CSV), or as binary flat files with either
     floats or short ints.
 -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 #1:
  simboxes 128 15 16 1 boxes.txt
Example #2:
  simboxes -format=float 128 15 16 1 boxes.bin
  flat2img -scanner=931 boxes.bin boxes.img 15 1 128 128
 
See also: flat2img, asc2flat, simcirc, imgshrink, imgadd, imglkup, dft2img
 
Keywords: simulation, image, mask, software testing