Structure from Motion in nD Image Analysis