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
- 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