jit.map Map input range to output range

The jit.map object maps input range to output range as specified by the map attribute settings. The attribute specifies an input value range (input_lo and input_hi) and a range of output values (output_lo and output_hi).

Matrix Operator: in[1] out[1]
Name IOProc Planelink Typelink Dimlink Plane Dim Type
in n/a n/a n/a n/a n/a n/a n/a
out n/a yes yes yes all all char long float32 float64

Attributes:
Name Type Description
clip int Clipping flag (default = 1) When the flag is set, any input whose mapped value falls outside the range specified by the output_lo and output_hi values is set to the lower or upper boundary value.
map float list[4] Input to output map input_lo input_hi output_lo output_hi (default = 0. 1. 0. 1.) The range specified by input_lo to input_hi is mapped to the range specified by output_lo to output_hi.

Example:

See Also:
jit.charmap, jit.clip, jit.op, jit.scalebias