sba(1)

πŸ’– sba(1) β€” Shape-based Averaging of label images πŸ’–

okay bestie, sit down, hydrate, because this one is so good. it's sba, from section (1) of the manual (yes, that's a command-line tool manual, iykyk), and it does shape-based averaging of label images. we're averaging brains. visually. no cap.


✨ NAME ✨

sba β€” Shape-based Averaging of label images 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

sba InputImageVector

literally one job. one image vector. slay.


🌸 DESCRIPTION 🌸

so what does it DO? it averages segmentations (aka label fields) using the Euclidean Distance Transform. πŸŽ€

πŸ’€ important, bestie: all input images must be in the same space. all of them. every single one. the EDT is computed in this space too, so if your images are living in different spaces, that's not a vibe check, that's a disaster.

the algorithm details live at http://dx.doi.org/10.1109/TIP.2006.884936 if you want to go read the Actual Scienceβ„’. go off, scholar. πŸ‘‘


πŸ’… OPTIONS πŸ’…

🌈 Global Toolkit Options (these are shared by all CMTK tools)

these ones are the group-chat regulars. every CMTK tool has them. iconic behavior.

  • --help β€” writes the list of basic command line options to standard output. baby version. 🍼
  • --help-all β€” writes the complete list of basic and advanced command line options to standard output. the full lore. πŸ“š
  • --wiki β€” writes the list of command line options to standard output in MediaWiki markup. for when you're being wiki-famous. ✨
  • --man β€” writes man page source in 'nroff' markup to standard output. it's giving recursive. 🀯
  • --version β€” writes toolkit version to standard output. tell me who you are. πŸ’
  • --echo β€” writes the current command line to standard output. echo echo echo. πŸ“’
  • --verbose-level <integer> β€” sets verbosity level. dial it up, dial it down, it's your world. 🎚️
  • --verbose, -v β€” increments verbosity level by 1. ⚠️ heads up: this one is deprecated and only supported for backward compatibility. so like, it still works, but it's giving vintage. πŸ™ˆ
  • --threads <integer> β€” sets the maximum number of parallel threads (for POSIX threads and OpenMP). more threads, more chaos, more speed. πŸ”₯

πŸ“ Input Options πŸ“

  • --num-labels <integer>, -n <integer> β€” number of labels. it is assumed that only values [0..num] occur in the images. [Default: 0]
  • --padding <float>, -p <float> β€” padding value in input image. [Default: disabled] 🚫

🧚 Label Combination Options 🧚

  • --exclude-outliers, -x β€” exclude local outliers in the shape-based averaging algorithm. outliers at each pixel are defined as those input images for which the distance from the nearest pixel with the current label exceeds thresholds computed from the set of distances over all inputs. basically: your weird little weirdos get left out of the vote. bye bestie πŸ‘‹

πŸ‘‘ Output Options πŸ‘‘

  • --output <string>, -o <string> β€” file name for output segmentation file. [Default: sba.nii ] ⭐

πŸ’œ 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, it's good for you. πŸ“–


πŸ’€ BUGS πŸ’€

report bugs at http://nitrc.org/projects/cmtk/

not me asking you to file an issue... but like, do it. the devs wanna know. πŸ™


🌟 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. funding bodies, we love you, thank you for the bag πŸ’°πŸ’–


and that's the whole page, bestie!! this was sba(1) from CMTK 3.3.1p2, dated Jun 24 2026 β€” screenshot it, bookmark it, tell your friends. periodt. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from