Scroll to navigation

mat2dof(1) The Computational Morphometry Toolkit mat2dof(1)


mat2dof - Matrix to degrees of freedom


mat2dof [options] < matrix


Convert transformation matrix to degrees of freedom


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).

Input Options

Only input upper left 3x3 submatrix.
Transpose input matrix.
For matrices in pixel space (i.e., mapping from grid index to physical coordinate), set image grid pixel size. [Default: NONE]

Transformation Modifiers

Set center x,y,z for rotation and scaling. [Default: NONE]
Set offset dx,dy,dz for translation. [Default: NONE]
Translate result relative by given vector. [Default: NONE]
Output inverse transformation. Inversion happens after all other modifiers have been applied.

Output Options

Write output transformation to this file [Default: NONE]
Write output in list format to this archive (directory including 'registration' and 'studylist' files). [Default: NONE]
Append to output file rather than create a new one and overwrite exisiting files.


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