jit.resamp Reference

Resample spatially

jit.resamp

Description

jit.resamp 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.

Examples

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

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

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.

Common Box Attributes

See Also

Name Description
Working with Video in Jitter Working with Video in Jitter
jit.matrix
jit.mxform2d
jit.rota