Save peak values of specific cells in new matrix


    Sep 28 2015 | 3:17 pm
    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?

    • Sep 28 2015 | 4:13 pm
      I think you could probably do it with a combination of [jit.op @op max] and [jit.op áop >p].
      \M
    • Sep 28 2015 | 6:31 pm
      Does this work for you?
    • Sep 28 2015 | 9:48 pm
      Thanks guys, way easier than I thought. Big ups!