UNU-AFFINE(1)
π UNU-AFFINE(1) π
okay bestie, welcome to the User Commands section of the manual, and today's main character is unu-affine β she does affine (lerp) mapping on 5 nrrds or constants, and she does it flawlessly. no cap. π¦
β¨ NAME β¨
unu-affine β affine (lerp) mapping on 5 nrrds or constants π
πΈ SYNOPSIS πΈ
unu affine <minIn> <in> <maxIn> <minOut> <maxOut> [-t,--type <type>]
[-clamp <bool>] [-o,--output <nout>]
π DESCRIPTION π
So like. Affine (lerp) mapping on 5 nrrds or constants. That's the whole vibe. β¨
And here's the tea: all 5 arguments can be either nrrds or single floating-point values. Every single one of them. mix and match, she doesn't care, she's flexible like that. π
When all args are single values, this is subsuming the functionality of the previous stand-alone affine(1) program. so yes, the old girl got absorbed into the group chat, and honestly? it's giving glow up. π₯
Use - for an operand to signify a nrrd to be read from stdin (a pipe). But note, however, that - can probably only be used once (reliably). so like, don't get cute with it. one dash per party. π
- Uses
nrrdArithAffineornrrdArithIterAffine
π OPTIONS π
minInβ lower end of input value range. the floor, the starting line, the "before" pic. πΈinβ input value. the actual thing we're mapping, the star of the show, main character energy fr fr. βmaxInβ upper end of input value range. the ceiling, the finish line, the "also before" pic. π¦maxOutβ upper end of output value range. where we're going, the glow-up destination. πminOutβ lower end of output value range. the new floor, the rebrand. π
wait, bestie, I know I listed minOut after maxOut β that's just me being chaotic, the manpage lists minOut before maxOut and you should trust the manpage, not me. π
-t <type>,--type <type>β type to convert all nrrd inputs to, prior to doing operation. This also determines output type. By default (not using this option), the types of the input nrrds are left unchanged. so if you don't say anything, she minds her own business and leaves your types exactly how she found them. respectful queen. π-clamp <bool>β clamp output values to specified output range (bool); default:"false". so by default, no clamping, no restraint, she's free. set it and she stays in her lane. π-o <nout>,--output <nout>β output nrrd (string); default:"-". yeah default is stdout, she's a pipe girlie. π
π SEE ALSO π
unu(1)β the whole fam, go say hi. π«Ά
lowkey reminder bestie: every option name, every default, every - matters here. copy paste with intention, not with vibes alone. π
mwah π that's a wrap on the August 2021 edition of UNU-AFFINE(1), straight out of the User Commands collection. go lerp something iconic. periodt. π β¨
π¦ 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