Moth3r said:
Try here:
Thanks for the link, Moth3r!
I wasn't having much success with it, so after some more searching, I found this.
I have experience with Scheme, so I was able to translate it to AviSynth, and the results look promising! You can see my function here.
With contrast=1.15 in GOUT ANH, I get: