Save peak values of specific cells in new matrix
Hi,
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?
I think you could probably do it with a combination of [jit.op @op max] and [jit.op áop >p].
\M
Does this work for you?
Thanks guys, way easier than I thought. Big ups!