Discovering Structure from Motion in Monkey, Man and Machine