We would like to be able to generate an image buffer whose pixel values are the maximum of two other buffers (or perhaps the current and one other buffer).
In other words, for every pixel, i, m[ i ] = max( a[ i ], b[ i ] ) or m[ i ] = max ( m[ i ], a[ i ] ).
Any suggestions for how to do this? I didn't see a function to do exactly this. Perhaps we need to make several calls, but wanted to see if others had some suggestions.