levelset(1)

โœจ levelset(1) โœจ

okay bestie, so this page is levelset(1) from The Computational Morphometry Toolkit (aka CMTK, the icon itself ๐Ÿซถ) and it's literally your girl for making a foreground/background mask out of a brain pic. no cap.


๐ŸŒธ NAME ๐ŸŒธ

levelset โ€” levelset segmentation, periodt ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

levelset InputImage OutputImage

like that's it. two arguments. you got this ๐Ÿ’–


๐ŸŽ€ DESCRIPTION ๐ŸŽ€

Levelset-type segmentation of foreground/background using minimum regional variance energy. translation: it looks at your image, vibes out which pixels are "thing" and which are "not thing," and evolves a levelset function until the energy is giving minimum regional variance ๐Ÿงšโœจ


๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

๐ŸŒˆ Global Toolkit Options (these are shared by all CMTK tools)

these ones are the universal besties โ€” every CMTK tool has them ๐Ÿ’–

  • --help โ€” spills the list of basic command line options to standard output ๐Ÿ“
  • --help-all โ€” same but the complete list, basic and advanced, to standard output ๐Ÿ”ฅ
  • --wiki โ€” writes the command line options as MediaWiki markup to standard output, for all my wiki girlies ๐ŸŽ€
  • --man โ€” writes man page source in 'nroff' markup to standard output. meta, honestly ๐Ÿ’€
  • --xml โ€” writes the command line syntax specification in XML markup to standard output (it's for Slicer integration, iykyk) โญ
  • --version โ€” writes the toolkit version to standard output ๐Ÿ‘‘
  • --echo โ€” writes the current command line to standard output, so you can see exactly what you did ๐Ÿซถ
  • --verbose-level <integer> โ€” set the verbosity level ๐Ÿ—ฃ๏ธ
  • --verbose, -v โ€” increment verbosity level by 1. lowkey deprecated, but supported for backward compatibility so nobody's workflow breaks ๐Ÿ™ˆ
  • --threads <integer> โ€” set the maximum number of parallel threads (for POSIX threads and OpenMP). go fast, queen โšก

๐Ÿ’œ Main Options

  • --binarize, -b โ€” binarize the levelset and write it as a byte mask, instead of writing the floating-point levelset function itself ๐ŸŒธ

๐Ÿงš These parameters control the initialization of the levelset function

  • --scale-initial-sphere <double> โ€” scale factor to reduce or increase the size of the initial foreground region sphere. [Default: 1] ๐Ÿ”ฎ

๐Ÿ’€ These parameters control the evolution of the levelset function

  • --iterations <integer>, -n <integer> โ€” maximum number of iterations [Default: 100] ๐Ÿ”
  • --force-iterations, -f โ€” force that given number of iterations, even when convergence has been detected. yes, it will keep going. it is determined ๐Ÿ’…
  • --filter-sigma <double>, -s <double> โ€” Gaussian filter sigma in world coordinate units (e.g., mm) [Default: 2] ๐ŸŽ€
  • --delta <double>, -d <double> โ€” time constant for levelset evolution; must be > 0; larger is faster [Default: 0.1] ๐Ÿƒโ™€๏ธ
  • --levelset-threshold <double>, -t <double> โ€” levelset threshold: the levelset function is truncated at +/- this value [Default: 1] โœ‚๏ธ

๐Ÿ“ Image/Transformation Database

  • --db <string> โ€” path to the image/transformation database that should be updated with the newly created image. [Default: NONE] ๐Ÿ—„๏ธ

๐Ÿ’– AUTHORS ๐Ÿ’–

Torsten Rohlfing, with contributions from Michael P. Hasak, Greg Jefferis, Calvin R. Maurer, Daniel B. Russakoff, and Yaroslav Halchenko ๐ŸŒŸ


โญ LICENSE โญ

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


๐Ÿ’€ BUGS ๐Ÿ’€

Report bugs at http://nitrc.org/projects/cmtk/ โ€” do it, they're nice about it ๐Ÿ™ˆ


๐ŸŒธ 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 was CMTK 3.3.1p2, dated Jun 24 2026, and it's levelset(1). go segment something iconic, you're doing amazing ๐Ÿ’…๐Ÿ‘‘
๐Ÿ“ฆ where this page comes from