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

jit.dimop Reference

Downsample using operators across dimensions

jit.dimop

Description

Applies an operator to elements within a subregion, across one or more dimensions, downsampling the input matrix in the process.

Discussion

For example, to downsample an incoming matrix to half the width and a quarter of the height, averaging all the values in each incoming 2 x 4 cell sub-region to a single output cell, use a step of 2 4, and an op of avg.

Matrix Operator

matrix inputs:1, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 0 0 0 1 1 char long float32 float64

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

op [symbol]

The operator to be used in the downsampling process (default = avg).

Possible values:

'avg'
'+'
'*'
'min'
'max'

step [32 ints]

Step size across each dimension (default = 1). A step size of -1 will span the entire dimension.

Common Box Attributes

See Also

Name Description
Working with Video in Jitter Working with Video in Jitter
jit.op
jit.planeop
jit.expr