jit.coerce Reference

Coerce a matrix into different types/planecount

jit.coerce

Description

Coerces a matrix into different types/planecount without copying data (sometimes called "header munging"). This may be useful for treating integers as floating point data and vice versa, or treating a four-plane char matrix as a single plane long matrix.

Similar to jit.submatrix, jit.coerce only outputs a reference matrix and does not create a separate memory allocation. To use the resulting reference matrix with some jitter objects such as jit.cellblock, you may need to pass the output into another jit.matrix object first.

Examples

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

Common Box Attributes

See Also

Name Description
Working with Video in Jitter Working with Video in Jitter
jit.matrix
jit.pack
jit.unpack
jit.submatrix