mk_nifti_hdr(1)

πŸ’– mk_nifti_hdr(1) β€” the CMTK girlie's guide πŸ’–

okay so bestie, we're in the Computational Morphology Toolkit (CMTK for the girlies who abbreviate) and this one? this one is mk_nifti_hdr. no cap. it makes a NIFTI header file and honestly it eats. πŸŽ€


✨ NAME ✨

mk_nifti_hdr β€” Make NIFTI header file. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

mk_nifti_hdr [options] [output.nii]

see how clean that is? options, then the output file, slay. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this little icon makes a header file according to the NIFTI file format, and it builds it out of whatever parameters you hand it β€” geometry, data type, orientation, all of it. you tell it, it writes it. main character energy fr fr. πŸ’œ


πŸ‘‘ OPTIONS πŸ‘‘

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

not to be dramatic but these are the communal girlies β€” every CMTK tool has them. it's giving "group chat rules". 🫢

  • --help β€” dumps the list of basic command line options to standard output. your starter pack, bestie.
  • --help-all β€” dumps the complete list, basic AND advanced, to standard output. the full lore. 😭
  • --wiki β€” writes the list of command line options to standard output in MediaWiki markup. for the wiki girlies.
  • --man β€” writes man page source in nroff markup to standard output. meta? a little. iconic? absolutely.
  • --version β€” writes the toolkit version to standard output. know your era.
  • --echo β€” writes the current command line to standard output. receipts. πŸ’…
  • --verbose-level <integer> β€” set the verbosity level. how much do you want it to talk.
  • --verbose, -v β€” increments verbosity level by 1. ⚠️ lowkey deprecated but still supported for backward compatibility, so don't come for it.
  • --threads <integer> β€” set the maximum number of parallel threads (for POSIX threads and OpenMP). multitasking queen. πŸ‘‘

πŸ“ Main Options

this is where the actual ✨content✨ lives. buckle up.

  • --dims <string>, -D <string> β€” set the dimensions in voxels. you give it like 'DimsX,DimsY,DimsZ' and you're done. πŸ“
  • --voxel <string>, -V <string> β€” set the voxel size. give it 'PixX,PixY,PixZ' β€” and that's [in mm] btw. measurements matter.
  • --offset <float>, -O <float> β€” binary data file offset. [Default: disabled] β€” so it's just vibing, off, until you say otherwise.
  • --byte, -b β€” 8 bits, unsigned. and psst β€” this is the default. the moment. ⭐
  • --char, -c β€” 8 bits, signed.
  • --short, -s β€” 16 bits, signed.
  • --ushort, -u β€” 16 bits, unsigned.
  • --int, -i β€” 32 bits signed.
  • --float, -f β€” 32 bits floating point.
  • --double, -d β€” 64 bits floating point. go big or go home. πŸ”₯
  • --reset-coordinates β€” in an imported header, reset the image-to-physical coordinate mapping to an identity matrix. factory reset but make it geometry.
  • --attached β€” create an attached header for use in single-file images. 🚨 heads up: the image data must be concatenated directly onto the created header file. no skipping that step, bestie.
  • --import <string>, -I <string> β€” import data from the given header file. [Default: NONE] β€” starts off with nothing, as she should.
  • --description <string> β€” set the description string. [max. 80 characters] [Default: NONE] β€” so keep it cute but keep it under 80. πŸ’€

πŸ’œ AUTHORS πŸ’œ

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


πŸ“œ LICENSE πŸ“œ

http://www.fsf.org/licensing/licenses/gpl.html β€” yeah it's the GPL, go read it, it's important. πŸŽ€


πŸ› BUGS πŸ›

found a bug? report it at http://nitrc.org/projects/cmtk/. don't suffer in silence bestie, that's not the vibe. 😭


🌟 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. and from April 2009 through September 2011, CMTK development and maintenance was supported by the NIBIB under Grant EB008381. funding girls stay winning. πŸ‘‘


okay bestie that's the whole page!! this was CMTK 3.3.1p2, dated Jun 24 2026 β€” yes that date is real, no I will not be elaborating. go make some headers, you're gonna ate. πŸ’…βœ¨πŸ¦‹πŸŽ€πŸ’–

πŸ“¦ where this page comes from