i have been working on a pixel averaging project, and have two ways of generating an average that to my eyes seem equivalent, but have not been producing equivalent results. i think i've been staring at it for far too long, so if anyone can see the reason, i'd be extremely grateful.