Optimal lateral displacement in automatic close-range photogrammetry