Spatial Normalization using nipy

I am trying to follow the tutorial for spatial normalization using nipy from.

Can someone please suggest if both the input image and atlas image could be functional image or it must be anatomical image.

and what does resampling do?