UNU-LUT2(1)

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

πŸ’– unu-lut2 β€” the bivariate lookup table glow-up πŸ’–

okay bestie, welcome to UNU-LUT2(1), a real one from the User Commands section of the manual. this is unu-lut2, and she maps an nrrd through a bivariate lookup table. yes. bivariate. two variables. twin energy. πŸ‘―β€β™€οΈ


✨ NAME ✨

unu-lut2 β€” map nrrd through a bivariate lookup table πŸŽ€


🌸 SYNOPSIS 🌸

unu lut2 -m,--map <lut> [-r,--rescale <bool bool>] [-min,--minimum
<value>] [-max,--maximum <value>] [-blind8 <bool>] [-t,--type <type>]
[-i,--input <nin>] [-o,--output <nout>]

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she does is, she maps an nrrd through a bivariate lookup table β€” and the lookup table is itself an nrrd, which is so iconic of her honestly. πŸ’…

the lookup table can be 2D, in which case the output has the same dimension as the input. or it can be 3D, in which case the output has one more dimension than the input, and each value gets mapped to a scanline (along axis 0) from the lookup table. either way she's serving.

and in any case β€” 2D, 3D, whatever β€” axis 0 of the input must have length two. that's the whole bivariate thing. two. duo. the pair. no cap. 🫢

  • Uses nrrdApply2DLut

πŸ’… OPTIONS πŸ’…

  • -m <lut>, --map <lut> β€” the lookup table you're mapping the input nrrd through. the main character of the whole operation, lowkey.
  • -r <bool bool>, --rescale <bool bool> β€” rescale one or both of the input values from the input range into the lut domain. and what's the lut domain, you ask? it's either explicitly defined by the axis min,max along axis 0 or 1, or it's implicitly defined as zero to the length of that axis minus one. takes 2 bools. default: false false ✨
  • -min <min0 min1>, --minimum <min0 min1> β€” low end of the input range. defaults to the lowest values found in the input nrrd. setting this explicitly is useful only with rescaling (-r). takes 2 doubles.
  • -max <max0 max1>, --maximum <max0 max1> β€” high end of the input range. defaults to the highest values found in the input nrrd. setting this explicitly is useful only with rescaling (-r). takes 2 doubles.
  • -blind8 <bool> β€” whether to know the range of 8-bit data blindly. like, uchar is always [0,255], signed char is [-128,127], no thoughts head empty. setting this explicitly is useful only with rescaling (-r). takes a bool. default: true
  • -t <type>, --type <type> β€” specify the type (int, float, etc.) of the output nrrd. by default (aka if you don't use this option), the output type is the lut's type. so she just inherits the vibe. πŸ‘‘
  • -i <nin>, --input <nin> β€” the input nrrd.
  • -o <nout>, --output <nout> β€” the output nrrd. takes a string. default: - (which is stdout, she's flexible like that)

🌈 SEE ALSO 🌈

unu(1), unu-lut(1), unu-mlut(1) β€” go read those too bestie, iykyk πŸ“š


and that's the whole page, fr fr. this was the User Commands manual for UNU-LUT2(1), dated August 2021. thanks for reading my little unix essay, you ate that. mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from