UNU-I2W(1)

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

✨ UNU-I2W(1) ✨

okay bestie, welcome to the <strong>User Commands</strong> corner of the manual β€” this one's short, sweet, and lowkey iconic πŸŽ€


πŸ’– NAME πŸ’–

unu-i2w β€” converts from 1-D index to world position πŸ¦‹


🌸 SYNOPSIS 🌸

unu i2w <center> <minPos> <maxPos> <num> <index>

✨ DESCRIPTION ✨

So the whole vibe here is: you got a 1-D index, and you want the world position that goes with it. That's it. That's the job. πŸ’…

To do that, unu-i2w needs three things from you: how the data is centered (cell vs. node, we'll get to it), the range of positions, and the number of intervals that position got quantized into.

🫢 heads up bestie: this is a demo/utility, and it does not actually operate on any nrrds. It's just vibing here doing math. No files touched, no cap.

It used to live out in the world as the stand-alone idx2pos binary, but now it's here with the rest of the crew. Glow-up fr fr ✨

It uses the NRRD_POS macro. πŸ”₯


πŸ’œ OPTIONS πŸ’œ

  • <center> β€” which centering applies to the quantized position. The possibilities are, and I quote the vibe check:
    • β€œcell” β€” for histogram bins, quantized values, and pixels-as-squares πŸ“
    • β€œnode” β€” for non-trivially interpolated sample points ⭐
  • <minPos> β€” the smallest position associated with index 0 (a double) 🌈
  • <maxPos> β€” the highest position associated with the highest index (a double) πŸ‘‘
  • <num> β€” the number of intervals into which position has been quantized (a double) 🧚
  • <index> β€” the input index position, the one getting converted to world (a double) πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

  • unu(1) β€” go say hi to the main character 🌸

and that's the whole page bestie, you ate that πŸ’… this little cutie is from the User Commands manual, dated April 2021, and it's filed under UNU-I2W(1) β€” mwah, periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from