how to copy full matrices into bigger ones?

Jul 28, 2012 at 10:15am

how to copy full matrices into bigger ones?

I have a let’s say “jit.matrix something 4 char 300 200″ and a “jit.matrix bigsomething 4 char 10000 10000″ and i’d like to copy the small one into the big matrix from position 400 500. The result would be a big 10000×10000 pixel resolution white image with a 300×200 small image in it.
jit.glue doesn’t let me set the position and the algorithmic way of getcell – setcell is ulra slow so i’d need a way faster method for my project.
Thanks in advance. I hope this is something obvious i overloked in the tutorials.

Jul 28, 2012 at 11:33am

see jit.matrix’s usedstdim, dstdimstart, dstdimend attributes.

Jul 28, 2012 at 11:53am

tried that but didn’t work.
Could you give me a basic example patch of this?
I’m on 5.1.9 and OSX 10.6.8

Jul 28, 2012 at 12:49pm

check out jitter tutorial 14, does it all

Jul 28, 2012 at 1:51pm

yess! thanks!


You must be logged in to reply to this topic.