Forums > Gen

Efficient way to filter out a matrix?

May 28 2014 | 4:54 am

Hi everyone,

I am trying to figure out a way to filter out repetitions inside a matrix more efficiently. I have to scale 10 times what I am doing and it slows down the CPU.

In the example below you have something similar to what I am trying to achieve. Minus the fact that the input will come from jit.openni while using a kinect. Practically I want to know when somebody is leaving the scene.

The patch in the example works without a kinect to demonstrate the problem.

PS: Can [jit.op @op == @val 1] be substituted for..
Param thresh(1);
eq_1 = in1 == thresh;
out1 = eq_1;

? (see also example in the patch)

-- Pasted Max Patch, click to expand. --

Thank you for any input!!

Viewing 1 post (of 1 total)

Forums > Gen