VStep
Dynamic threshold VGen
See also: VClamp
Description
Just like the binary operator thresh
, returns 0
when v < step
, otherwise v
. Higher-dimensional versions of VStep do the comparison piecewise, meaning each component of v will be compaired against the same component of step.
Supported Rates: frame, shape, pixel
Class Methods
VStep.fr(step, v)
VStep.sr(step, v)
VStep.pr(step, v)
Make a VStep VGen at requested rate.
Arguments
step
The minimum value v must exceed for the VGen to return v instead of 0.
v
The input value to compare against step.
Returns:
For each component of v, 0
when v < step
, otherwise v
Dimensions
input |
output |
1, 1, 1, 1 |
1 |
2, 2, 2, 2 |
2 |
3, 3, 3, 3 |
3 |
4, 4, 4, 4 |
4 |
Examples
(TODO)
Last modified July 28, 2020: Update for a 0.0.7 Scintillator release (#5) (0177d81)