High-dimensional gaussian filtering for computational photography