UNU-SLICE(1)

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

πŸ’– unu-slice πŸ’–

ok so bestie, welcome to unu-slice from the User Commands manual β€” it's the lil tool that slices along one or more axes at given positions ✨ and honestly? it's giving surgical precision πŸŽ€


✨ NAME ✨

unu-slice β€” slice along one or more axes at given positions πŸ¦‹


🌸 SYNOPSIS 🌸

unu slice -a,--axis <axis ...> -p,--position <pos ...> [-i,--input
<nin>] [-o,--output <nout>]

πŸ’… DESCRIPTION πŸ’…

ok so here's the vibe: you slice along one or more axes at given positions. no cap. πŸ”₯

the output nrrd dimension is less than the input nrrd dimension by the number of slice axes β€” except when the input is, or gets down to, 1-D. (so if you slice it all the way down, she stays 1-D, periodt πŸ’€)

and yes, you can slice on all axes in order to sample a single value from the array. one (1) single lil value. main character energy honestly πŸ‘‘

per-axis information is preserved. she remembers where she came from πŸ₯Ί

  • Uses nrrdSlice (possibly called multiple times) β€” lowkey the real MVP, iykyk

πŸŽ€ OPTIONS πŸŽ€

  • -a <axis ...>, --axis <axis ...> β€” single axis or multiple axes to slice along πŸ’« giving multiple axes here leads to doing multiple slices (at the corresponding positions given with -p). okay so listen: multiple axes should be identified in terms of the axis numbering of the original nrrd β€” because as the slices are done (in the given ordering), the actual slice axis will be different if previous slices were on lower-numbered (faster) axes. so like, stay woke on that one πŸ™ˆ (1 or more unsigned ints)
  • -p <pos>, --position <pos> β€” position(s) to slice at πŸ“:
    • <int> gives 0-based index
    • M-<int> give index relative to the last sample on the axis (M==#samples-1). so M-0 is the very last one, bestie πŸ’–
  • -i <nin>, --input <nin> β€” input nrrd πŸ“₯
  • -o <nout>, --output <nout> β€” output nrrd (string); default: - πŸ“€ (yes the default is literally -, she's mysterious like that ✨)

🌈 SEE ALSO 🌈

  • unu(1) β€” go read the whole fam, they're all iconic 🫢

not me getting emotional over a slicing utility 😭 but fr fr, slice responsibly and always check your axis numbering πŸ’€

ok bye bestie, this page is from August 2021, straight outta the User Commands manual, and it's a whole serve πŸ’…βœ¨ 🧚

πŸ“¦ where this page comes from