Diffusion Image Registration Algorithm In Programming