Photogrammetry Explained: From Multi-View Stereo to Structure from Motion