xform2dfield(1)

✨ xform2dfield ✨

ok so bestie, welcome to the xform2dfield page from the Computational Morphometry Toolkit manual (section 1, iykyk πŸ’…). it's giving "transformation to deformation field" and honestly? it ate. let's get into it 🫢


πŸŽ€ NAME πŸŽ€

xform2dfield β€” Transformation to Deformation Field. that's it, that's the vibe ✨


🌸 SYNOPSIS 🌸

xform2dfield OutputPath ReferenceImage XformList

three args, no notes, iconic πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: this tool converts a parametric rigid or nonrigid transformation into a deformation field, and it samples that field at the pixel locations of a reference image you hand it. that's the whole plot. simple, slay, efficient πŸ’–


πŸ’… OPTIONS πŸ’…

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

like literally every CMTK tool gets these, they're the group chat everyone's in πŸ’œ

  • --help β€” writes the list of basic command line options to standard output. baby's first help, we love her πŸŽ€
  • --help-all β€” writes the complete list, basic and advanced command line options, to standard output. the full lore drop 😭
  • --wiki β€” writes the list of command line options to standard output in MediaWiki markup. for when you're being a wiki main character ✨
  • --man β€” writes the man page source in 'nroff' markup to standard output. meta? we're doing meta πŸŒ€
  • --version β€” writes the toolkit version to standard output. πŸ¦‹
  • --echo β€” writes the current command line to standard output. so you can see what you just did, no cap πŸ’€
  • --verbose-level <integer> β€” sets the verbosity level. more number = more talking πŸ—£οΈ
  • --verbose, -v β€” increments the verbosity level by 1. deprecated, bestie, but supported for backward compatibility 🫢 (yes we're still keeping it around, don't come for her)
  • --threads <integer> β€” sets the maximum number of parallel threads (this is for POSIX threads and OpenMP, she's versatile πŸ’ͺ)

πŸ‘‘ Main Options πŸ‘‘

  • --mask, -m β€” use reference image pixels as a binary mask. masking era 🎭
  • --target-image-fsl <string> β€” path to an optional target image to be used in FSL. this is the image that the transformation β€” and therefore the deformation field it creates β€” maps to. so here's the thing: when you're making a deformation field for FSL's "applywarp" tool, it may be necessary to determine whether the x coordinate of the resulting deformation vectors has to be flipped. [Default: disabled] πŸ™ˆ
  • --inversion-tolerance-factor <double> β€” factor for the numerical tolerance of B-spline inversion [multiples of minimum grid pixel size; default=0.1] [Default: 0.1]. precision queen πŸ‘‘
  • --downsample <string> β€” downsample the grid by factors 'x,y,z' or by a single factor 'xyz' [Default: NONE]. choose your reduction, it's giving options ✨
  • --output-absolute β€” make the output deformation field with absolute target location vectors, rather than relative offset vectors. absolute vs relative, the eternal question πŸ’…

🫢 AUTHORS 🫢

Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko. a whole squad, we stan a collaborative effort 🌈


πŸ“œ LICENSE πŸ“œ

http://www.fsf.org/licensing/licenses/gpl.html β€” GPL, obviously πŸ’–


πŸ’€ BUGS πŸ’€

report bugs at http://nitrc.org/projects/cmtk/. not me manifesting zero bugs but okay πŸ™ˆ


⭐ 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 slay πŸ’Έβœ¨


and that's the whole page bestie!! this manual is from CMTK 3.3.1p2, dated Jun 24 2026 β€” genuinely iconic of them to future-date it, we love a time traveler πŸ‘‘πŸ’œ go forth and convert those transformations fr fr πŸ¦‹

πŸ“¦ where this page comes from