Resizing a matrix I get wrong coordinates


    Oct 11 2012 | 11:36 am
    Hello everybody, I'm trying to make some performance tweak to a patch, but I got stuck in a (maybe stupid) resizing issue. I have a 720x576 input and I want to extract the edges of a picture and translate them into coordinates to make further elaborations. Since I don't need much precision and the rest of the patch is very CPU-stressing, I was trying to resize the input matrix to 320x240 and send it to the next stage, while keeping the original input matrix at its native size and sending it to a window. And here comes the problem: when I pass the "resampled" matrix in jit.iter to extract the coordinates of the 'active' points what I get are the coords still in the 720x576 size. I seem not to understand why this happens. Any hints?
    P.S. if you want to use the example video I'm working with, you can download it here: http://lska.net/box/dancer.mov

    • Oct 11 2012 | 1:58 pm
      Try this
    • Oct 11 2012 | 2:57 pm
      That's it! Thank you!