reformatx(1)

πŸŽ€ NAME πŸŽ€

okay bestie, meet reformatx πŸ’– β€” she's a Volume reformatter and she eats every single time. πŸ¦‹


✨ SYNOPSIS ✨

the vibes come in three flavors, so pick your fighter:

reformatx [options] --floating floatingImg target x0 [x1 ...]

or…

reformatx [options] target [x0 x1 ...] {-j,--jacobian} xx0 [xx1 ...]

or… WHERE x0 ... xN and xx0 ... xxN is [{-i,--inverse}] transformation##. 🫢

⚠️ plot twist alert: if the first transformation in the sequence is inverted, then --inverse must be preceded by --, i.e., use -- --inverse xform.path. no skipping this, bestie, she's strict about it. 😭

πŸ’… DESCRIPTION πŸ’…

so like, reformatx is the extended volume reformatter tool, and her whole thing is computing reformatted images and Jacobian maps from arbitrary sequences of concatenated transformations. that's it, that's the girl. iconic. πŸ‘‘


🌈 OPTIONS 🌈

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

like, the communal wardrobe, every CMTK tool borrows from it:

  • --help β€” writes the list of basic command line options to standard output.
  • --help-all β€” writes the complete list of basic and advanced command line options to standard output.
  • --wiki β€” writes the list of command line options to standard output in MediaWiki markup.
  • --man β€” writes man page source in nroff markup to standard output.
  • --version β€” writes the toolkit version to standard output.
  • --echo β€” writes the current command line to standard output.
  • --verbose-level <integer> β€” sets the verbosity level.
  • --verbose, -v β€” increments the verbosity level by 1 (deprecated; supported for backward compatibility β€” she still answers the phone, but like, she's retired).
  • --threads <integer> β€” sets the maximum number of parallel threads (for POSIX threads and OpenMP). 🧚 go parallel bestie
  • --outputtype β€” scalar data type for the output image. Supported values: "char", "byte", "short", "ushort", "int", "uint", "float", "double", or use one of the following:
    • --char β€” 8 bits, signed
    • --byte β€” 8 bits, unsigned
    • --short β€” 16 bits, signed
    • --ushort β€” 16 bits, unsigned
    • --int β€” 32 bits signed
    • --uint β€” 32 bits unsigned
    • --float β€” 32 bits floating point
    • --double β€” 64 bits floating point
  • --pad-out <double>, -P <double> β€” padding value for the output image [Default: 0]

πŸŽ€ Options for Plain Reformatting

  • --interpolation β€” image interpolation method. Supported values: "linear", "nn", "cubic", "pv", "sinc-cosine", "sinc-hamming", where the default is "linear", or use one of the following:
    • --linear β€” trilinear interpolation [This is the default]
    • --nn β€” Nearest neighbor interpolation
    • --cubic β€” Tricubic interpolation
    • --pv β€” Partial volume interpolation
    • --sinc-cosine β€” Sinc interpolation with cosine window
    • --sinc-hamming β€” Sinc interpolation with Hamming window
  • --sinc-window-radius <integer> β€” window radius for Sinc interpolation [Default: 3]
  • --preserve-mass β€” mass-preserving reformatting: multiply every reformatted value with the Jacobian determinant of the applied transformation. πŸ“ she's thorough like that

πŸ¦‹ Options for Jacobian Map Reformatting

  • --jacobian-correct-global β€” correct Jacobian maps for global scale.
  • --no-jacobian-correct-global β€” do not correct Jacobian maps for global scale. [This is the default] πŸ’€

🌸 Input Options

  • --target-grid <string> β€” define target grid for reformating as Nx,Ny,Nz:dX,dY,dZ[:Ox,Oy,Oz] (dims:pixel:offset)
  • --mask, -m β€” use target pixel data as binary mask.
  • --crop <string> β€” crop target image: x0,y0,z0,x1,y1,z2
  • --target-offset <string>, -O <string> β€” override target image offset and set to x,y,z mm
  • --target-offset-pixels <string> β€” override target image offset and set to dx,dy,dz pixels
  • --floating <string>, -F <string> β€” format and path of floating image. [Default: NONE]
  • --pad-floating <double> β€” padding value for the floating image [Default: disabled]

πŸ’œ Output Options

  • --outfile <string>, -o <string> β€” format and path of output image. [Default: reformat.nii ]

🌟 Image/Transformation Database

  • --db <string> β€” path to image/transformation database that should be updated with the newly created image. [Default: NONE]

🫢 AUTHORS 🫢

Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko. πŸ‘‘ the whole friend group showed up and they all ate.


πŸ“œ LICENSE πŸ“œ

http://www.fsf.org/licensing/licenses/gpl.html

go read it bestie, it's giving legal realness. πŸ’…


πŸ’€ BUGS πŸ’€

Report bugs at http://nitrc.org/projects/cmtk/ β€” she wants the tea, fr fr. πŸ›


✨ ACKNOWLEDGMENTS ✨

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. 🌈 thank you funders, you're the real main characters.


okay that's the whole page bestie, you're fully caught up πŸ’– this was reformatx(1) from CMTK 3.3.1p2, dated Jun 24 2026 β€” go reformat something and slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from