## Extracting third dimention into a list

Jul 15, 2010 at 2:44pm

# Extracting third dimention into a list

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.

Sandrew

#51375
Jul 15, 2010 at 3:01pm

jit.unpack–>jit.spill???

#184207
Jul 19, 2010 at 12:32am

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.

#184209
Jul 20, 2010 at 6:58am

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.

#184210
Jul 20, 2010 at 8:43am

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

#184211
Jul 20, 2010 at 12:44pm

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.

#184212

You must be logged in to reply to this topic.