Inheritance diagram for nipy.neurospin.neuro.fmri.realign4d:
The idea is to compute the global variance using the following decomposition:
with alpha=(n-1)/n V1, beta = (n-1)/n^2, d2 = (x1-m1)^2.
Only the second term is variable when one image moves while all other images are fixed.