mia-2dsegshiftperslice(1)
π mia-2dsegshiftperslice β bestie edition π
okay so this is the manual page for mia-2dsegshiftperslice(1), a lil general-commands situation, and she is exactly what you need when your segmentation got left behind by a registration. let's get into it π«Ά
β¨ NAME β¨
mia-2dsegshiftperslice β Translate a segmentation by the given amount.
π SYNOPSIS π
mia-2dsegshiftperslice -i <in-file> -o <out-file> -S <shift> [options]
π¦ DESCRIPTION π¦
so mia-2dsegshiftperslice moves the segmentation(s) of an image series around using a shift that you give it on a per-slice basis. that's the whole vibe, and honestly it's giving main character energy.
when would you even need this? bestie, here's the tea β: if you ran a linear registration that only applied a translation, and it did not correct the segmentation automatically β then your segmentation is now sitting in the wrong spot and this program is here to fix it. iconic behavior, no cap.
π OPTIONS π
-i,--in-file=(input, required); string β the input segmentation set. required, so don't skip her π-o,--out-file=(output, required); string β the output segmentation set. also required, also not optional, periodt.-g,--image-file=crop β output image filename base-S,--shift=(required); string β the shift of the segmentation, given as a base name
πΈ Help & Info πΈ
-V,--verbose=warning β verbosity of output, print messages of given level and higher priorities. the 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 β 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).
not me leaving the typo in Maxiumum β that's canon, that's the original, we respect the lore π
π EXAMPLE π
Shirt the segmentation given in set segment.set by files shiftXXXX.txt and store the result in shifted.set. Note, the numbering of the shiftXXXX.txx files must coincide.
mia-2dsegshiftperslice -i segment.set -o shifted.set -g shifted -S shift
bestie. it says "Shirt". we are not going to question it. the numbering thing though? that part is real and you need to respect it or your shift files will not line up π«
π 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 π user commands, v2.4.7, signed off from the mia-2dsegshiftperslice(1) manual. go shift those slices, you absolute legend πβ¨
π¦ where this page comes from
- ubuntu jammy: mia-tools 2.4.7-8ubuntu1 Β· GPL-3.0-or-later
- ubuntu resolute: mia-tools 2.4.7-18 Β· GPL-3.0-or-later
- ubuntu stonking: mia-tools 2.4.7-19build1 Β· 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