UNU-W2I(1)
β¨ UNU-W2I(1) β the "where does this world position live in my array" page β¨
okay bestie, welcome to the manual for unu-w2i, a lil User Command that converts from 1-D world to index position. yes it's giving "wait why do I need this", but trust, it's lowkey iconic. π
πΈ NAME πΈ
unu-w2i β converts from 1-D world to index position
β¨ SYNOPSIS β¨
unu w2i <center> <minPos> <maxPos> <num> <world>
π¦ DESCRIPTION π¦
so here's the vibe: this converts from 1-D world to index position. you give it the centering of the data (cell vs. node, more on that in a sec), the range of positions, and the number of intervals that position has been quantized into, and it hands you back the index. π
important lore though: this is a demo/utility, and it does not actually operate on any nrrds. it's just vibing. fr fr. π
it was previously available as the stand-alone pos2idx binary, so if that name rings a bell for you, that's why. glow-up era. π
Uses NRRD_IDX macro β¨
π OPTIONS π
<center>β which centering applies to the quantized position. the possibilities are, and I quote the vibe:- "cell" for histogram bins, quantized values, and pixels-as-squares
- "node" for non-trivially interpolated sample points
<minPos>β smallest position associated with index0(double)<maxPos>β highest position associated with highest index (double)<num>β number of intervals into which position has been quantized (double)<world>β the input world position, to be converted to index (double)
not me reminding you that like four of these are doubles π«Ά they're literally all typed, don't come for me.
π SEE ALSO π
that's the whole page bestie, no cap. go forth and index responsibly. π
this masterpiece of a manual page is from April 2021 and lives under the source/version tag UNU-W2I(1). mwah, slay, bye. πβ¨
π¦ where this page comes from
- fedora 43: teem 1.11.0-83.fc43 Β· LGPL-2.1-or-later WITH LicenseRef-Fedora-Temporary-Simple-Library-exception
- fedora 43: teem 1.11.0-86.fc43 Β· LGPL-2.1-or-later WITH Simple-Library-Usage-exception
- fedora 44: teem 1.11.0-87.fc44 Β· LGPL-2.1-or-later WITH Simple-Library-Usage-exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms