mia-3dimag...ics-in-mask(1)

πŸ“¦
version 2.4.7 Β· 2 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸŽ€ mia-3dimagestatistics-in-mask β€” straight from the General Commands Manual πŸ’…

okay so bestie, this page lives in the General Commands Manual (specifically the USER COMMANDS corner of it, iykyk), and it's about one very specific little icon: mia-3dimagestatistics-in-mask. She does stats. She does histograms. She only does it where you tell her to. Obsessed. Let's get into it πŸ’–


✨ NAME ✨

mia-3dimagestatistics-in-mask β€” Evaluate statistics within a masked region of the input data.

Like, she looks at your image, but only inside the mask. Everywhere else is outside her jurisdiction, no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

mia-3dimagestatistics-in-mask -i <image> -m <mask> [options]

πŸ’œ DESCRIPTION πŸ’œ

mia-3dimagestatistics-in-mask evaluates the statistics of an image within a masked region of the image. Possible outputs are a summary statistics and a histogram of the values.

That's the whole vibe fr fr: you hand her an image, you hand her a mask, she returns the numbers and/or the histogram for the pixels that made it inside the mask. Main character energy, but only where the mask lets her in. πŸ‘‘


🌈 OPTIONS 🌈

πŸ“ File-IO

  • -i --image=(input, required); io β€” input image to be analyzed. This one is required, so don't ghost the -i flag, she will simply not run. For supported file types see PLUGINS:3dimage/io.
  • -m --mask=(input, required); io β€” mask image to use to restrict the analysis. Also required, also non-negotiable, also the entire point. For supported file types see PLUGINS:3dimage/io.
  • -s --summary=(output); string β€” File to write the summary statistics to as plain text. Plain. Text. Nothing fancy and honestly? we respect that. ✨
  • -H --histogram=(output); string β€” File to write the histogram to. Capital H bestie, lowercase h is taken by something else on this very page. πŸ’€

πŸ†˜ 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

like, the lower you go the chattier she gets. trace is her voice-noting the entire runtime. fatal is her barely speaking at all. 🫢

  • --copyright β€” print copyright information
  • -h --help β€” print this help
  • -? --usage β€” print a short help
  • --version β€” print the version number and exit

πŸŽ›οΈ Parameters

  • --struct-name=undefined β€” Name of the structure the statistics are evaluated for
  • -l --limit=20; uint in [20, inf) β€” Number of pixels the mask should at least contain. So if your mask is smol and contains fewer than this, that's a problem. Floor is 20, and it's a uint that can go up forever, literally.
  • -b --bins=8; ulong in [4, inf) β€” number of histogram bins to be used. Default is 8, smallest legal value is 4, ceiling is the sky (ulong, so a lot of bins if you're feeling chaotic). πŸ“Š
  • --hmin=0 β€” lower bound for the histogram mapping. All values below this value will be mapped into the lowest bin. If this parameter is equal or larger than hmax, the histogram range is evaluated automatically. So like, if you mess up the order, she just handles it herself. Queen behavior. πŸ‘‘
  • --hmax=0 β€” hpper bound for the histogram mapping. All values above this value will be mapped into the highest bin. If this parameter is equal or smaller than hmin, the histogram range is evaluated automatically. Same deal, other end. (And yes, "hpper" is what the page says, we keep the lore intact πŸ’€)

βš™οΈ 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 -1 means "girl, you figure it out" and she will. Don't set this higher than your actual logical cores, that's not a flex. πŸ™ˆ


🧚 PLUGINS: 3dimage/io 🧚

all the formats she can read/write. the full roster, no skips:

  • analyze β€” Analyze 7.5 image
    • Recognized file extensions: .HDR, .hdr
    • Supported element types:
      • unsigned 8 bit, signed 16 bit, signed 32 bit, floating point 32 bit, floating point 64 bit
  • datapool β€” Virtual IO to and from the internal data pool
    • Recognized file extensions: .@
  • dicom β€” Dicom image series as 3D
    • Recognized file extensions: .DCM, .dcm
    • Supported element types:
      • signed 16 bit, unsigned 16 bit
  • hdf5 β€” HDF5 3D image IO
    • Recognized file extensions: .H5, .h5
    • Supported element types:
      • binary data, signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, signed 64 bit, unsigned 64 bit, floating point 32 bit, floating point 64 bit
  • inria β€” INRIA image
    • Recognized file extensions: .INR, .inr
    • Supported element types:
      • signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit
  • mhd β€” MetaIO 3D image IO using the VTK implementation (experimental).
    • Recognized file extensions: .MHA, .MHD, .mha, .mhd
    • Supported element types:
      • signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit
  • nifti β€” NIFTI-1 3D image IO. The orientation is transformed in the same way like it is done with 'dicomtonifti --no-reorder' from the vtk-dicom package.
    • Recognized file extensions: .NII, .nii
    • Supported element types:
      • signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, signed 64 bit, unsigned 64 bit, floating point 32 bit, floating point 64 bit
  • vff β€” VFF Sun raster format
    • Recognized file extensions: .VFF, .vff
    • Supported element types:
      • unsigned 8 bit, signed 16 bit
  • vista β€” Vista 3D
    • Recognized file extensions: .-, .V, .VISTA, .v, .vista
    • Supported element types:
      • binary data, signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit
  • vti β€” 3D image VTK-XML in- and output (experimental).
    • Recognized file extensions: .VTI, .vti
    • Supported element types:
      • signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit
  • vtk β€” 3D VTK image legacy in- and output (experimental).
    • Recognized file extensions: .VTK, .VTKIMAGE, .vtk, .vtkimage
    • Supported element types:
      • signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit

πŸ’« EXAMPLE πŸ’«

evaluate the summary statistics on the input and a histogram with 10 bins and automtically evaluated boundaries. Save summary in summary.txt and the histogram in hist.txt

mia-3dimagestatistics-in-mask --image image.v.gz --mask mask.v.gz
       --summary summary.txt --histogram hist.txt

see how she didn't even need --hmin or --hmax? that's the "automtically evaluated boundaries" moment, she just knows. ✨


🫢 AUTHOR(s) 🫢

Gert Wollny

shoutout to Gert, the architect. πŸ’œ


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

like, genuinely ABSOLUTELY NO WARRANTY, all caps, she is not kidding, do not come for her if it breaks. 😭

and that's the whole page bestie!! source/version: USER COMMANDS, v2.4.7 β€” signed, sealed, delivered. go run her on your masked region, you're gonna eat πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from