Hey Sander! I used your tool today. Works really fine. Indeed our approaches seem different, although the interface looks similar (I'm reusing a lot from HistogramTransform). One big difference is that I made a static process, while yours is dynamic. I sorted the problem of manually setting the coordinates using an interactive input through the readouts. I created "starting coordinates" and "ending coordinates" modes, that are updated every time the user clicks on the image (this is very similar to what happens on the control image, plotting the pixel values in the Curves, for example).
Anyway, I was able to compile my old module, but is not working. Don't know if I left something uncompleted, or it needs lots of debugging
Did I mention that it was some 2 years old?
Congratulations again for your work. Keep it coming