A Uniform Grid Structure to Speed Up Example-Based Photometric Stereo