sample and reference must have same shape, hence resolution, will use ndimage.zoom to fix this
made more clear the specification of the resolution of the images