Analysis and Modeling of Passive Stereo and Time-of-Flight Imaging