mia-2dseries2sets(1)

πŸ“¦
version 2.4.7 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

mia-2dseries2sets β€” bestie, this thing scoops up a whole series of images and sorts them into sets. That's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

mia-2dseries2sets -o <out-directory> [options] <PLUGINS:2dimage/io>

🌸 DESCRIPTION 🌸

Okay so, mia-2dseries2sets is the friend who takes literally every image file you hand it as a free parameter on the command line and goes "mmkay, let me organize these" β€” it builds segmentation sets out of the info it finds inside those images. πŸ‘‘

What info, you ask? Two things, and only two things:

  • the z-location of the slice 🧊
  • the acquisition number πŸ”’

The code is tailored to use the matching descriptors defined in the DICOM standard, so like, it speaks DICOM's language natively, no cap.

Here's the tea: every image that shares the same slice location gets grouped together into one segmentation set 🫢, and inside that set they're ordered by their acquisition number. And because floating point values are little chaos gremlins that will betray you, the slice locations get rounded to three digits accuracy so the comparison actually, you know, works. πŸ’…


πŸ’… OPTIONS πŸ’…

  • -o --out-directory=(required, output); string β€” the output directory. It needs to already exist and be writable, so like, don't come crying to me if you point it at a folder that isn't there. πŸ™ˆ
  • --no-copy β€” don't copy the image files to the output directory. Just... sets, no copies. πŸ¦‹

πŸŽ€ Help & Info πŸŽ€

  • -V --verbose=warning β€” how chatty do you want this program to be? It prints messages of the given level and higher priorities. Supported priorities, starting at the 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 β€” maximum number of threads to use for processing. This number should be lower than or equal to the number of logical processor cores in the machine. (-1: automatic estimation). So if you set this to like 9000 on a 4-core laptop, that's on you bestie. πŸ’€

🌈 PLUGINS: 2dimage/io 🌈

  • bmp β€” BMP 2D-image input/output support. The plug-in supports reading and writing of binary images and 8-bit gray scale images. Read-only support is provided for 4-bit gray scale images. The color table is ignored and the pixel values are taken as literal gray scale values.
    • Recognized file extensions: .BMP, .bmp
    • Supported element types:
      • binary data, unsigned 8 bit
  • datapool β€” Virtual IO to and from the internal data pool
    • Recognized file extensions: .@
  • dicom β€” 2D image io for DICOM
    • Recognized file extensions: .DCM, .dcm
    • Supported element types:
      • signed 16 bit, unsigned 16 bit
  • exr β€” a 2dimage io plugin for OpenEXR images
    • Recognized file extensions: .EXR, .exr
    • Supported element types:
      • unsigned 32 bit, floating point 32 bit
  • jpg β€” a 2dimage io plugin for jpeg gray scale images
    • Recognized file extensions: .JPEG, .JPG, .jpeg, .jpg
    • Supported element types:
      • unsigned 8 bit
  • png β€” a 2dimage io plugin for png images
    • Recognized file extensions: .PNG, .png
    • Supported element types:
      • binary data, unsigned 8 bit, unsigned 16 bit
  • raw β€” RAW 2D-image output support
    • Recognized file extensions: .RAW, .raw
    • 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
  • tif β€” TIFF 2D-image input/output support
    • Recognized file extensions: .TIF, .TIFF, .tif, .tiff
    • Supported element types:
      • binary data, unsigned 8 bit, unsigned 16 bit, unsigned 32 bit
  • vista β€” a 2dimage io plugin for vista images
    • 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

⭐ EXAMPLE ⭐

Create the segmentation sets from a series of DICOM images and copy the files to the output directory (copying is the default). ✨

mia-2dseries2sets -o /home/user/series
       /net/dicoms/patient1/series1/*.dcm

πŸ‘‘ 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 the mia-2dseries2sets(1) manual out of the USER COMMANDS section, sitting at version v2.4.7 β€” go forth and sort your slices, you absolute icon. πŸ¦‹πŸ’–

πŸ“¦ where this page comes from