PHOTOMETRIC STEREO


CAT (without weight for handling shadows)
catrgbnormal_base.jpg


The normals for the set of images below were generated with multiplying intensities as weights for handling shadows:

CAT

OWL

ROCK

The only hurdle in completing this project was trying to figure out why the sparse matrix didn't come out symmetric which then caused error in computing depths. (This was only encountered after adding weights for computing normals.) Finally discovered that some values in the normals were NaN. By handling NaN in the normals, the problem was solved.