A newer version of Max is available. Click here to access the latest version of this document.

jit.resamp

Resample spatially

Description

The jit.resamp object spatially resamples the input matrix. This can be used to scale (zoom in/out) and offset (move) an image horizontally, vertically, or in both directions.

Matrix Operator

matrix inputs:1, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 1 1 1 4 1 char

Information for Jitter Matrix Operator (MOP) messages and attributes to this object

Attributes

Name Type g/s Description
interp_x int X value interpolation flag (default = 0) When the flag is set, values are interpolated across the x (horizontal) dimension values.
interp_y int Y value interpolation flag (default = 0) When the flag is set, values are interpolated across the y (vertical) dimension values.
wrap int Value wrap flag (default = 0) When the flag is set, values that exceed the limits are wrapped around to the opposite limit with a modulo operation. (1.1 wraps to .1, 1.2 wraps to .2, and -1.1 wraps to .9, -1.2 wraps to .8, etc.)
xscale float The scaling factor for the x (horizontal) dimension (default = 1.)
xshift float The shift (offset) amount for x (horizontal) dimension values (default = 0.). Positive values shift right, negative values shift left.
yscale float The scaling factor for the y (vertical) dimension (default = 1.)
yshift float The shift (offset) amount for the y (vertical) dimension values (default = 0.) Positive values shift down, negative values shift up.

Information for box attributes common to all objects

Examples

See Also

Name Description
jit.matrix The Jitter Matrix!
jit.mxform2d Spatial transform using 3x3 matrix
jit.rota Scale/rotate in 2D