groupwise_affine(1)
β¨ NAME β¨
groupwise_affine β affine population registration. That's it, that's the whole girlboss job description. It's page groupwise_affine(1) from the Computational Morphology Toolkit, and she's here to get your whole image squad aligned at the same time. No template needed. Periodt. π
π¦ SYNOPSIS π¦
groupwise_affine [options] image0 [image1 ...]
π DESCRIPTION π
Okay so here's the tea, bestie β β this tool registers a whole population of input images simultaneously. All at once. Together. No template, no middleman, no "everyone line up behind image zero" energy. It's giving main character ensemble cast. π
And how does it do that? You've got two options, lowkey iconic both of them:
- the 'congealing' algorithm, or
- a groupwise similarity measure built on a continuous approximation of mutual information (aka 'RMI').
Choose your fighter, we'll get to the flags below. β¨
πΈ OPTIONS πΈ
π« Global Toolkit Options (these are shared by all CMTK tools)
Like, every CMTK tool has these. They're the family heirlooms. π«Ά
--helpβ writes the list of basic command line options to standard output.--help-allβ writes the complete list of basic and advanced command line options to standard output. The deluxe edition. π--wikiβ writes the list of command line options to standard output in MediaWiki markup.--manβ writes man page source in 'nroff' markup to standard output.--versionβ writes the toolkit version to standard output.--echoβ writes the current command line to standard output. So you can screenshot it for the group chat, obviously.--verbose-level <integer>β set the verbosity level. Pick your volume. π--verbose,-vβ increments verbosity level by 1. It is deprecated; it's supported for backward compatibility only (we keep it around like that one situationship, iykyk).--threads <integer>β set the maximum number of parallel threads (for POSIX threads and OpenMP). Multitasking queen. π
π₯ Registration Metric Options
Which metric drives the whole thing.
--rmiβ use the RMI (a.k.a. regional mutual information) metric to drive the registration.--congealβ use the congealing algorithm, using pixelwise stack entropies to drive the registration. This is the default. The moment. π
π Template Image Options
--template <string>,-t <string>β input filename for a pre-defined template image. [Default:NONE]--template-with-data <string>,-T <string>β use the user-supplied template image's pixel data in registration. [Default:disabled]
π«Ά Output Options
Where all the goods get written, bestie.
--output-root <string>,-O <string>β root directory for all output files. [Default:NONE]--output <string>,-o <string>β output filename for the groupwise registration archive. [Default:groupwise.xforms]--output-average <string>β output filename for the registered average image. [Default:average.nii]--average-linearβ use linear interpolation for the average image. This is the default.--average-cubicβ use cubic interpolation for the average image. Fancier, slower, β¨vibesβ¨.--no-output-averageβ do not write the average image. Sometimes you just don't want the souvenir.
π Multiresolution Parameters
--downsample-from <integer>,-d <integer>β initial downsampling factor. [Default:4]--downsample-to <integer>,-D <integer>β final downsampling factor. [Default:1]--sampling-density <float>,-s <float>β probabilistic sampling density. Legal values are between0and1. [Default:disabled]
π¦ Image Options and Operations
--force-background <integer>,-B <integer>β force background pixels (outside FOV) to the given (bin) value. [Default:disabled]--histogram-bins <integer>,-H <integer>β manually set the number of histogram bins for entropy evaluation. [Default:disabled]--crop-histogramsβ crop image histograms to make better use of the histogram bins.--smooth <double>β sigma of the Gaussian smoothing kernel, in multiples of the template image pixel size. [Default:disabled]--match-histogramsβ match all image histograms to the template data (or to the first image, if no template image is given).--free-and-rereadβ free memory allocated for the original images whenever they're not needed, and re-read the image files as needed. This can be useful when running on a machine with limited memory resources. Very "my laptop is fighting for its life" core. π
π Transformation Parameters
--dofs <integer>[,<integer>,...]β add DOFs to the list. [Default: one pass, 6 DOF]--zero-sum,-zβ enforce zero-sum computation.--normal-group-first-n <integer>,-N <integer>β the first N images are from the normal group and should be registered unbiased. [Default:0]--zero-sum-first-n <integer>,-Z <integer>β enforce zero-sum computation for the first N images. [Default:disabled]
β Transformation Initialization
--align-bounding-boxesβ initially align the centers of the bounding boxes of all images by translations. This is the default.--align-centers-of-massβ initially align the centers of mass by translations.--init-scalesβ initialize the scale factors using first-order moments.
π Optimization Parameters
--exploration <double>,-e <double>β exploration of optimization, in pixels. [Default:0.25]--accuracy <double>,-a <double>β accuracy of optimization, in pixels. [Default:0.01]--repeat-level <integer>,-r <integer>β number of repetitions per optimization level. [Default:5]--step-factor <double>,-S <double>β step factor for successive optimization passes. [Default:0.5]--delta-f-threshold <double>β optional threshold to terminate optimization (level) if the relative change of the target function drops below this value. [Default:0]--disable-optimizationβ disable optimization and output the initial configuration. Do not pass go, do not collect your optimized transform. π«
π«Ά AUTHORS π«Ά
Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko. The whole crew ate and left no crumbs. π
π LICENSE π
http://www.fsf.org/licensing/licenses/gpl.html
π BUGS π
Report bugs at http://nitrc.org/projects/cmtk/ β tell them everything, babes, they want the details.
π 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. Institutional support? We love to see it. π
And that's the page, bestie β this is CMTK version 3.3.1p2, dated Jun 24 2026. Go register your population, slay, and don't forget to cite. Mwah. π
β¨
π¦ 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