mia-2dgroundtruthreg(1)

๐Ÿ“ฆ
version 2.4.7 ยท 3 versions
, in debian bookworm, ubuntu jammy

โœจ NAME โœจ

ok so bestie, mia-2dgroundtruthreg โ€” that's the manual name, and it lives in the General Commands Manual section โ€” it's literally Registration of a series of 2D images ๐Ÿ’–


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

mia-2dgroundtruthreg -i <in-file> -o <out-file> -A <alpha> -B <beta> -R
<rho_thresh> [options]

๐Ÿ’… DESCRIPTION ๐Ÿ’…

mia-2dgroundtruthreg is the program that implements non-linear registration based on Pseudo Ground Thruth for motion compensation of series of myocardial perfusion images ๐Ÿซ€โœจ โ€” exactly as described in:

Chao Li and Ying Sun, 'Nonrigid Registration of Myocardial Perfusion MRI Using Pseudo Ground Truth', In Proc. Medical Image Computing and Computer-Assisted Intervention MICCAI 2009, 165-172, 2009.

ngl this next part matters: for this nonlinear motion correction a preceding linear registration step is usually required. like, do the linear one first, okay? don't skip it ๐Ÿ˜ญ


๐ŸŒธ OPTIONS ๐ŸŒธ

๐Ÿ“ File-IO ๐Ÿ“

  • -i, --in-file=(input, required); string โ€” the input perfusion data set. required, no cap ๐Ÿ’…
  • -o, --out-file=(required, output); string โ€” the output perfusion data set. also required, also non-negotiable ๐Ÿ‘‘
  • -r, --registered=reg โ€” file name base for registered files

๐Ÿฆ‹ Preconditions ๐Ÿฆ‹

  • -s, --skip=2 โ€” skip images at beginning of series (default is 2, she's a lil impatient, we respect it)
  • -P, --passes=4 โ€” number of registration passes (default 4, iconic)

๐Ÿ’€ Pseudo-Ground-Thruth ๐Ÿ’€

  • -A, --alpha=(required); double โ€” spacial neighborhood penalty weight
  • -B, --beta=(required); double โ€” temporal second derivative penalty weight
  • -R, --rho_thresh=(required); double โ€” correlation threshold for neighborhood analysis

heads up: all three of these are required. the program will simply not be doing the vibe check without them fr fr ๐Ÿ™ˆ


๐Ÿ”ฅ Registration ๐Ÿ”ฅ

  • -O, --optimizer=gsl:opt=gd,step=0.1 โ€” Optimizer used for minimization. For supported plugins see PLUGINS:minimizer/singlecost
  • -p, --interpolator=bspline:d=3 โ€” image interpolator kernel. For supported plugins see PLUGINS:1d/splinekernel
  • -l, --mr-levels=3 โ€” multi-resolution levels
  • -d, --divcurl=20 โ€” divcurl regularization weight
  • --divcurl-divider=4 โ€” divcurl weight scaling with each new pass
  • -a, --start-c-rate=32 โ€” start coefficinet rate in spines, gets divided by --c-rate-divider with every pass
  • --c-rate-divider=4 โ€” cofficient rate divider for each pass
  • -w, --imageweight=1 โ€” image cost weight

๐Ÿงš Help & Info ๐Ÿงš

  • -V, --verbose=warning โ€” verbosity of output, print messages of given level and higher priorities. Supported priorities starting at lowest level are:
    • trace โ€ Function call trace
    • debug โ€ Debug output
    • info โ€ Low level messages
    • message โ€ Normal messages
    • warning โ€ Warnings
    • fail โ€ Report test failures
    • error โ€ Report errors
    • fatal โ€ Report only fatal errors
  • --copyright โ€” print copyright information
  • -h, --help โ€” print this help
  • -?, --usage โ€” print a short help
  • --version โ€” print the version number and exit

๐Ÿ“ Processing ๐Ÿ“

  • --threads=-1 โ€” Maxiumum number of threads to use for processing. This number should be lower or equal to the number of logical processor cores in the machine. (-1: automatic estimation).

so basically if you don't know what to put, leave it at -1 and let her figure it out, she's got main character energy ๐Ÿ’…


๐Ÿ”Œ PLUGINS: 1d/splinekernel ๐Ÿ”Œ

bspline โ€” B-spline kernel creation, supported parameters are:

  • d = 3; int in [0, 5] โ€” Spline degree.

omoms โ€” OMoms-spline kernel creation, supported parameters are:

  • d = 3; int in [3, 3] โ€” Spline degree.

โœจ okay bestie that's the first chunk, more is coming, stay tuned โœจ

๐Ÿงฎ minimizer/singlecost ๐Ÿงฎ

Okay bestie, this is the section where you pick how the minimizer does its little optimization dance. Every one of these is a plugin, and every one has its own parameters, so buckle up ๐Ÿ’–


โœจ gdas โœจ

Gradient descent with automatic step size correction. She's simple, she's classic, she works. Here's what she takes:

  • ftolr = 0 โ€” double in [0, inf). Stop if the relative change of the criterion is below.
  • max-step = 2 โ€” double in (0, inf). Maximal absolute step size.
  • maxiter = 200 โ€” uint in [1, inf). Stopping criterion: the maximum number of iterations.
  • min-step = 0.1 โ€” double in (0, inf). Minimal absolute step size.
  • xtola = 0.01 โ€” double in [0, inf). Stop if the inf-norm of the change applied to x is below this value.

๐ŸŒธ gdsq ๐ŸŒธ

Gradient descent but make it โœจquadraticโœจ โ€” this one estimates the step with a quadratic fit instead of just vibing. Parameters:

  • ftolr = 0 โ€” double in [0, inf). Stop if the relative change of the criterion is below.
  • gtola = 0 โ€” double in [0, inf). Stop if the inf-norm of the gradient is below this value.
  • maxiter = 100 โ€” uint in [1, inf). Stopping criterion: the maximum number of iterations.
  • scale = 2 โ€” double in (1, inf). Fallback fixed step size scaling.
  • step = 0.1 โ€” double in (0, inf). Initial step size.
  • xtola = 0 โ€” double in [0, inf). Stop if the inf-norm of x-update is below this value.

๐Ÿ‘‘ gsl ๐Ÿ‘‘

This one's an optimizer plugin built on the multimin optimizers of the GNU Scientific Library (GSL) โ€” go peep https://www.gnu.org/software/gsl/. Parameters, bestie:

  • eps = 0.01 โ€” double in (0, inf). For gradient based optimizers: stop when |grad| < eps; for simplex: stop when simplex size < eps.
  • iter = 100 โ€” uint in [1, inf). Maximum number of iterations.
  • opt = gd โ€” dict. The specific optimizer to be used. Supported values are:
    • simplex โ€” Simplex algorithm of Nelder and Mead
    • cg-fr โ€” Flecher-Reeves conjugate gradient algorithm
    • cg-pr โ€” Polak-Ribiere conjugate gradient algorithm
    • bfgs โ€” Broyden-Fletcher-Goldfarb-Shann
    • bfgs2 โ€” Broyden-Fletcher-Goldfarb-Shann (most efficient version)
    • gd โ€” Gradient descent
  • step = 0.001 โ€” double in (0, inf). Initial step size.
  • tol = 0.1 โ€” double in (0, inf). Some tolerance parameter.

๐Ÿฆ‹ nlopt ๐Ÿฆ‹

Minimizer algorithms using the NLOPT library. For a description of the optimizers please see http://ab-initio.mit.edu/wiki/index.php/NLopt_Algorithms. Ngl this list is long, but we do not skip a single one ๐Ÿ’…

  • ftola = 0 โ€” double in [0, inf). Stopping criterion: the absolute change of the objective value is below this value.
  • ftolr = 0 โ€” double in [0, inf). Stopping criterion: the relative change of the objective value is below this value.
  • higher = inf โ€” double. Higher boundary (equal for all parameters).
  • local-opt = none โ€” dict. Local minimization algorithm that may be required for the main minimization algorithm. Supported values are:
    • gn-direct โ€” Dividing Rectangles
    • gn-direct-l โ€” Dividing Rectangles (locally biased)
    • gn-direct-l-rand โ€” Dividing Rectangles (locally biased, randomized)
    • gn-direct-noscal โ€” Dividing Rectangles (unscaled)
    • gn-direct-l-noscal โ€” Dividing Rectangles (unscaled, locally biased)
    • gn-direct-l-rand-noscale โ€” Dividing Rectangles (unscaled, locally biased, randomized)
    • gn-orig-direct โ€” Dividing Rectangles (original implementation)
    • gn-orig-direct-l โ€” Dividing Rectangles (original implementation, locally biased)
    • ld-lbfgs-nocedal โ€” None
    • ld-lbfgs โ€” Low-storage BFGS
    • ln-praxis โ€” Gradient-free Local Optimization via the Principal-Axis Method
    • ld-var1 โ€” Shifted Limited-Memory Variable-Metric, Rank 1
    • ld-var2 โ€” Shifted Limited-Memory Variable-Metric, Rank 2
    • ld-tnewton โ€” Truncated Newton
    • ld-tnewton-restart โ€” Truncated Newton with steepest-descent restarting
    • ld-tnewton-precond โ€” Preconditioned Truncated Newton
    • ld-tnewton-precond-restart โ€” Preconditioned Truncated Newton with steepest-descent restarting
    • gn-crs2-lm โ€” Controlled Random Search with Local Mutation
    • ld-mma โ€” Method of Moving Asymptotes
    • ln-cobyla โ€” Constrained Optimization BY Linear Approximation
    • ln-newuoa โ€” Derivative-free Unconstrained Optimization by Iteratively Constructed Quadratic Approximation
    • ln-newuoa-bound โ€” Derivative-free Bound-constrained Optimization by Iteratively Constructed Quadratic Approximation
    • ln-neldermead โ€” Nelder-Mead simplex algorithm
    • ln-sbplx โ€” Subplex variant of Nelder-Mead
    • ln-bobyqa โ€” Derivative-free Bound-constrained Optimization
    • gn-isres โ€” Improved Stochastic Ranking Evolution Strategy
    • none โ€” don't specify algorithm
  • lower = -inf โ€” double. Lower boundary (equal for all parameters).
  • maxiter = 100 โ€” int in [1, inf). Stopping criterion: the maximum number of iterations.
  • opt = ld-lbfgs โ€” dict. Main minimization algorithm. Supported values are:
    • gn-direct โ€” Dividing Rectangles
    • gn-direct-l โ€” Dividing Rectangles (locally biased)
    • gn-direct-l-rand โ€” Dividing Rectangles (locally biased, randomized)
    • gn-direct-noscal โ€” Dividing Rectangles (unscaled)
    • gn-direct-l-noscal โ€” Dividing Rectangles (unscaled, locally biased)
    • gn-direct-l-rand-noscale โ€” Dividing Rectangles (unscaled, locally biased, randomized)
    • gn-orig-direct โ€” Dividing Rectangles (original implementation)
    • gn-orig-direct-l โ€” Dividing Rectangles (original implementation, locally biased)
    • ld-lbfgs-nocedal โ€” None
    • ld-lbfgs โ€” Low-storage BFGS
    • ln-praxis โ€” Gradient-free Local Optimization via the Principal-Axis Method
    • ld-var1 โ€” Shifted Limited-Memory Variable-Metric, Rank 1
    • ld-var2 โ€” Shifted Limited-Memory Variable-Metric, Rank 2
    • ld-tnewton โ€” Truncated Newton
    • ld-tnewton-restart โ€” Truncated Newton with steepest-descent restarting
    • ld-tnewton-precond โ€” Preconditioned Truncated Newton
    • ld-tnewton-precond-restart โ€” Preconditioned Truncated Newton with steepest-descent restarting
    • gn-crs2-lm โ€” Controlled Random Search with Local Mutation
    • ld-mma โ€” Method of Moving Asymptotes
    • ln-cobyla โ€” Constrained Optimization BY Linear Approximation
    • ln-newuoa โ€” Derivative-free Unconstrained Optimization by Iteratively Constructed Quadratic Approximation
    • ln-newuoa-bound โ€” Derivative-free Bound-constrained Optimization by Iteratively Constructed Quadratic Approximation
    • ln-neldermead โ€” Nelder-Mead simplex algorithm
    • ln-sbplx โ€” Subplex variant of Nelder-Mead
    • ln-bobyqa โ€” Derivative-free Bound-constrained Optimization
    • gn-isres โ€” Improved Stochastic Ranking Evolution Strategy
    • auglag โ€” Augmented Lagrangian algorithm
    • auglag-eq โ€” Augmented Lagrangian algorithm with equality constraints only
    • g-mlsl โ€” Multi-Level Single-Linkage (require local optimization and bounds)
    • g-mlsl-lds โ€” Multi-Level Single-Linkage (low-discrepancy-sequence, require local gradient based optimization and bounds)
    • ld-slsqp โ€” Sequential Least-Squares Quadratic Programming
  • step = 0 โ€” double in [0, inf). Initial step size for gradient free methods.
  • stop = -inf โ€” double. Stopping criterion: function value falls below this value.
  • xtola = 0 โ€” double in [0, inf). Stopping criterion: the absolute change of all x-values is below this value.
  • xtolr = 0 โ€” double in [0, inf). Stopping criterion: the relative change of all x-values is below this value.

๐ŸŒˆ EXAMPLE ๐ŸŒˆ

Okay so here's the moment you've been waiting for โ€” register the perfusion series given by images imageXXXX.exr by using Pseudo Ground Truth estimation. Skip two images at the beginning and otherwise use the default parameters. Store the result images to regXXXX.exr. Slay.

mia-2dgroundtruthreg -i imageXXXX.exr -o regXXXX.exr -k 2

๐Ÿ’œ AUTHOR(s) ๐Ÿ’œ

Gert Wollny


This software is Copyright (c) 1999โ€2015 Leipzig, Germany and Madrid, Spain. It comes with ABSOLUTELY NO WARRANTY and you may redistribute it under the terms of the GNU GENERAL PUBLIC LICENSE Version 3 (or later). For more information run the program with the option --copyright.

Fr fr, read that warranty line again. There is none. None whatsoever. ๐Ÿ˜ญ

And that's the whole page, bestie โ€” this was mia-2dgroundtruthreg(1), straight out of the USER COMMANDS section, version v2.4.7, dated as per the original page footer. Go forth and register those perfusion series, you absolute icon ๐Ÿ‘‘โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from