Spatial integration of curved surfaces in structure from motion