Save peak values of specific cells in new matrix
Sep 28 2015 | 3:17 pm
I'm trying to create a kind of "heat map" of the values of cells of an incoming video stream. The values are one plane only. Basically I need to be able to only copy over the cells that have a greater value than the last cell value received, with keeping all the values of the other cells that aren't greater. I'm having trouble thinking of ways to save the peak values of the cells. In the example below I use jit.slide, which is a bit shit as with even the largest @slide_down it still doesn't really save values. Of course if I have the matrix I could compare it with a [jit.op @op -] object.
Anyone know how to do it in a better way than using jit.slide?