UNU-LUT(1)
π 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 axismin,maxalong 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 (ucharis 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-blind8are only doing anything for you when you've got-rin 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
- 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