UNU-LUT(1)

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

πŸ’– UNU-LUT(1) β€” the unu lut glow-up πŸ’–

okay bestie, pull up a chair, because this one is a User Commands banger and it's lowkey iconic. We're talking unu-lut β€” mapping an nrrd through one univariate lookup table. Fr fr. Let's get into it. πŸ¦‹


✨ NAME ✨

unu-lut β€” map nrrd through one univariate lookup table πŸŽ€


🌸 SYNOPSIS 🌸

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

πŸ’… DESCRIPTION πŸ’…

So here's the tea: this maps an nrrd through one univariate lookup table, and the lookup table is itself an nrrd. Very self-referential, very main character. πŸ‘‘

The lookup table can be 1D β€” in which case the output has the same dimension as the input β€” or it can be 2D, 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. ✨

  • Uses nrrdApply1DLut

that's it, that's the whole vibe check. 🫢


πŸ”₯ OPTIONS πŸ”₯

  • -m <lut>, --map <lut> β€” the lookup table you're mapping the input nrrd through. The whole point. The moment. πŸ’«
  • -r, --rescale β€” rescale the input values from the input range to the lut domain. And what even is the lut domain, you ask? Great question bestie. 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. Two paths, one slay. 🌈
  • -min <value>, --minimum <value> β€” low end of the input range. Defaults to the lowest value found in the input nrrd. Setting this explicitly is useful only with rescaling (-r). Type: double. πŸ“‰
  • -max <value>, --maximum <value> β€” high end of the input range. Defaults to the highest value found in the input nrrd. Setting this explicitly is useful only with rescaling (-r). Type: double. πŸ“ˆ
  • -blind8 <bool> β€” whether to know the range of 8-bit data blindly (uchar is always [0,255], signed char is [-128,127]). Setting this explicitly is useful only with rescaling (-r). Type: bool; default: "true". πŸ™ˆ (yes, blind. it just knows. no cap.)
  • -t <type>, --type <type> β€” specify the type ("int", "float", etc.) of the output nrrd. If you don't use this option, the output type is the lut's type. No lut type erasure here, she keeps her own unless you say otherwise. πŸ’
  • -i <nin>, --input <nin> β€” input nrrd. πŸ“₯
  • -o <nout>, --output <nout> β€” output nrrd (type: string); default: "-". πŸ“€

πŸ‘‘ SEE ALSO πŸ‘‘

unu(1), unu-mlut(1), unu-lut2(1)

the whole friend group, love that for them. πŸ’œ


reminder bestie: -min, -max, and -blind8 are only doing anything for you when you've got -r in the mix. Otherwise they're just standing there, gorgeous but unemployed. 😭

this page came to you from the User Commands section, dated August 2021. stay mapped, stay iconic, and go look at unu-mlut(1) when you're done here. mwah. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from