Physically-Based Photometric Bundle Adjustment in Non-Lambertian Environments