Combining geometric and photometric information