Scroll to navigation

mk_phantom_3d(1) The Computational Morphometry Toolkit mk_phantom_3d(1)


mk_phantom_3d - Generate phantom image


mk_phantom_3d [options] command0 [command1 ...] sphere x,y,z radius value box x0,y0,z0 x1,y1,z1 value


Generate 3D digital phantom images using a selection of drawing commands


Global Toolkit Options (these are shared by all CMTK tools)

Write list of basic command line options to standard output.
Write complete list of basic and advanced command line options to standard output.
Write list of command line options to standard output in MediaWiki markup.
Write man page source in 'nroff' markup to standard output.
Write toolkit version to standard output.
Write the current command line to standard output.
Set verbosity level.
Increment verbosity level by 1 (deprecated; supported for backward compatibility).
Set maximum number of parallel threads (for POSIX threads and OpenMP).

Main Options

Set dimensions in voxels
Set voxel size in [mm]
Coordinate specification mode. Supported values: "indexed", "absolute", "relative", where the default is "indexed", or use one of the following:
Use grid indexes to specify coordinates. For each dimension, the valid value range is [0,Dims-1]. [This is the default]
Use absolute volume coordinates. For each dimension, the valid range is [0,FOV].
Use relative volume coordinates. For each dimension, the valid range is [0,1].
8 bits, signed
8 bits, unsigned
16 bits, signed
16 bits, unsigned [This is the default]
32 bits signed
32 bits floating point
64 bits floating point

Set the image background value (use to initialize newly created image). [Default: 0]
Import image [Default: NONE]
Import image grid only, ignore data [Default: disabled]
File name for output image [Default: phantom.nii ]


Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko



Report bugs at


CMTK is developed with support from the NIAAA under Grant AA021697, National Consortium on Alcohol and Neurodevelopment in Adolescence (N-CANDA): Data Integration Component. From April 2009 through September 2011, CMTK development and maintenance was supported by the NIBIB under Grant EB008381.

Jun 6 2022 CMTK 3.3.1p2