mia-2dseries2sets(1)
π 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 tracedebugβ Debug outputinfoβ Low level messagesmessageβ Normal messageswarningβ Warningsfailβ Report test failureserrorβ Report errorsfatalβ 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
- Recognized file extensions:
datapoolβ Virtual IO to and from the internal data pool- Recognized file extensions:
.@
- Recognized file extensions:
dicomβ 2D image io for DICOM- Recognized file extensions:
.DCM,.dcm - Supported element types:
- signed 16 bit, unsigned 16 bit
- Recognized file extensions:
exrβ a 2dimage io plugin for OpenEXR images- Recognized file extensions:
.EXR,.exr - Supported element types:
- unsigned 32 bit, floating point 32 bit
- Recognized file extensions:
jpgβ a 2dimage io plugin for jpeg gray scale images- Recognized file extensions:
.JPEG,.JPG,.jpeg,.jpg - Supported element types:
- unsigned 8 bit
- Recognized file extensions:
pngβ a 2dimage io plugin for png images- Recognized file extensions:
.PNG,.png - Supported element types:
- binary data, unsigned 8 bit, unsigned 16 bit
- Recognized file extensions:
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
- Recognized file extensions:
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
- Recognized file extensions:
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
- Recognized file extensions:
β 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
π COPYRIGHT π
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
- debian bookworm: mia-tools 2.4.7-11+b1 Β· GPL-3.0-or-later
- ubuntu jammy: mia-tools 2.4.7-8ubuntu1 Β· GPL-3.0-or-later
- ubuntu noble: mia-tools 2.4.7-13build4 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms