We need to add masking to the registration process, minimizing: e = | M(W(I;p)) - M(T) | where M is a masking function defined in the template space...