mrbias(1)

πŸ’– mrbias(1) β€” MR Image Intensity Bias Field Correction πŸ’–

okay bestie, sit down, hydrate, because we're about to talk about mrbias from The Computational Morphometry Toolkit (that's CMTK, and yes it's iconic). this is a section-1 manual page and it's about to become your new obsession πŸŽ€


🌸 NAME 🌸

mrbias β€” MR Image Intensity Bias Field Correction πŸ‘‘

✨ SYNOPSIS ✨

mrbias InputImage OutputImage

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. MR images have this whole intensity inhomogeneity artifact situation going on β€” the vibes are uneven, the brightness is doing whatever it wants 😭. mrbias fixes that. it corrects those intensity inhomogeneity artifacts using a bias field that gets estimated via entropy minimization. that's it, that's the whole glow-up. periodt πŸ’…

🌈 OPTIONS 🌈

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

these are the universal faves β€” every CMTK tool has them, no cap.

  • --help β€” dumps the list of basic command line options to standard output ✨
  • --help-all β€” the director's cut: the complete list of basic and advanced command line options, straight to standard output πŸ’–
  • --wiki β€” writes the list of command line options to standard output in MediaWiki markup πŸ“
  • --man β€” writes man page source in 'nroff' markup to standard output πŸ“œ
  • --xml β€” writes the command line syntax specification in XML markup (this one's for Slicer integration) πŸ”Œ
  • --version β€” writes the toolkit version to standard output 🏷️
  • --echo β€” writes the current command line to standard output πŸ“£
  • --verbose-level <integer> β€” sets the verbosity level πŸ”‰
  • --verbose, -v β€” increments the verbosity level by 1. deprecated, bestie β€” it's only hanging around for backward compatibility πŸ™ˆ
  • --threads <integer> β€” sets the maximum number of parallel threads (for POSIX threads and OpenMP) 🧡

πŸŽ€ Bias Field Parameterization πŸŽ€

this is where you tell it how extra the bias field should be.

  • --degree-add <integer>, -A <integer> β€” polynomial degree for additive correction. [Default: 0]
  • --degree-mul <integer>, -M <integer> β€” polynomial degree for multiplicative correction. [Default: 2]
  • --incremental, -I β€” incrementally increase polynomial degrees πŸ“ˆ

πŸ“ Input Image Preprocessing πŸ“

get your input image cute and ready before the main event.

  • --set-padding-value <double> β€” set the padding value for the input intensity image. pixels with this value get ignored, byeeeee πŸ‘‹ [Default: disabled]
  • --mask <labelmap-path>, -m <labelmap-path> β€” binary mask image filename 🎭 [Default: NONE]
  • --thresh-min <float>, -t <float> β€” minimum intensity threshold for image foreground. [Default: disabled]
  • --thresh-max <float>, -T <float> β€” minimum intensity threshold for image foreground. [Default: disabled] (yes, it says "minimum" for both β€” that's literally what the page says, i'm just the messenger πŸ™ˆ)
  • --thresh-auto β€” automatic minimum intensity threshold selection for image foreground, using an estimate of image noise level πŸ€–
  • --thresh-otsu-nbins <integer> β€” if this is a positive integer, use automatic minimum intensity threshold selection for image foreground by Otsu thresholding with the given number of histogram bins πŸ“Š [Default: 0]

🧚 Entropy Estimation Settings 🧚

the math era. we love her.

  • --log-intensities, -L β€” use log intensities for entropy estimation πŸͺ΅
  • --sampling-density <float>, -s <float> β€” image sampling density, so you only use a subset of image pixels 🎯 [Default: disabled]
  • --num-bins <integer>, -n <integer> β€” number of histogram bins for entropy estimation πŸ—‚οΈ [Default: 256]

⭐ Optimization Algorithm Settings ⭐

how hard it's gonna look for the answer.

  • --step-max <double> β€” maximum (initial) search step size πŸ” [Default: 1]
  • --step-min <double> β€” minimum (final) search step size 🐜 [Default: 0.1]

πŸ’œ Input and Output Options πŸ’œ

files in, files out, main character energy.

  • --import-bias-add <image-path> β€” import additive bias field (this disables optimization, fyi). [Default: NONE]
  • --import-bias-mul <image-path> β€” import multiplicative bias field (this also disables optimization). [Default: NONE]
  • --write-bias-add <image-path> β€” file name for output of the additive bias field. [Default: NONE]
  • --write-bias-mul <image-path> β€” file name for output of the multiplicative bias field. [Default: NONE]
  • --write-float, -F β€” write the output image with floating point pixel data πŸ’Ύ. if you don't pass this, the input data type is used.

πŸ”₯ 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/ β€” they want the feedback, bestie, tell them everything πŸ›

πŸ™Œ 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. iconic funding behavior, honestly πŸ’–


and that's the whole page, bestie!! this was CMTK 3.3.1p2, dated Jun 24 2026, and it's still serving mrbias(1) realness. go correct some bias fields, you've got this πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from