concatenate matrices

Mar 5, 2010 at 9:08am

concatenate matrices

hi,

im having some problems to join two 1 plane one dim char matrices to a big matrix of the same type but bigger dim,, im aware of jit.conca but the point is that i need concatenate many matrices not just 2, and jit.conca dont seems the best solution… in resume i need put the content of two matrices char 1 plane dim 4 in diferent locations in a 1 plane char dim 8 matrix.. i was trying the usedstdim but seems that the first matrices need to be same dim of the output matrix, even do this isnt working fine… even having the first matrices writing in diferent positions the cells of the output matrix are refresh…

somebody can point me in the right direction?

thank you very much,
o

– Pasted Max Patch, click to expand. –
#48920
Mar 5, 2010 at 4:38pm

is this what you are trying to do?

– Pasted Max Patch, click to expand. –

at the moment I am having trouble on doing the same thing with 16 matrices
but I am having performance issues when using jit.dx.grab from my camera. there must be a better way of doing it.

hope it helps

#175757
Mar 5, 2010 at 6:52pm

hi..
no, what i need is put the values from the first 1 char dim 4 matrix in the cells 0,1,2,3 and the values of the second 1 char dim 4 matrix in the cells 4,5,6,7 of the big 1 char dim 8 matrix… basically similar what does jit.concat,, but im trying to find a workaround because i need concatenate much more matrices and i was thinking the possibility of a better solution…

thanks,
o

#175758
Mar 12, 2010 at 2:29pm

ei jorge.. take a look on this.. it works to me..
take care with the matrices dimension… if its one dimension declare it…
dim 36 1… then jitglue works fine…

good luck,
o

– Pasted Max Patch, click to expand. –
#175759

You must be logged in to reply to this topic.