UNU-AFFINE(1)

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

πŸ’– 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 nrrdArithAffine or nrrdArithIterAffine

πŸ‘‘ 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