Forums > Jitter

Extracting third dimention into a list

Jul 15 2010 | 2:44 pm

Hi everybody

I need to extract data from a matrix with three dimentions into lists. It seems that this is not possible with the jit.spill object as it only provides offset atributes for x and y. How can I "fake" the z?
I had the idea to reposition the matrix (as in jitter tutorial 14), so that any z can be moved to 0. But for this it seems that i need another matrix of the same size and as the original matrix is quite large, this would cost to much memory.
The solution could be very simple, i just started working with jitter.
Thanks for help.


Jul 15 2010 | 3:01 pm


Jul 19 2010 | 12:32 am

jit.spill @plane 0
gives the first plane of the matrix (X), so use @plane 2 to get the third (Z). jit.unpack will separate them first which might be more intuitive.

Jul 20 2010 | 6:58 am

Thanks for your answers. But can’t use planes because i have to interpolate in the third dimention (whitch is not possible with planes, is it?) and I already use plane 0 and 1 for the mag and phase of a fft (I use the matrix to store and manipulate ffts). So i realy have to work with a 3d matrix, whitch gives me the problem of the jit.spill object.

Jul 20 2010 | 8:43 am

Hi there.
Is there a misunderstanding?
@Sandrew: do you speak about the third plane (3 float32) or the third dimension (float32 256 256 256) ?

Jul 20 2010 | 12:44 pm

Third dimension (float32 256 256 256).
I want to interpolate between multiple 2d matrixes, therefore i have to use the third dimension as it is not possible to interpolate between planes.
Unfortunately jit.spill does only react on 2c matrixes, whitch is the problem i try to solve.

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

Forums > Jitter