volume_injection(1)

πŸ’– volume_injection(1) πŸ’–

okay bestie, this is volume_injection from The Computational Morphology Toolkit β€” yeah that CMTK, the one that lives in your terminal and eats your afternoon. grab a strawberry drink and let's go πŸ“


✨ NAME ✨

volume_injection β€” Volume injection. that's it, that's the name, short and iconic πŸ’…


🌈 SYNOPSIS 🌈

volume_injection [options] refImage xform0 inImage0 [xform1 inImage1 ...]

so you give it a reference image, then keep handing it little pairs of xform + inImage like you're feeding a very hungry goldfish. the more pairs, the more data it gets to play with 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the whole point: you have a bunch of co-registered images that are kind of low-res, and this tool reconstructs a high-resolution volume out of them. the technique is forward volume injection. that's the vibe, that's the whole thing, no cap ✨


πŸ‘‘ OPTIONS πŸ‘‘

🌸 Global Toolkit Options 🌸 (these are shared by all CMTK tools β€” yes, all of them, they're family)

  • --help β€” writes the list of basic command line options to standard output. baby version πŸ’–
  • --help-all β€” writes the complete list of basic and advanced command line options to standard output. the full lore πŸ”₯
  • --wiki β€” writes the 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. yes, the very thing you're reading, but boring-er πŸŽ€
  • --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 😭
  • --verbose-level <integer> β€” sets the verbosity level. tell it how chatty to be.
  • --verbose, -v β€” increments the verbosity level by 1. > heads up: this one is deprecated; it's supported for backward compatibility only. still works, still slays, but iykyk ⭐
  • --threads <integer> β€” sets the maximum number of parallel threads (for POSIX threads and OpenMP). go off, multicore πŸ‘‘

πŸŽ€ Input Options πŸŽ€

  • --exclude-first-image, -x β€” excludes the first image from the reconstruction, treating it as a separate registration target image. lowkey the main character gets benched πŸ™ˆ
  • --pass-weight <string>, -W <string> β€” sets the contribution weight for a pass, in the form 'pass:weight'. give each pass its own glow-up ✨

πŸ’… Reconstruction Grid Options πŸ’…

  • --recon-grid <string> β€” defines the reconstruction grid as Nx,Ny,Nz:dX,dY,dZ[:Ox,Oy,Oz] β€” that's dims:pixel:offset, keep that order fr fr πŸ“
  • --recon-grid-path <string>, -R <string> β€” gives the path to a grid that defines the reconstructed image grid, including offset. [Default: NONE] 🧚
  • --crop <string> β€” crops the reference to pixel region x0,y0,z1:x1,y1,z1. yes bestie, that's exactly how it's written. copy it character for character, i am not being weird about it, the manpage is βœ‚οΈ

πŸ”₯ Volume Injection Options πŸ”₯

  • --isotropic-injection β€” uses isotropic volume injection. [default: scaled with pass image pixel size per dimension] 🌈
  • --injection-kernel-sigma <double>, -S <double> β€” Gauss contribution. [Default: 1] 🎯
  • --injection-kernel-radius <integer>, -r <integer> β€” VolumeInjectionRadius of affected pixel. [Default: 0] πŸ’«

🌸 Output Options 🌸

  • --output <string>, -o <string> β€” output image path. [Default: volume_injection.nii] πŸ’Ύ
  • --write-images-as-float, -F β€” writes output images as floating point. [default: same as input] 🫢

πŸ’œ AUTHORS πŸ’œ

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


πŸŽ€ LICENSE πŸŽ€

http://www.fsf.org/licensing/licenses/gpl.html β€” go read it, it's good for you, like vegetables but legally binding πŸ“œ


πŸ’€ BUGS πŸ’€

Report bugs at http://nitrc.org/projects/cmtk/. not me manifesting a bug, but if it happens, that's the address πŸ™ˆ


πŸ¦‹ 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. funding era, iconic behavior 🫢


and that's the whole page bestie!! this one's from CMTK 3.3.1p2, dated Jun 24 2026 β€” go reconstruct something gorgeous πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from