jit.ameba Idiosyncratic downsampling/upsampling

The jit.ameba object began life as a completely failed attempt at a linear interpolation object. As the Oblique Strategies say, "Honor thy error as a hidden intention." If you’re interested in linear interpolation objects, try the jit.plur object. Otherwise, please enjoy the mess.

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 4 all char

Attributes:
Name Type Description
gain float The overall gain scaling factor (default = 1.)
mode int Color handling mode (default = 0 (wrap))
0 = wrap: Values that exceed the limits are wrapped around to the opposite limit with a modulo operation. (256 wraps to 0, 257 wraps to 1, and -1 wraps to 255, -2 wraps to 254, etc.)
1 = clip: Values are limited not to exceed min or max. (E.g. numbers greater than 255 are set to 255, and numbers less than 0 are set to 0.)
2 = fold: Values that exceed the limits are folded back in the opposite direction. (256 is folded back to 254, 257 is folded back to 253, and -1 is folded back to 1, -2 to 2, etc.)
x int The number of cells used for horizontal quantization (default = 1)
y int The number of cells used for vertical quantization (default = 1)

Example:

See Also:
jit.matrix, jit.op, jit.plur