Statistical Inverse Ray Tracing for Image-Based 3-d Modeling