Medical image registration based on generalized N-dimensional principal component analysis (GND-PCA) and statistical shape deformation model