Gravar-mail: Three-Dimensional Surface Profile Intensity Correction for Spatially-Modulated Imaging