UNU-TILE(1)

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

πŸ’– unu-tile β€” the girlies are TILING today πŸ’–

ok so real talk, this is unu-tile from the User Commands manual, and bestie, she is so much easier than she looks. let's get into it 🫢


✨ NAME ✨

unu-tile β€” tile slices of one axis into two other axes πŸŽ€


✨ SYNOPSIS ✨

unu tile -a,--axis <axSplit ax0 ax1> -s,--size <fast slow> [-i,--input
<nin>] [-o,--output <nout>]

✨ DESCRIPTION ✨

okay so here's the vibe: tile slices of one axis into two other axes. that's it, that's the whole thing πŸ’…

now let me explain what "tiling an array" even means, because the way this works is lowkey kinda iconic. Tiling means you split ONE axis into a fast part and a slow part, and then you interleave those parts into other (already existing!) axes by doing two axis merges. Each merge combines an existing axis with part of the split axis. the result? you reduce the dimension by one. slay. ✨

important detail bestie, don't skip this: all three axis arguments identify axes in the input array, as is. no funny business. 🧚

and here's the example that makes it click β€” it gives you a super simple way of viewing the 128 slices along the slow axis of a 3-D volume as a 16x8 tiled array of 2-D slices, like this:

-a 2 0 1 -s 16 8

ate. πŸ”₯

  • Uses nrrdTile2D

✨ OPTIONS ✨

  • -a <axSplit ax0 ax1> , --axis <axSplit ax0 ax1> β€” axSplit gets divided and merged with ax0 and ax1. that's 3 unsigned ints, bestie, count 'em. πŸ‘‘
  • -s <fast slow> , --size <fast slow> β€” the fast and slow axis sizes to produce as the result of splitting the axSplit axis. (2 size_ts) πŸ’«
  • -i <nin> , --input <nin> β€” input nrrd πŸ“₯
  • -o <nout> , --output <nout> β€” output nrrd (string); default: "-" πŸ“€
not me reminding you that -i and -o are in square brackets in the synopsis, aka they're optional, while -a and -s are the whole entire point. the default output is "-", which means stdout, iykyk. πŸ’€

✨ SEE ALSO ✨


and that's the tea πŸ“ this page came from August 2021, and it's UNU-TILE(1) from the User Commands manual β€” go forth and tile, my little main character πŸŒˆπŸ’œ

πŸ“¦ where this page comes from