Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!
I think you may need to be a bit more specific with your question....
I personally have no clue as to what you are asking.
There is nothing complicated about average.
Have you ever seen a derivation or serious discussion of the formula?
PS - Your suggestion to simply use the stack-mean functionality is excellent. I use stack-median approach to removing moving objects relatively frequently, but I've been doing the average so many years the old 1/N way, it never occurred to me that I could simply change from median to mean.![]()
Derivation is simple. Once you know the opacity math:
Result = Layer1*(1-a) + Layer2*a
, the formula for average can be derived easy
Actually, I think you would have a hard time deriving it from that formula. ;-) . The reason is that you made a slight error in the 1st term. The 1st term in your recursion should involve the result coming "through" the layer immediately below, not just the value of that layer.
Hi SCTRWD - You're right, I shouldn't have called your formula a "recursion" -- it didn't even have indices. I should have simply called it a "formula" and left it at that. I was being generous because it was obvious that you were on your way to attempting to derive (or guide people to derive) a true recursion formula.
However, the real problem is not nomenclature, but is that your formula is only correct for the special case of the 1st and 2nd layers in the stack. This is because "the result" above the 1st layer only involves "the value" of the 1st layer. However, for all layers above the 1st, "the result" above the topmost layer involves both "the value" of the topmost layer and "the result" of all layers below, NOT simply "the value" of the layer immediately below, as your formula suggests.
Sorry if I'm "preaching to the choir", but I would bet any amount of money that most people reading your formula on this forum would be confused about when "LayerN" stands for the actual value of the layer, and when it stands for the aggregated result of everything below LayerN, since it's used one way in the first term in your formula and the other way in the 2nd term in your formula. Anyway, good discussion.
Cheers,
T