Original picture:
Final effect:
1. Open the original image material and press Ctrl + J to duplicate the background layer.
2. Execute: Layer > New Adjustment Layer > Levels, and set the parameters as shown below.
3. Create a new layer and press Ctrl + Alt + Shift + E to stamp the layer.