Basically, what I want to do is understand how to calculate the values along a \'curve\' as represented here in the photoshop curves box:
Photoshop uses an interpolating cubic spline for the curve, as explored on a separate Math StackExchange thread.