The input to photogrammetry is photographs, and the output is typically a 3D model of some real-world object or scene.
3D shapes are determined by comparing corresponding points in multiple images.
Video on the History of Women in Photogrammetry (warning, sexist old-timers)
The Kelsh Stereoplotter (1940s), video:
Calculating the 3D shape of lightning, from two people in completely different places getting a photo of the same lightning bolt.