CMTK(1)
๐ CMTK(1) โ the Computational Morphometry Toolkit ๐ (part 1)
okay so bestie, this is the manual page for cmtk. Manual name: CMTK(1). Periodt. ๐
โจ NAME โจ
cmtk โ the Computational Morphometry Toolkit. That's the whole name section, no cap. ๐
๐ธ SYNOPSIS ๐ธ
cmtk <command> [options]
๐ซถ DESCRIPTION ๐ซถ
This helper script is your unified access pass to all command-line tools provided by CMTK. You tell it which CMTK command to run, plus the options for that command. For <command>-specific options, check the cmtk-<command>(1) manpage or the output of cmtk <command> --help. It's giving very one door, all the tools, fr fr. ๐
๐ COMMANDS ๐
Here's the whole squad. Each one is a CMTK command you can call through cmtk.
asegmentโ registers a target image to an atlas, using affine first and then nonrigid B-spline registration, then reformats the atlas label map to the target image. atlas-to-you pipeline, slay. โจasegment_sri24โ registers a target image to a selected channel of the SRI24 human brain atlas, then reformats one of the atlas label maps to the target image. Note: it is assumed that the target image is skull-stripped, i.e., contains only the brain. Don't forget that part, bestie. ๐งaverage_affineโ computes the average of a sequence of user-provided affine coordinate transformations.average_imagesโ computes pixelwise average, variance, standard deviation, z-score, or entropy images from a list of user-provided intensity images. it's giving stats class but make it iconic. ๐average_labelsโ averages co-registered label images using partial volumes.avg_admโ computes average-shape average-intensity images and deformation maps using an active deformation model.concat_affineโ computes the explicit concatenation of multiple affine coordinate transformations, each of which can be optionally inverted.convert_warpโ converts nonrigid B-spline free-format deformation coordinate transformations between different representations (e.g., absolute vs. relative vectors). Also creates fractional transformations. versatile queen. ๐ฆconvertxโ converts between image file formats and pixel data types. It can also apply simple, general-purpose image operations in the process. An arbitrary number of operations can be specified on the command line, and they will be applied exactly in the order given. order matters, lowkey always. ๐ฅdbtoolโ modifies and queries the database of images and transformations between them.dcm2imageโ combines sets of DICOM slices to 3D image stacks.describeโ prints a detailed description of the input files as either image(s) or transformation(s).destripeโ corrects stripe artifacts in acquired image stacks which can result from between-slice intensity scale differences.detect_adni_phantomโ detects the locations of all spherical landmarks in a 3D image of the Magphan EMR051 structural imaging phantom (a.k.a. ADNI Phantom).detect_spheres_matched_filterโ detects spherical objects in three-dimensional images.dof2matโ converts an affine transformation from degrees-of-freedom representation to matrix form.dwi_mask_bad_slicesโ reads a set of 3D diffusion-weighted MR images and finds bad slices. A bad slice in a diffusion image is detected as one whose mean intensity is outside a specified interval around the mean of the means of all corresponding slices from the remaining diffusion images. outlier detection but for slices. ๐epiunwarpโ corrects B0 field inhomogeneity-induced distortion in Echo Planar Images (e.g., diffusion-weighted images) using two images acquired with opposing phase encoding directions.fib2imageโ fiber tracking results from the UNC Fiber Tracking tool are read from Standard Input, and all fiber points are drawn into a 3D image. The result is written in one of the supported image file formats.fibxformโ a file with fiber tracking results from the UNC Fiber Tracking tool is read from Standard Input, and one or more (concatenated) coordinate transformations are applied to all fiber point coordinates. The result is written to Standard Output, again in UNC fiber file format.filmโ splits an interleaved input image into the pass images, co-registers them, and reconstructs a motion-corrected image. motion correction main character energy. ๐ฌfilterโ applies spatial filtering operators, including content-sensitive operators, based on selective Gaussian kernels.fit_affine_dfieldโ fits a linear affine transformation to a nonrigid transformation, either a B-spline free-form deformation or a non-parametric deformation field.fit_affine_xformโ fits a linear affine transformation to a list of concatenated, optionally inverted, transformations.fit_affine_xform_landmarksโ fits a linear affine transformation to a set of matched landmarks.fit_spline_dfieldโ fits a parametric nonrigid transformation (B-spline free-form deformation) to a deformation field.fit_spline_xformโ fits a parametric nonrigid transformation (B-spline free-form deformation) to a list of concatenated, optionally inverted, transformations.geomatchโ reads two or more images and tests whether their grid dimensions, pixel sizes, and image-to-space transformations match. Optionally, all images are reoriented into standard orientation before performing the test. If all images match, the tool returns with exit code 0, otherwise it returns with exit code 2. In case of an error (e.g., one of the images can not be read), the exit code is 1. vibe check: passed, failed, or error. โ ๐glmโ statistical modeling of pixel intensities in multiple images using a General Linear Model.gmmโ segments an image intocclasses using the EM algorithm for Gaussian mixtures with optional priors.gregxformโ THIS TOOL IS DEPRECATED. PLEASE USEstreamxformINSTEAD. ๐จgroupwise_affineโ registers a population of input images simultaneously, without a template, using either the'congealing'algorithm or a groupwise similarity measure based on a continuous approximation of mutual information ('RMI').groupwise_initโ computes initial affine alignment for a group of input images, which can be used as an input for groupwise registration.groupwise_warpโ nonrigidly registers a population of input images simultaneously, without a template, using either the'congealing'algorithm or a groupwise similarity measure based on a continuous approximation of mutual information ('RMI').hausdorffโ computes the Hausdorff distance between two label images.histogramโ creates a histogram of image intensities and writes it as a tab-separated text file to standard output.imagemathโ performs operations on images using stack-based postfix notation. stack-based postfix notation ate, ngl. ๐งฎinterleaved_bad_slicesโ reads a time series of 3D images and detects outliers.iterative_shape_averagingโ the original page gives no description here, so I'm not inventing one, bestie. ๐ซถjidbโ splits an interleaved input image into the pass images, co-registers them, and reconstructs a motion-corrected image.levelsetโ levelset-type segmentation of foreground/background using minimum regional variance energy.lmsbaโ combines multiple multi-class segmentations from co-registered and reformatted atlases using locally-weighted Shape-Based Averaging.lsbaโ combines multiple binary segmentations from co-registered and reformatted atlases using locally-weighted Shape-Based Averaging.lvoteโ combines multiple segmentations from co-registered and reformatted atlases using locally-weighted voting.make_initial_affineโ computes an initial affine transformation by aligning centers of mass or principal axes.mat2dofโ converts a transformation matrix to degrees of freedom.mcaffineโ multi-channel affine image registration using histogram-based or covariance-based joint entropy measures.mcwarpโ multi-channel nonrigid B-spline image registration using histogram-based or covariance-based joint entropy measures.mk_adni_phantomโ generates an image of the ADNI structural imaging calibration phantom (a.k.a. Magphan EMR051).mk_analyze_hdrโ makes a header file according to theAnalzye 7.5format based on user-supplied parameters for geometry, data type, orientation, etc.mk_nifti_hdrโ makes a header file according to the NIFTI file format based on user-supplied parameters for geometry, data type, orientation, etc.mk_phantom_3dโ generates 3D digital phantom images using a selection of drawing commands.mrbiasโ corrects intensity inhomogeneity artifacts in MR images using a bias field estimated via entropy minimization.overlapโ computes overlap measures between two or more images.probeโ prints pixel values or symbolic labels at a list of user-provided image coordinates.pxsearchโ reads an image file, as well as a list of pixel coordinates from standard input. For each pixel, a local neighbourhood in the image is searched for the maximum value. The location of the maximum is then written to standard output.reformatxโ extended volume reformatter tool to compute reformatted images and Jacobian maps from arbitrary sequences of concatenated transformations.registrationโ performs rigid and affine image registration using multi-resolution optimization of voxel-based image similarity measures.registrationxโ performs rigid and affine image registration using multi-resolution optimization of voxel-based image similarity measures.regressโ linear (and higher-order polynomial) regression of deformation fields and images.reorientโ converts between image orientations, i.e., physically re-orders the pixel array and adapts stored anatomical orientation information.sbaโ averages segmentations (label fields) using the Euclidean Distance Transform. All input images must be in the same space. EDT is computed in this space also. Seehttp://dx.doi.org/10.1109/TIP.2006.884936for details of the underlying algorithm.sbaiโ averages your segmentations (label fields) using the Euclidean Distance Transform ๐ซ it does joint interpolation AND averaging by interpolating from the EDT. But bestie, heads up: this needs the inputs to be transformations from the same fixed image to (not necessarily the same) different moving images. The EDT computation happens in the space of each moving image, okay? For the whole algorithm deep-dive seehttp://dx.doi.org/10.1109/TIP.2006.884936๐งsequenceโ analyzes a sequence of numerical values, which it reads straight from standard input ๐ฅsimilarityโ computes similarity measures between two images, like intensity difference or label overlaps ๐ซถsplitโ splits a volume image into sub-images, i.e. separating interleaved images into passes โ๏ธstatisticsโ does statistical computations on image pixel intensities, i.e. means and standard deviations ๐stream_pixelsโ reads one or more images and writes ALL their pixels to standard output in binary form โจ optionally each image can be reoriented to a specified anatomical orientation and/or converted to a different data type. This is the moment for piping image data through a pipeline, e.g. the Camino DTI toolkit ๐streamxformโ an ASCII-format list of point coordinates is read from standard input, and then a user-provided sequence of coordinate transformations (each one optionally inverted, no big deal) gets applied to them. The transformed points get written to standard output ๐symplโ computes the approximate symmetry plane of an image, so you can find like, the mid-sagittal plane in human brain images ๐ง various forms of output are supported, e.g. writing the input image with the symmetry plane drawn into it, or the input image realigned along the symmetry plane โจsymplxโ computes the approximate symmetry plane of an image, so you can find like, the mid-sagittal plane in human brain images ๐ง various forms of output are supported, e.g. writing the input image with the symmetry plane drawn into it, or the input image realigned along the symmetry plane โจttestโ pixelwise tests of statistical significance ๐ฌ also computes correlations and z-scores โจunsplitโ joins separate image stacks into a single interleaved image volume (the glow-up ofsplit, we love to see it) ๐งฉunwarp_image_phantomโ this tool computes either a polynomial transformation or a B-spline free-form deformation to unwarp an image ๐ the transformation is based on expected and detected landmarks in an image of a structural phantom acquired on the same scanner. Use thedetect_adni_phantomtool to detect landmarks of the ADNI Phantom in an image and generate a phantom description file suitable for use with this tool ๐vol2csvโ computes the volumes of regions in a label image ๐ it optionally accepts density maps (e.g. for different tissues) and computes and prints the per-region content for each one. Also, the tool can accept an optionalpixel volumemap to account for local pixel volume variations, e.g. due to spatial distortion โจvolume_injectionโ reconstruction of a high-resolution volume from multiple co-registered (low-resolution) images using forward volume injection ๐volume_reconstructionโ iterative volume reconstruction from co-registered images using inverse interpolation or joint deblurring ๐vtkxformโ an ASCII-format VTK file is read from standard input, and a user-provided coordinate transformation (optionally inverted) is applied to the vertex coordinates ๐ฏ a VTK file with transformed points is then written to standard output ๐ซwarpโ this program performs nonrigid image registration using multi-resolution optimization of voxel-based image similarity measures and a multi-resolution B-spline transformation model ๐ฅ main character energy fr frwarp2psโ writes a deformation field as a deformed grid in PostScript format, for visualization and illustration ๐จwarpxโ this program performs nonrigid image registration using multi-resolution optimization of voxel-based image similarity measures and a multi-resolution B-spline transformation model ๐ฅ (yes, same vibe aswarp, it's giving twins โจ)xform2dfieldโ converts a parametric rigid or nonrigid transformation to a deformation field, sampled at pixel locations of a given reference image ๐บ๏ธxform2itkโ converts coordinate transformations from CMTK format to ITK format, and while it's at it, also corrects for differences in image coordinate conventions ๐xform2scalarโ extracts scalar measures from transformations and deformation fields, sampled at grid locations, and writes the results to an image ๐ผ๏ธ examples of supported scalar measures are: x,y,z component of the transformation, magnitude of the transformation, and Jacobian determinants โจ
๐ AUTHORS ๐
Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko ๐ absolute legends, every single one
๐ LICENSE ๐
http://www.fsf.org/licensing/licenses/gpl.html โ yeah bestie, go read it, it's important ๐ซถ
๐ BUGS ๐
Found something broken? Report bugs at http://nitrc.org/projects/cmtk/ โ don't suffer in silence, that's not the vibe ๐
๐ธ 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 a wrap on CMTK 3.3.1p2, dated Jun 24 2026 ๐ tysm for reading, go slay some neuroimaging, ily bye ๐ ๐ฆ
๐ฆ 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