unwarp_...phantom(1)
π unwarp_image_phantom(1) π
okay bestie, gather round, because this one is a chef's kiss little CMTK tool and you're gonna want it in your life. it lives in the Computational Morphometry Toolkit, so you already know it's giving brain-science realness π§ β¨
πΈ NAME πΈ
unwarp_image_phantom β the girlies who make a transformation to unwarp an image based on a phantom description π (yes, phantom like a structural phantom, not a ghost, don't get it twisted π»)
β¨ SYNOPSIS β¨
unwarp_image_phantom InputPhantom InputImage OutputXform
three args, in, in, out. that's the whole vibe. π
π¦ DESCRIPTION π¦
so like, this tool computes either a polynomial transformation or a B-spline free-form deformation, and its whole job is to unwarp an image. the transformation is based on expected and detected landmarks in an image of a structural phantom that got acquired on the same scanner. periodt.
and listen: you don't just make the phantom description out of thin air. use the detect_adni_phantom tool to detect landmarks of the ADNI Phantom in an image and generate a phantom description file that's suitable for use with this tool. that's the pipeline, bestie, that's the lore. π«Ά
π OPTIONS π
π Global Toolkit Options π (these are shared by all CMTK tools, so they're like the group chat everyone's in)
--helpβ writes the list of basic command line options to standard output. baby's first flag πΌ--help-allβ writes the complete list of basic and advanced command line options to standard output. the full tea β--wikiβ writes the list of command line options to standard output in MediaWiki markup. wiki girlies rise π§--manβ writes man page source innroffmarkup to standard output. meta, i know, we love it π--versionβ writes toolkit version to standard output.--echoβ writes the current command line to standard output. it's giving receipts π--verbose-level <integer>β set verbosity level.--verbose,-vβ increment verbosity level by 1. > ok so heads up: this one is deprecated, it's only supported for backward compatibility. still works, just know π--threads <integer>β set maximum number of parallel threads (for POSIX threads and OpenMP). multi-threaded slay π₯
π Fitting Options π
--fit-inverseβ fit the inverse transformation (mapping actual to expected landmark locations). this is useful for computing a Jacobian volume correction map (usingreformatx) without having to numerically invert the fitted unwarping transformation. no cap, that saves you so much pain π--fit-forwardβ fit the forward transformation (mapping expected to actual landmark locations). this is useful for rectifying the image via reslicing (usingreformatx). [This is the default] β
π Transformation Models π
--splineβ fit B-spline free-form deformation.--polyβ fit polynomial transformation. [This is the default] β
π Polynomial Fitting Options (with --poly) π
--degree <integer>β degree of the fitted polynomial transformation. [Default: 4]
πΈ B-Spline Fitting Options (with --spline) πΈ
--final-cp-spacing <double>β final control point grid spacing of the output B-spline transformation. [Default: 0]--final-cp-dims <string>β final control point grid dimensions (i.e., number of control points) of the output B-spline transformation. to be provided as'dimX,dimY,dimZ'. [Default: NONE]--levels <integer>β number of levels in the multi-level B-spline approximation procedure. [Default: 1]--iterations-per-level <integer>β maximum number of spline coefficient update iterations per level in the multi-level B-spline approximation procedure. [Default: 100]--rms-threshold <double>β threshold for relative improvement of the RMS fitting residual. the fitting iteration terminates if(rmsAfterUpdate-rmsBeforeUpdate)/rmsBeforeUpdate < threshold. [Default: 0]--no-fit-affineβ disable fitting of an affine transformation to initialize the spline. instead, fit the spline directly. > bestie, real talk: this usually gives worse results and is discouraged. i said what i said π
π AUTHORS π
Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko. legends, every single one π
β LICENSE β
http://www.fsf.org/licensing/licenses/gpl.html
π BUGS π
found a bug? report it at http://nitrc.org/projects/cmtk/ β do your civic duty bestie π«‘
π 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. science is a group project fr fr π
and that's the whole page, bestie! this one's wearin' CMTK 3.3.1p2 energy, dated Jun 24 2026, and it ate, no crumbs left. go unwarp something iconic πβ¨π
π¦ 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