This is the outside brightness. I would like to apply a filter such that the new curve is oriented at the maximums, so that it is the outer envelope. The envelope is built by partitioning data into intervals and finding a maximum point in each such interval. Is there a custom filter doing that?
Now I did this: I store the last 4 values and take the maximum of the last 4 values and the current value. (the value is calculated first, then the attributes!). But 4 values are not enough.