warp(1)
β¨ warp(1) β the B-spline nonrigid registration bestie β¨
Okay so like, welcome to warp, part of The Computational Morphometry Toolkit (CMTK, for the girlies in the know π
). It does B-spline nonrigid registration and honestly? It ate.
πΈ NAME πΈ
warp β B-spline nonrigid registration. That's it, that's the vibe.
π¦ SYNOPSIS π¦
warp ReferenceImage FloatingImage InitialXform
Three little args, one big glow-up for your images β¨
π DESCRIPTION π
So basically, this program performs nonrigid image registration using multi-resolution optimization of voxel-based image similarity measures and a multi-resolution B-spline transformation model.
Translation for the besties: it wiggles your image around in a bendy, squishy, spline-y way until it lines up with another image, and it does it at multiple zoom levels like a queen who checks her makeup from far away and up close. πͺπ
π OPTIONS π
π Global Toolkit Options (these are shared by all CMTK tools)
These ones are the communal closet β every CMTK tool gets to borrow them, no cap.
--helpβ Writes the list of basic command line options to standard output. The "just tell me the basics" button.--help-allβ Writes the complete list of basic and advanced command line options to standard output. The "give me everything, I can handle it" button π₯--wikiβ Writes the list of command line options to standard output in MediaWiki markup. For when your docs live on a wiki, periodt.--manβ Writes man page source innroffmarkup to standard output. Meta, iconic, no notes.--xmlβ Writes the command line syntax specification in XML markup (for Slicer integration). Slicer girlies, this one's for you π«Ά--versionβ Writes the toolkit version to standard output. Vibe check the release.--echoβ Writes the current command line to standard output. It's giving receipts.--verbose-level <integer>β Sets the verbosity level. Turn the yapping up or down.--verbose,-vβ Increments the verbosity level by 1. Heads up bestie: this is deprecated, it's only supported for backward compatibility. π--threads <integer>β Sets the maximum number of parallel threads (for POSIX threads and OpenMP). More threads, more speed, more main character energy.
π§ Transformation import/export
--initial <transformation-path>β Initialize transformation from given path [Default: NONE]--write-itk-xform <transformation-path>β Output path for the final transformation in ITK format [Default: NONE]--write-reformatted <image-path>β Write the reformatted floating image. [Default: NONE]
πΈ Transformation parameters
--grid-spacing <double>,-g <double>β Control point grid spacing [Default: 15]--exact-spacingβ Use exact control point spacing; do not modify spacing to fit the reference image bounding box. No fitting, no compromising. π--refine <integer>β Number of refinements (control point grid resolution levels) [Default: 0]--delay-refineβ Delay control point grid refinement; first switch to the next higher image resolution.--ignore-edge <integer>β Ignore n control point layers along each image face [Default: 0]--restrict <string>β Restrict deformation to coordinate dimension(s) [one or more of'x','y','z'] [Default: NONE]--no-adaptive-fixβ Disable adaptive fixing of control points; optimize all deformation parameters.--adaptive-fix-thresh <float>β Threshold factor for entropy criterion to fix local control points [Default: 0.5]--accurateβ Accurate computation mode: may give slightly better results after substantially longer computation. [This is the default]--fastβ Fast computation mode: may give slightly worse results than accurate mode, but saves substantial CPU time. πββοΈπ¨--switch,-Sβ Switch reference and floating image. Swap era. π
π Regularization parameters
--jacobian-weight <float>β Weight for Jacobian-based local volume preservation constraint [Default: 0]--energy-weight <float>β Weight for grid bending energy constraint [Default: 0]--rigidity-weight <float>β Weight for local rigidity constraint [Default: 0]--ic-weight <float>β Weight for inverse consistency constraint [Default: 0]--relax <float>β Weight relaxation factor for alternating under-constrained iterations [Default: -1]--relax-to-unfoldβ Before each resolution level, regularize negative-Jacobian areas of the deformation to unfold them. Unfolding the chaos, one layer at a time π«Ά
β Optimization parameters
--exploration <double>,-e <double>β Search space exploration (initial step size) [Default: -1]--accuracy <double>,-a <double>β Search accuracy (initial step size) [Default: -1]--stepfactor <double>,-f <double>β Factor for search step size reduction. Must be > 0.0 and < 1.0 [default: 0.5] [Default: 0.5]--delta-f-threshold <double>β Optional threshold to terminate optimization (level) if the relative change of target function drops below this value. [Default: 0]--no-maxnormβ Use the Euclid norm for gradient normalication in optimization, rather than the maximum norm. (Yes, "normalication" β we're quoting the original, don't come for us π)
π Image resolution parameters
--sampling <double>,-s <double>β Image sampling (finest resampled image resolution) [Default: -1]--coarsest <double>β Upper limit for image sampling in multiresolution hierarchy [Default: -1]--omit-original-dataβ Do not use original data in full resolution for the final registration stage.
π Image data
--registration-metricβ Registration metric for motion estimation by image-to-image registration. Supported values:"nmi","mi","cr","msd","ncc", where the default is"nmi", or use one of the following:--nmiβ Normalized Mutual Information metric [This is the default]--miβ Standard Mutual Information metric--crβ Correlation Ratio metric--msdβ Mean Squared Difference metric--nccβ Normalized Cross Correlation metric
--match-histogramsβ Match floating image histogram to reference image histogram. Twin energy β¨--force-outside-value <double>β Force values outside the field of view to this value rather than drop incomplete pixel pairs [Default: disabled]
π Reference Image Preprocessing
--class-ref <string>β Data class:grey(default) orlabel[Default: NONE]--pad-ref <double>β Padding value [Default: disabled]--thresh-min-ref <double>β Minimum value truncation threshold [Default: disabled]--thresh-max-ref <double>β Maximum value truncation threshold [Default: disabled]--prune-histogram-ref <integer>β Number of bins for histogram-based pruning [Default: disabled]--histogram-equalization-refβ Apply histogram equalization--sobel-filter-refβ Apply Sobel edge detection filter. Edge. Literally. πͺ--crop-index-ref <string>β Cropping region in pixel index coordinates [parsed as%d,%d,%d,%d,%d,%dfori0,j0,k0,i1,j1,k1] [Default: NONE]--crop-world-ref <string>β Cropping region in world coordinates [parsed as%f,%f,%f,%f,%f,%fforx0,y0,z0,x1,y1,z1] [Default: NONE]
π¦ Floating Image Preprocessing
--class-flt <string>β Data class:grey(default) orlabel[Default: NONE]--pad-flt <double>β Padding value [Default: disabled]--thresh-min-flt <double>β Minimum value truncation threshold [Default: disabled]--thresh-max-flt <double>β Maximum value truncation threshold [Default: disabled]--prune-histogram-flt <integer>β Number of bins for histogram-based pruning [Default: disabled]--histogram-equalization-fltβ Apply histogram equalization--sobel-filter-fltβ Apply Sobel edge detection filter--crop-index-flt <string>β Cropping region in pixel index coordinates [parsed as%d,%d,%d,%d,%d,%dfori0,j0,k0,i1,j1,k1] [Default: NONE]--crop-world-flt <string>β Cropping region in world coordinates [parsed as%f,%f,%f,%f,%f,%fforx0,y0,z0,x1,y1,z1] [Default: NONE]
π Output parameters
--outlist <string>,-o <string>β Output path for final transformation [Default: NONE]--protocol <string>,-p <string>β Optimization protocol output file name [Default: NONE]--time <string>,-t <string>β Computation time statistics output file name [Default: NONE]--output-intermediateβ Write transformation for each level [default: only write final transformation]
π§ Image/Transformation Database
--db <string>β Path to image/transformation database that should be updated with the new registration and/or reformatted image. [Default: NONE]
π« 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
π BUGS π
Report bugs at http://nitrc.org/projects/cmtk/. Not me manifesting a bug-free run π but if it happens, tell the devs, not the group chat.
π«Ά 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 page, bestie π This one's from CMTK 3.3.1p2, dated Jun 24 2026 β so like, shoutout to the version and the date, they're both serving. Go register something nonrigidly. Slay. β¨π π¦
π¦ 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