simcirc - tpcclib 0.7.8 © 2022 by Turku PET Centre

Draw circle in x,y matrix with 1 inside circle and 0 outside of it
for simple simulations, SW testing, and creating ROI masks.
Matrix size and circle diameter must be given in pixels.
Usage: simcirc [Options] dimension diameter outputfile
     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.
 -diam2=<2nd diameter>
     If the second diameter is specified, then a ring is created.
     Write 0 inside the circle or ring, and 1 outside of it.
 -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:
  simcirc 256 224 circle.txt
Example #2:
  simcirc -format=float 256 64 circle.bin
  flat2img -scanner=hrrt circle.bin circle.v 1 1 256 256
See also: flat2img, asc2flat, simiart, simboxes, imgcalc, imgadd, imglkup
Keywords: simulation, image, mask, software testing