Resizing a matrix I get wrong coordinates

LSka's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Rajan Craveri's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Try this

LSka's icon

That's it! Thank you!