How to process this image?

… or this, only a tone curve applied.