average_images(1)
β¨ average_images β NAME π
okay so average_images is literally THE girl for averaging images π
β it's a CMTK tool (The Computational Morphology Toolkit, iykyk) and it eats a whole list of images for breakfast and hands you back the math-y version of them.
πΈ SYNOPSIS πΈ
average_images [options] image0 ...
like. you hand her a bunch of image0 ... files, you sprinkle options on top, she does her thing. so simple. so iconic. π«Ά
π¦ DESCRIPTION π¦
bestie listen. this tool computes pixelwise average, variance, standard deviation, z-score, or entropy images from a list of intensity images you provide. that's it, that's the whole job, and she does it flawlessly no cap. β¨
π OPTIONS π
π Global Toolkit Options (these are shared by all CMTK tools)
every CMTK tool gets these, they're like the group chat everyone's in:
--helpβ writes the list of basic command line options to standard output. your lil starter pack π--help-allβ writes the COMPLETE list of basic and advanced command line options to standard output. the full lore, the extended cut π--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. yes, the very format you're reading rn, meta ik π--versionβ writes the toolkit version to standard output. vibe check the version β¨--echoβ writes the current command line to standard output. she repeats you back, respectfully π«Ά--verbose-level <integer>β sets the verbosity level. pick a number, any number π’--verbose,-vβ increments the verbosity level by 1. > β οΈ heads up: this one is deprecated; it's only supported for backward compatibility. she's still here for you but she's lowkey retired π--threads <integer>β sets the maximum number of parallel threads (for POSIX threads and OpenMP). more threads = more chaos = go faster π₯
πΈ Main Options πΈ
--modeβ the mode of averaging operation. supported values:"avg","var","stdev","zscore","entropy", where the default is"avg". or, alternatively, just use one of these cuties:--avgβ compute average (i.e., mean) image. [This is the default] β¨--varβ compute variance image.--stdevβ compute standard deviation image.--zscoreβ compute z-score image.--entropyβ compute pixel-by-pixel population entropy image. the chaotic one, obsessed π
π Data Preprocessing π
get your data cute before she averages it:
--log,-lβ apply log to input data. math-ify it first π--abs,-aβ use absolute input values. no negatives allowed, periodt β--normalize-mean-stdev,-nβ normalize image intensities using means and standard deviations. gets everyone on the same playing field π--set-padding-value <double>β define padding value in input images. [Default: disabled] β so by default there's no padding value set at all, fr fr π«₯
π Output Options π
--outfile-name <string>,-o <string>β output file name. [Default:average.nii]--typeβ scalar data type of output image. supported values:"float","double", where the default is"float". or use one of these:--floatβ single-precision float. [This is the default] β¨--doubleβ double-precision float. she's extra precise, she's built different π
π«Ά AUTHORS π«Ά
Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko
tag yourself, I'm the entire contributor list π
π LICENSE π
http://www.fsf.org/licensing/licenses/gpl.html
π BUGS π
found a bug? report bugs at http://nitrc.org/projects/cmtk/ β do NOT suffer in silence bestie, tell the devs π
π 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 thing π go average some images, you absolute icon, I'm so proud of you π«Άβ¨
this has been your girl from CMTK 3.3.1p2, dated Jun 24 2026, signing off β slay, bye ππ
π¦ where this page comes from
- ubuntu stonking: cmtk 3.3.1p2+dfsg-4build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms