mk_analyze_hdr(1)

✨ mk_analyze_hdr β€” make Analyze header file ✨

okay bestie, you know the drill: this is a mk_analyze_hdr(1) situation from the Computational Morphometry Toolkit, and I'm gonna walk you through it like we're texting at 2am 🫢


πŸ’– NAME πŸ’–

mk_analyze_hdr β€” literally just: make an Analyze header file. that's the gig. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

mk_analyze_hdr [options] [output.nii]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: this bad boy builds you a header file that follows the Analyze 7.5 format. You feed it the deets β€” geometry, data type, orientation, all that β€” and it writes the header accordingly. no cap, it's giving "fill in the blanks but make it neuroimaging" ✨


πŸ‘‘ OPTIONS πŸ‘‘

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

bestie, these ones are universal β€” every CMTK tool gets them, so you already know her πŸ’–

  • --help β€” dumps the list of basic command line options to standard output.
  • --help-all β€” dumps the complete list, basic and advanced, to standard output. the deluxe version, periodt.
  • --wiki β€” writes the command line options out in MediaWiki markup. for your wiki girlies.
  • --man β€” writes the man page source in 'nroff' markup to standard output. manpage-ception 😭
  • --version β€” writes the toolkit version to standard output.
  • --echo β€” writes the current command line to standard output. so you can see what you actually typed lol.
  • --verbose-level <integer> β€” sets the verbosity level.
  • --verbose, -v β€” bumps the verbosity level up by 1. ⚠️ deprecated β€” it's only still here for backward compatibility, so don't come for me.
  • --threads <integer> β€” sets the max number of parallel threads (for POSIX threads and OpenMP). go off, multicore queen πŸ”₯

πŸŽ€ Main Options πŸŽ€

this is where the actual ✨content✨ lives:

  • --dims <string>, -D <string> β€” set the dimensions in voxels.
  • --voxel <string>, -V <string> β€” set the voxel size in [mm].
  • --offset <float>, -O <float> β€” binary data file offset. [Default: disabled]
  • --byte, -b β€” 8 bits, unsigned. (this one's the default, iykyk)
  • --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.
  • --big-endian, -B β€” big endian data. [This is the default]
  • --little-endian, -L β€” little endian data.
  • --axial β€” set slice orientation to axial (this is the default, she's the main character πŸ’…).
  • --axial-flip β€” set slice orientation to reverse axial.
  • --sagittal β€” set slice orientation to sagittal.
  • --sagittal-flip β€” set slice orientation to reverse sagittal.
  • --coronal β€” set slice orientation to coronal 🌞 (the manpage's own label says "corona;" and honestly? we respect the typo.)
  • --coronal-flip β€” set slice orientation to reverse coronal.
  • --legacy β€” legacy mode; it does not write the 'SRI1' tag into the header. retro era πŸ•°οΈ
  • --SRI1 β€” force the 'SRI1' tag even if it wasn't present in the imported header. manifesting it ✨
  • --import <string>, -I <string> β€” import data from the given header file. [Default: NONE]
  • --description <string> β€” set the description string, [max. 80 characters]. [Default: NONE]

🫢 AUTHORS 🫢

Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko. legends only, no cap πŸ‘‘


πŸ“œ LICENSE πŸ“œ

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

(go read it, bestie, it's giving GPL πŸ’œ)


πŸ’€ BUGS πŸ’€

found a bug? report it at http://nitrc.org/projects/cmtk/ β€” they wanna hear it 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.


and that's the whole page, bestie β€” CMTK 3.3.1p2, dated Jun 24 2026, filed under mk_analyze_hdr(1). slay, go make those headers πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from