Text this: The image quality in the measurement of atmospheric visibility from contrast indices and edges