UNU-3OP(1)
π UNU-3OP β ternary ops, but make it a group chat π
okay bestie, listen. this is unu-3op, a User Commands girlie from the unu family. she does ternary operations on three nrrds or constants, and she eats every single time. no cap. π
β¨ NAME β¨
unu-3op β ternary operation on three nrrds or constants π¦
β¨ SYNOPSIS β¨
unu 3op <operator> <in1> <in2> <in3> [-t,--type <type>] [-w,--which
<arg>] [-o,--output <nout>]
β¨ DESCRIPTION β¨
so basically: ternary operation on three nrrds or constants. she can have one, two, or three nrrds, but not zero β zero nrrds is not the vibe, don't do it. π
and listen, if you wanna pipe something in, use β-β for an operand to signify a nrrd to be read from stdin (a pipe). BUT β heads up β β-β can probably only be used once (reliably). so like, don't be greedy with the dashes, bestie. π
- Uses
nrrdArithIterTernaryOpor (with-w)nrrdArithIterTernaryOpSelect
β¨ OPTIONS β¨
π§ operator
the ternary operator. possibilities include:
β+β,βxββ sum or product of three values β¨βminβ,βmaxββ minimum, maximum πβmin_smββ smoothed minimum function;min_sm(x, w, M)is likemin(x,M)but forx > M-w(withw > 0) there is a smooth transition fromxto asymptotic toMπΈβmax_smββ smoothed maximum function;max_sm(m, w, x)is likemax(m,x)but forx < m+w(withw > m) there is a smooth transition fromxto asymptotic tomπΈβlt_smββ 1st less than 3rd, smoothed by 2nd πβgt_smββ 1st greater than 3rd, smoothed by 2nd πβclampββ 2nd value is clamped to range between the 1st and the 3rd π«Άβifelseββ if 1st value non-zero, then 2nd value, else 3rd value πβlerpββ linear interpolation between the 2nd and 3rd values, as the 1st value varies between0.0and1.0, respectively πβexistsββ if the 1st value exists, use the 2nd value, otherwise use the 3rd πβin_opββ1iff 2nd value is> 1stand< 3rd,0otherwise π―βin_clββ1iff 2nd value is>= 1stand<= 3rd,0otherwise π―βgaussββ evaluate (at 1st value) Gaussian withmean=2ndandstdv=3rdvalue πβricianββ evaluate (at 1st value) Rician withmean=2ndandstdv=3rdvalue π
π in1
First input. Can be a single value or a nrrd.
π in2
Second input. Can be a single value or a nrrd.
π in3
Third input. Can be a single value or a nrrd.
β the flags, periodt
-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. π-w <arg>,--which <arg>β Which argument (0,1, or2) should be used to determine the shape of the output nrrd. By default (not using this option), the first non-constant argument is used. (int); default:β-1βπ-o <nout>,--output <nout>β output nrrd (string); default:β-βπ
β¨ SEE ALSO β¨
unu(1) π¦
lowkey the wholeunucinematic universe is right there inunu(1). go read it, iykyk. π
okay that's the whole page, bestie!! this one's UNU-3OP(1), living under User Commands, and the page is dated August 2021. slay, ate, no crumbs. π«Άβ¨π
π¦ 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