Metrics, scalar product and correlation adapted to logarithmic images