simcirc - tpcclib 0.8.0 © 2023 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
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.
-diam2=<2nd diameter>
If the second diameter is specified, then a ring is created.
-iring=<value inside hole>
With option -diam2, the integer value for hole inside ring;
by default 0.
-segm=<Number of segments>
Divide circle or ring into given number of segments with increasing
value in each.
-inv
Write 0 inside the circle or ring, and 1 outside of it.
Not applicable with options -iring and -segm.
-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, simelli, imgadd, imglkup
Keywords: simulation, image, mask, software testing