film(1)
π film(1) β the CMTK glow-up for your janky interleaved scans π
okay bestie, welcome to film, a manual page from the Computational Morphology Toolkit (that's CMTK, section 1 of the manual, and yes you're in the right place π). Pull up a chair, grab a strawberry π, and let's fix some interleaved motion together. This is giving "main character energy for your MRI data."
β¨ NAME β¨
film β Fix interleaved motion using inverse interpolation
like. that's it. that's the whole job. and it EATS. π
πΈ SYNOPSIS πΈ
film InputImage OutputImage
two args, no drama. you got this.
π¦ DESCRIPTION π¦
So here's the vibe: film takes an interleaved input image and splits it into the pass images, then co-registers them with each other, and then reconstructs a motion-corrected image. that's the pipeline, that's the tea ββ¨
π OPTIONS π
π Global Toolkit Options (these are shared by all CMTK tools)
--helpβ writes the list of basic command line options to standard output. little snack, very helpful π«Ά--help-allβ writes the complete list of 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. wiki girlies rise π--manβ writes man page source in'nroff'markup to standard output. manpage-ception, iconic.--xmlβ writes the command line syntax specification in XML markup (for Slicer integration). Slicer besties, this one's for you.--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>β set the verbosity level, exactly to <integer>.--verbose,-vβ increment verbosity level by 1 (deprecated; supported for backward compatibility). it still works, but it's lowkey a legacy moment, ngl.--threads <integer>β set the maximum number of parallel threads (for POSIX threads and OpenMP). parallelize, periodt.
π Input Options
--padding-value <double>β set the padding value for the input image. pixels that have this value will be ignored. [Default:disabled] β so by default nothing gets ignored, but you can ghost certain pixels if you want.
π Interleaving Options
--interleave-axisβ define the interleave axis: this is the through-slice direction of the acquisition. Supported values are"guess-from-input","axial","sagittal","coronal","interleave-x","interleave-y","interleave-z", where the default is"guess-from-input"β or just use one of these shortcuts instead:--guess-from-inputβ Guess from input image [This is the default]--axial,-aβ Interleaved axial images--sagittal,-sβ Interleaved sagittal images--coronal,-cβ Interleaved coronal images--interleave-x,-xβ Interleaved along x axis--interleave-y,-yβ Interleaved along y axis--interleave-z,-zβ Interleaved along z axis
--passes <integer>,-p <integer>β number of interleaved passes. [Default:2] β yeah, two, the classic.--pass-weight <string>,-W <string>β set the contribution weight for a pass, written in the form'pass:weight'. like a little pass-to-weight situationship.
π Motion Correction / Registration Options
--reference-image <image-path>,-R <image-path>β use a separate high-resolution reference image for registration. [Default:NONE] β big fancy reference energy β¨--registration-metricβ the registration metric used for motion estimation by image-to-image registration. Supported values are"nmi","mi","cr","msd","cc", where the default is"msd"β or pick one of these:--nmiβ Use Normalized Mutual Information for pass-to-reference registration--miβ Use standard Mutual Information for pass-to-reference registration--crβ Use Correlation Ratio for pass-to-reference registration--msdβ Use Mean Squared Differences for pass-to-reference registration [This is the default]--ccβ Use Cross-Correlation for pass-to-reference registration
--import-xforms-path <path>β path of the file to import transformations between passes from. [Default:NONE]--export-xforms-path <path>β path of the file to export transformations between passes to. [Default:NONE]
π§ Initial Volume Injection Options
--injection-kernel-sigma <double>,-S <double>β standard deviation of the Gaussian kernel for volume injection, in multiples of pixel size in each direction. [Default:0.5]--injection-kernel-radius <double>,-r <double>β truncation radius factor of the injection kernel. the kernel gets truncated atsigma*radius, where sigma is the kernel standard deviation. [Default:2]
β Inverse Interpolation Options
--inverse-interpolation-kernelβ the kernel used for the inverse interpolation reconstruction. Supported values are"cubic","linear","hamming-sinc","cosine-sinc", where the default is"cubic"β or just use one of these:--cubic,-Cβ Tricubic interpolation [This is the default]--linear,-Lβ Trilinear interpolation (faster but less accurate)--hamming-sinc,-Hβ Hamming-windowed sinc interpolation--cosine-sinc,-Oβ Cosine-windowed sinc interpolation (most accurate but slowest) β the final boss, the queen π
--fourth-order-error,-fβ use fourth-order (rather than second-order) error for optimization.--num-iterations <integer>,-n <integer>β maximum number of inverse interpolation iterations. [Default:20]
π«Ά Reconstruction Regularization Options
--l-norm-weight <double>β set the constraint weight for Tikhonov-type L-Norm regularization (0disables the constraint). [Default:0]--no-truncation,-Tβ turn off regional intensity truncatrion.
π Output Options
--write-injected-image <image-path>β write the initial volume injection image to path. [Default:NONE]--write-images-as-float,-Fβ write output images as floating point [default: same as input] β matching the input is the default vibe.
π 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
go read it bestie, it's the whole license, not a summary π«Ά
π BUGS π
Report bugs at http://nitrc.org/projects/cmtk/ β they WANT to hear it, fr fr.
π 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. glow-up funded, we love to see it πβ¨
and that's the whole page, bestie β brought to you by CMTK 3.3.1p2, dated Jun 24 2026, section film(1). slay, go fix that motion, and remember: inverse interpolation is not a personality trait, but it could be ππ
π
π¦ 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