Scroll to navigation

mk_analyze_hdr(1) The Computational Morphometry Toolkit mk_analyze_hdr(1)


mk_analyze_hdr - Make Analyze header file


mk_analyze_hdr [options] [output.nii]


Make header file according Analzye 7.5 format based on user-supplied parameters for geometry, data type, orientation, etc.


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]
Binary data file offset [Default: disabled]
8 bits, unsigned (this is the default)
8 bits, signed
16 bits, signed
16 bits, unsigned
32 bits signed
32 bits floating point
64 bits floating point

Big endian data [This is the default]
Little endian data
Set slice orientation to axial (this is the default)
Set slice orientation to reverse axial
Set slice orientation to sagittal
Set slice orientation to reverse sagittal
Set slice orientation to corona;
Set slice orientation to reverse coronal
Legacy mode; do not write 'SRI1' tag into header
Force 'SRI1' tag even if not present in imported header
Import data from given header file. [Default: NONE]
Set description string [max. 80 characters] [Default: NONE]


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.

Jul 7 2024 CMTK 3.3.1p2