how to copy full matrices into bigger ones?


    Jul 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 10000x10000 pixel resolution white image with a 300x200 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 | 11:33 am
      see jit.matrix's usedstdim, dstdimstart, dstdimend attributes.
    • Jul 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
    • Jul 28 2012 | 12:49 pm
      check out jitter tutorial 14, does it all
    • Jul 28 2012 | 1:51 pm
      yess! thanks!