Forums > Jitter

Convert a 1-D Matrix to a 2-D Matrix

Apr 10 2012 | 9:43 am

I’m trying to record a particle matrix (jit.p.shiva) with jit.qt.record.

I’ve succesfully converted the 5-plane float32 matrix to a 4-plane char matrix.
But jit.qt.record seems to be limited to a dimension size of 3792 – and I’ve got 200400.

So, how can I convert a one-dimensional matrix to a two-dimensional matrix?
I’ve looked at jit.scissors jit.split and jit.multiplex but can’t figure out how to do it.

thx in advance,

Apr 10 2012 | 11:46 am

not sure if will work for your need, but for dimensional matrix changes theres jit.scanwrap

Apr 13 2012 | 10:18 am

Thanks Carsol!

jit.scanwrap is exactly what I needed.
It also works for converting 2d back to 1d.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Jitter