Nonrigid registration of volumetric images using ranked order statistics