mia-2dsegmentcropbox(1)

πŸ“¦
version 2.4.7 Β· 3 versions
, in ubuntu jammy, ubuntu noble

✨ 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 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) πŸ”₯

⭐ 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


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