mia-2dsegmentcropbox(1)
β¨ mia-2dsegmentcropbox β¨
okay bestie, gather round, because this little icon of a command is literally the manual-segmentation crop-box queen π
πΈ NAME πΈ
mia-2dsegmentcropbox β evaluate a crop-box around a manual segmentation. that's it, that's the vibe π
π SYNOPSIS π
mia-2dsegmentcropbox -i <in-file> -o <out-file> [options]
π¦ DESCRIPTION π¦
so here's the tea β β mia-2dsegmentcropbox gets run on a segmentation set, and what it does is figure out a bounding box that encloses the segmentation in all the slices. every single one. no slice left behind π«Ά
then that bounding box gets used to crop the original images, correct the segmentation, and store a whole new segmentation set with the cropped images in it. glow-up complete β¨
the cropped images will be the same type as the original images β same energy, smaller frame π
β οΈ and if no segmentation is given in the set, the result is undefined. like, nobody knows what happens. not us, not the program, not the universe. so maybe don't π
π OPTIONS π
-i,--in-file=(required, input); stringβ the input segmentation set. required, bestie, you can't skip it π-p,--override-imagepathβ instead of using the path of the image files as given in the segmentation set, it assumes the files are chillin' in the current directory π-o,--out-file=(required, output); stringβ the output segmentation set. also required, also non-negotiable β¨-c,--cropped-base=cropβ base name for the cropped image files. the file type and the numbering will be based on the input image file type and numbering π-e,--enlarge=5β enlarge the area around the obtained bounding box by this number of pixels in each direction π¦
π Help & Info π
-V,--verbose=warningβ verbosity of output: prints messages of the 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β 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) π₯
β EXAMPLE β
evaluate the optimal cropping for a segmentation set segment.set and enlarge it by 3 pixels. store the resulting set in the file cropped.set. like this:
mia-2dsegmentcropbox -i segment.set -o cropped.set -e 3
periodt π
π 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.
okay that's the whole page, bestie, you're officially a crop-box scholar πβ¨ this was mia-2dsegmentcropbox, version v2.4.7, from the General Commands Manual / USER COMMANDS era β go crop something iconic ππ¦πΈ
π¦ where this page comes from
- 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