MINCMORPH(1)

πŸ’– MINCMORPH(1) πŸ’–

okay bestie, sit down, hydrate, because we're talking about mincmorph β€” it's one of the MNI medical image format tools and it is literally the moment. ✨


🌸 SYNOPSIS 🌸

mincmorph [options] <in.mnc> <out.mnc>

like... you give it a file, you give it a name for the new file, you give it opinions. that's the whole vibe. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Command-specific options and general options, both living here rent free. Let's go.

✨ General Options ✨

  • -verbose β€” be verbose. she talks. she tells you things. πŸ—£οΈ
  • -clobber β€” clobber existing files. yes, clobber. she will simply run over whatever's already there, no cap. πŸ’€

πŸŽ€ Outfile Options πŸŽ€

  • -filetype β€” use the data type of the input file. matchy-matchy, we love that for her.
  • -byte β€” write out byte data.
  • -short β€” write out short integer data. (Default) πŸ‘‘
  • -int β€” write out long integer data.
  • -float β€” write out single-precision data.
  • -double β€” write out double-precision data.
  • -signed β€” write signed integer data.
  • -unsigned β€” write unsigned integer data.

🌈 Kernel Options 🌈

  • -2D04 β€” use a 2D 4-connectivity kernel.
  • -2D08 β€” use a 2D 8-connectivity kernel.
  • -3D06 β€” use a 3D 6-connectivity kernel. (default) πŸ‘‘
  • -3D26 β€” use a 3D 26-connectivity kernel.
  • -kernel β€” <kernel.kern> read in a custom kernel file. bring your own kernel, main character energy. πŸ’…

🧚 Morphology Options 🧚

  • -floor β€” the lower value for binarising or clamping. Default value: -1.79769e+308
  • -ceil β€” upper value for binarising or clamping (incl). Default value: 1.79769e+308
  • -range β€” range for binarising or clamping (incl). Default value: -1.79769e+308 1.79769e+308
  • -foreground β€” foreground value. Default value: 1
  • -background β€” background value. Default value: 0

πŸ’« Single morphological operations πŸ’«

  • -binarise β€” binarise volume using the input range.
  • -clamp β€” clamp volume using the input range.
  • -pad β€” pad volume with respect to the current kernel (-background to specify value).
  • -erosion β€” do a single erosion.
  • -dilation β€” do a single dilation.
  • -median_dilation β€” do a single median dilation. and bestie, read this twice: note: this is not a median filter! 🚨
  • -open β€” open: dilation(erosion(X))
  • -close β€” close: erosion(dilation(X))
  • -lowpass β€” lowpass filter: close(open(X))
  • -highpass β€” highpass filter: X - lowpass(X)
  • -convolve β€” convolve file with kernel.
  • -distance β€” distance transform.
  • -group β€” label groups in ascending order.

⭐ Successive morphological operations ⭐

  • -successive β€” successive operations (maximum: 100). you stack up a whole little alphabet of moves and she runs them in order. here's the alphabet, iykyk:
B[floor:ceil:fg:bg] - binarise in the range, using foreground and background
K[floor:ceil:bg] - clamp between the specified range. Set other voxels to 'bg' (default: 0)
P[bg] - pad volume with respect to the current kernel using 'bg' (default: 0)
E - erosion
D - dilation
M - median dilation
O - open
C - close
L - lowpass filter
H - highpass filter
X - convolve
F - distance transform (binary input only - not checked)
G - Label the groups in the volume in ascending order
R[TYPE|file.kern] - (2D04|2D08|3D06|3D26) or read in a kernel file
W[file.mnc] - write out current results
I[cmp.mnc] - local xcorr between current file and cmp.mnc

Default: "B" β€” she starts with B and that's just the way it is. πŸ’…

fr fr though, that F line says binary input only - not checked, which means nobody's gonna stop you if you feed it something else. no vibe check, no safety net. be careful out there. 🫠

πŸ‘‘ Generic options for all commands πŸ‘‘

  • -help β€” print summary of command-line options and abort.
  • -version β€” print version number of program and exit.

πŸ“ EXAMPLE πŸ“

mincmorph -help

look at her go. iconic behaviour, honestly. ✨


and that's the whole page, bestie β€” go forth and morph some volumes, you've got this πŸ’œπŸ¦‹πŸŒΈβœ¨πŸŽ€πŸ’–

this masterpiece was brought to you by mincmorph 2.3.00, dated July 2020. slay forever. πŸ‘‘πŸ’…βœ¨

πŸ“¦ where this page comes from