Texture and Shadow Insensitive Metric for Image-based Reconstruction