How to do alpha compositing with a list of RGBA data in numpy arrays?
问题 Following this formula for alpha blending two color values, I wish to apply this to n numpy arrays of rgba image data (though the expected use-case will, in practice, have a very low upper bound of arrays, probably > 5). In context, this process will be constrained to arrays of identical shape. I could in theory achieve this through iteration, but expect that this would be computationally intensive and terribly inefficient. What is the most efficient way to apply a function between two