UNU-CROP(1)

πŸ“¦ version 1.11.0, in fedora 43, fedora 44

πŸ’– unu-crop β€” bestie edition πŸ’–

okay so you want the unu-crop manual page? say less. this is the <unu-crop> page from the User Commands part of the manual, and it is literally just here to help you shrink your nrrd down to size. let's get into it πŸŽ€


✨ NAME ✨

unu-crop β€” crop along each axis to make a smaller nrrd πŸ¦‹


🌸 SYNOPSIS 🌸

unu crop [-min,--minimum [<pos0 ...>]] [-max,--maximum [<pos0 ...>]]
[-b,--bounds <filename>] [-i,--input <nin>] [-o,--output <nout>]

πŸ‘‘ DESCRIPTION πŸ‘‘

Crop along each axis to make a smaller nrrd. that's the whole vibe. you got a big ol' nrrd and you only want a lil slice of it? this is the tool, no cap πŸ’…

  • Uses nrrdCrop

✨ OPTIONS ✨

  • -min [<pos0 ...>], --minimum [<pos0 ...>] β€” the low corner of the bounding box, aka where you're starting from on each axis. here's the tea on how to write the positions:
    • <int> gives you a 0-based index. plain and simple ✨
    • M, M+<int>, M-<int> give you an index relative to the last sample on the axis (and yes, M==#samples-1, that's the rule 🫢).

takes (0 or more positions). default: 0 🌈

  • -max [<pos0 ...>], --maximum [<pos0 ...>] β€” the high corner of the bounding box, aka where you're stopping. besides all the specification styles described above, there's also this extra one:
    • m+<int> gives you an index relative to the minimum. cute, right? πŸ₯°

takes (0 or more positions). default: 0 πŸ’œ

  • -b <filename>, --bounds <filename> β€” drop a filename here and it overrides the -min and -max options entirely (so like, you don't even need to use those ones, they can just chill). it gives you the cropping bounds as a 2-D array, where the first scanline is for -min and the second is for -max.
heads up bestie 😭 unfortunately the m and M semantics (the ones we just talked about above) are currently not supported in the bounds file. so don't try it, it's giving not-yet-implemented.
  • -i <nin>, --input <nin> β€” input nrrd πŸ“₯
  • -o <nout>, --output <nout> β€” output nrrd (string); default: - πŸ“€

🌈 SEE ALSO 🌈

unu(1) β€” go read that one too, iykyk πŸ’–


and that's the whole page, bestie!! this one's from August 2021 in the UNU-CROP(1) manual β€” go forth and crop, you absolute icon πŸ‘‘βœ¨πŸ’…

πŸ“¦ where this page comes from