jit.repos Reposition spatially

The jit.repos object performs cell positioning on an input matrix received in its left inlet using the input from a second input matrix received in its right Inlet as a spatial map. The spatial map should be a 2 plane matrix, where plane 0 specifies the x offset and plane 1 specifies the y offset. You can do Fractional repositioning by setting the interpbits attribute to a non-zero value -- the spatial map values are considered to be fixed point values with a fractional component of interpbits.

Matrix Operator: in[2] 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
in2 resamp no no yes 2 all long char
out n/a yes yes yes all all char long float32 float64

Attributes:
Name Type Description
boundmode int Boundary mode for values outside the range (0, width) (0, height) (default = 3 (clip))
0 = ignore: Values that exceed the limits are ignored.
1 = clear: Values that exceed the limits are set to 0.
2 = wrap: Values that exceed the limits are wrapped around to the opposite limit with a modulo operation.
3 = clip: Values are limited not to exceed width or height.
4 = fold: Values that exceed the limits are folded back in the opposite
interpbits int The number of bits considered as fraction for spatial mapping values (default = 0)
mode int Offset mode flag (default = 0 (absolute offsets))
0 = spatial map values specified as absolute offsets
1 = spatial map specified as relative offsets
offset_x int The offset added to the x values in the spatial map matrix (default = 0)
offset_y int The offset added to the y values in the spatial map matrix (default = 0)

Example:

See Also:
jit.mxform2d, jit.plume, jit.rota