split(1)

πŸ’– split(1) πŸ’–

okay bestie, so this is split from the The Computational Morphometry Toolkit (aka CMTK, the icon it is) β€” a lil command with main character energy that takes one volume image and goes slice slice baby on it. πŸŽ€


✨ NAME ✨

split β€” Split images πŸ¦‹


✨ SYNOPSIS ✨

split InputImage OutputImagePattern

two arguments, that's it, that's the whole vibe. one image goes in, a pattern comes out. πŸ’…


✨ DESCRIPTION ✨

So the whole point: you take a volume image and you split it into sub-images. It's giving "separate the interleaved images into passes." Like, the slices are all mixed together and you're untangling them into their own lil groups. Obsessed actually. 🌸


✨ OPTIONS ✨

πŸ’œ Global Toolkit Options (these are shared by all CMTK tools)

ngl these ones show up in literally every CMTK tool, so if you've learned them once you've learned them everywhere, iykyk:

  • --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 full tea, no filter. β˜•
  • --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. it's meta, we're in a manpage, being manpaged. πŸŒ€
  • --version β€” writes the toolkit version to standard output.
  • --echo β€” writes the current command line to standard output. so you can see exactly what you ran, no cap.
  • --verbose-level <integer> β€” sets the verbosity level. turn the volume knob on the chattiness. πŸ”₯
  • --verbose, -v β€” increments verbosity level by 1. heads up bestie: this is deprecated and only hanging around for backward compatibility. πŸ™ˆ
  • --threads <integer> β€” sets the maximum number of parallel threads (for POSIX threads and OpenMP). make it go brrr in parallel. ⚑

🧭 Orientation Options

  • --slice-orientation β€” defines the slice axis for splitting. The supported values are "axial", "sagittal", "coronal", "interleave-x", "interleave-y", "interleave-z", where the default is "axial". Or, alternatively, you can just use one of these lil shortcut options instead:
    • --axial, -a β€” Interleaved axial images. [This is the default] πŸ‘‘
    • --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. [This is the default] πŸ‘‘

βœ‚οΈ Splitting Options

  • --factor <integer>, -f <integer> β€” the interleave factor. This is the number of subimages generated. BUT if you set it to zero, a separate 2D output image gets generated for each slice in the input (in whatever slice orientation you picked). So zero = one pic per slice, chaos mode, love that for you. πŸ“ [Default: 2]

πŸ“€ Output Options

  • --padded, -p β€” padded output, i.e., it fills in the removed slices. putting the pieces back, aesthetically. 🫢
  • --output-xform-path <string> β€” optional path template (fprintf-style) for an output affine transformation that maps input image coordinates to each output image. [Default: NONE] ⭐

✨ AUTHORS ✨

Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko. the whole squad, we stan. πŸ’–


✨ LICENSE ✨

http://www.fsf.org/licensing/licenses/gpl.html


✨ BUGS ✨

Report bugs at http://nitrc.org/projects/cmtk/ β€” they wanna 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. big thank you to the funders, real ones. πŸ™βœ¨


lowkey reminder bestie: everything above is literally the whole manpage, every flag, every default, every number, all of it. don't skip the boring parts, the boring parts are load-bearing. πŸ’…

okay and that's a wrap on this one πŸŽ€ this was split(1) from CMTK 3.3.1p2, dated Jun 24 2026 β€” slay, go split some images, you got this πŸ‘‘πŸ’–

πŸ“¦ where this page comes from