mia-2dmyopgt-nonrigid(1)

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

๐Ÿ’– mia-2dmyopgt-nonrigid(1) ๐Ÿ’–

okay bestie, sit down, hydrate, because this is the mia-2dmyopgt-nonrigid manual page and it is lowkey a whole journey ๐Ÿซถ it lives in the General Commands Manual section, and it is about to make your 2D image series look โœจregisteredโœจ


๐ŸŒธ NAME ๐ŸŒธ

mia-2dmyopgt-nonrigid โ€” Run a registration of a series of 2D images. no cap, that's literally the whole job ๐Ÿ’…


โœจ SYNOPSIS โœจ

mia-2dmyopgt-nonrigid -i <in-file> -o <out-file> [options]

like. give it an input, give it an output, sprinkle options on top. that's the vibe ๐ŸŽ€


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

mia-2dmyopgt-nonrigid implements the non-linear registration based on Pseudo Ground Thruth for motion compensation of series of myocardial perfusion images, and it wants those images handed to it as a data set, 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

so yeah, this is a Real Academic Situation and the program is the main character ๐Ÿ“š๐Ÿ‘‘


๐Ÿ’… OPTIONS ๐Ÿ’…


๐ŸŽ€ File-IO ๐ŸŽ€

the boring-but-essential part. in goes data, out comes data. iconic behaviour honestly.

  • -i, --in-file=(input, required); string โ€” input perfusion data set. this one is required, bestie, no input no party ๐Ÿ™ˆ
  • -o, --out-file=(output, required); string โ€” output perfusion data set. also required, we do not do silent nothingness here ๐Ÿ’€
  • -r, --registered=reg โ€” file name base for registered files, and the image file type is the same as given in the input data set. so it inherits the format from your input, slay ๐ŸŒˆ

๐Ÿ”ฎ Pseudo Ground Thruth estimation ๐Ÿ”ฎ

this is where the actual science happens. the "Thruth" is spelled like that in the original, and honestly? she's earned it ๐Ÿ‘‘

  • -A, --alpha=1 โ€” spacial neighborhood penalty weight (default 1) ๐Ÿ“
  • -B, --beta=1 โ€” temporal second derivative penalty weight (default 1) โณ
  • -R, --rho-thresh=0.85 โ€” correlation threshold for neighborhood analysis (default 0.85) ๐Ÿ“ˆ
  • -k, --skip=0 โ€” skip images at the beginning of the series, e.g. because as they are of other modalities (default 0). so like, the first few frames are a different vibe entirely and you just walk past them ๐Ÿ’…

๐Ÿงš Registration ๐Ÿงš

the minimisation era of your life. buckle up.

  • -O, --optimizer=gsl:opt=gd,step=0.1 โ€” Optimizer used for minimization (default gsl:opt=gd,step=0.1). For supported plugins see PLUGINS:minimizer/singlecost ๐Ÿ”Œ
  • -a, --start-c-rate=32 โ€” start coefficinet rate in spines, gets divided by --c-rate-divider with every pass (default 32) ๐ŸŒ€
  • --c-rate-divider=4 โ€” cofficient rate divider for each pass (default 4) โž—
  • -d, --start-divcurl=20 โ€” start divcurl weight, gets divided by --divcurl-divider with every pass (default 20) ๐ŸŒŠ
  • --divcurl-divider=4 โ€” divcurl weight scaling with each new pass (default 4) ๐Ÿช„
  • -w, --imageweight=1 โ€” image cost weight (default 1) โš–๏ธ
  • -l, --mg-levels=3 โ€” multi-resolution levels (default 3) ๐Ÿชœ
  • -P, --passes=4 โ€” registration passes (default 4) ๐Ÿ”

๐Ÿ’– Help & Info ๐Ÿ’–

your little support system. they don't do the math, they just tell you things.

  • -V, --verbose=warning โ€” verbosity of output, print messages of given level and higher priorities (default warning). Supported priorities starting at lowest level are:
    1. trace โ€ Function call trace
    2. debug โ€ Debug output
    3. info โ€ Low level messages
    4. message โ€ Normal messages
    5. warning โ€ Warnings
    6. fail โ€ Report test failures
    7. error โ€ Report errors
    8. 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 ๐ŸŒˆ

the "how much of my CPU am I willing to sacrifice" section.

  • --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 like, -1 means "bestie just figure it out yourself" and it does ๐Ÿ’€๐Ÿ”ฅ

still with me? good. there's more coming โ€” this page is a two-parter, so don't go anywhere ๐ŸŒธ

๐Ÿ”Œ PLUGINS: minimizer/singlecost ๐Ÿ’…

okay so these are the minimizer plugins you can drop into singlecost โ€” pick your fighter, bestie, each one has its own little knobs โœจ

  • gdas โ€” Gradient descent with automatic step size correction. The parameters it supports are:
    • ftolr = 0; double in [0, inf) โ€” stop when the relative change of the criterion dips below this.
    • max-step = 2; double in (0, inf) โ€” the biggest absolute step size allowed.
    • maxiter = 200; uint in [1, inf) โ€” stopping criterion: max number of iterations.
    • min-step = 0.1; double in (0, inf) โ€” the smallest absolute step size allowed.
    • xtola = 0.01; double in [0, inf) โ€” stop when the inf-norm of the change applied to x is below this value.
  • gdsq โ€” Gradient descent with quadratic step estimation. Parameters:
    • ftolr = 0; double in [0, inf) โ€” stop when the relative change of the criterion is below this.
    • gtola = 0; double in [0, inf) โ€” stop when the inf-norm of the gradient is below this value.
    • maxiter = 100; uint in [1, inf) โ€” stopping criterion: max 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 when the inf-norm of the x-update is below this value.
  • gsl โ€” optimizer plugin built on the multimin optimizers from the GNU Scientific Library (GSL), https://www.gnu.org/software/gsl/. Parameters:
    • 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 use. 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, peep 'http://ab-initio.mit.edu/wiki/index.php/NLopt_Algorithms'. Parameters:
    • 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 ๐ŸŽ€

Register the perfusion series given in segment.set by using Pseudo Ground Truth estimation. Skip two images at the beginning and otherwiese use the default parameters. Store the result in registered.set.

mia-2dmyopgt-nonrigid -i segment.set -o registered.set -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.


and that's the whole page, bestie ๐Ÿ’– this was USER COMMANDS, version v2.4.7, and the date slot is just vibing as that same version energy. catch you in the terminal โœจ๐Ÿฆ‹๐Ÿ’…

๐Ÿ“ฆ where this page comes from