1 | initial version |
unxnut's suggestions is probably the right way to go at this, but I found a quick hack that gets me mostly what I want:
To stretch an image so the topmost few pixels are clipped:
removing low peaks works the same, but was not needed in my case