get variance of each texel

Any idea ?
Maybe I need to compute the variance myself with the input pictures/cameras and their registration, but I would feel like I am reinventing the wheel here…