Forums > Jitter

how to copy full matrices into bigger ones?

July 28, 2012 | 10:15 am

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.



dtr
July 28, 2012 | 11:33 am

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


July 28, 2012 | 11:53 am

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



dtr
July 28, 2012 | 12:49 pm

check out jitter tutorial 14, does it all


July 28, 2012 | 1:51 pm

yess! thanks!


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