Image pre-processing for optimizing automated photogrammetry performances