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..
eq_1 = in1 == thresh;
out1 = eq_1;