average_affine(1)

πŸ‘‘ average_affine(1) πŸ’…

okay so bestie, welcome to average_affine β€” it's a tool from The Computational Morphology Toolkit (aka CMTK, iykyk) and it does exactly one thing but it does it so well. Buckle up πŸŽ€


✨ NAME ✨

average_affine β€” averages affine transformations. that's it. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

average_affine [options] x0 [x1 ...]
 WHERE x0 ... xN is [{-i,--inverse}] affine transformation #. (If the
first transformation in the sequence is inverted, then '--inverse' must
be preceded by '--', i.e., use '-- --inverse xform.path').

so like, x0 through xN are your affine transformations, and each one can be flipped with {-i,--inverse} if that's the energy you're bringing today. πŸ’«

⚠️ bestie listen: if the first transformation in your sequence is inverted, then --inverse has to be preceded by --, so you literally type -- --inverse xform.path. yes really. it's giving "the parser needed a lil personal space". 😭

πŸ’– DESCRIPTION πŸ’–

this tool computes the average of a sequence of user-provided affine coordinate transformations. you feed it a bunch of transforms, it hands you back the average one. no cap, that's the whole description. slay. ✨


πŸ’… OPTIONS πŸ’…

🌈 Global Toolkit Options 🌈

(these are shared by all CMTK tools, so they'll feel familiar if you've been around the toolkit before 🫢)

  • --help β€” writes the list of basic command line options to standard output. the lil starter pack. πŸ“
  • --help-all β€” writes the complete list of basic and advanced command line options to standard output. the deluxe edition, the full lore, the director's cut. πŸ‘‘
  • --wiki β€” writes the list of command line options to standard output in MediaWiki markup. for when you're documenting, bestie. πŸ“
  • --man β€” writes man page source in 'nroff' markup to standard output. 🧚
  • --version β€” writes toolkit version to standard output. 🏷️
  • --echo β€” writes the current command line to standard output. so you can see exactly what you typed, no revisionist history. 😌
  • --verbose-level <integer> β€” set verbosity level. crank it up, turn the volume on. πŸ”Š
  • --verbose, -v β€” increment verbosity level by 1. ⚠️ deprecated β€” supported for backward compatibility only. it's giving legacy, but we still love her. πŸ’€
  • --threads <integer> β€” set maximum number of parallel threads (for POSIX threads and OpenMP). multitasking queen behavior. πŸ”₯

πŸŽ€ Main Options πŸŽ€

  • --include-reference, -r β€” include reference coordinate system in the averaging. let the reference girl join the group chat. πŸ’œ
  • --outfile <string>, -o <string> β€” output transformation. [Default: average.xform ] β€” note the default literally has a space before the closing bracket, that's just how she is, iconic. πŸ’…
  • --append, -a β€” append to output file [default: overwrite]. the default is to overwrite, so if you wanna keep what's already there you gotta say -a, bestie. πŸ™ˆ
  • --invert-output, -I β€” invert averaged transformation before output [default: no]. flip it, turn it, reverse it. πŸ”„

🫢 AUTHORS 🫢

Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko. the whole squad, the founding mothers and fathers of this codebase, we stan. πŸ’–


πŸ“œ LICENSE πŸ“œ

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


πŸ’€ BUGS πŸ’€

report bugs at http://nitrc.org/projects/cmtk/

not me asking you to file an issue β€” okay yes, me asking you to file an issue. please. πŸ₯Ί

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

the funding grandparents came THROUGH, we owe them everything honestly. 🌸


and that's the whole page, bestie!! this was CMTK 3.3.1p2, dated Jun 24 2026, and yes it's the average_affine(1) manual page β€” you were literally reading it the whole time. go average something. slay. πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from