Non-interface version of the above function. Called by the interface
Sampling points come in pairs of double floating point values. The first value in the pair is the raw gray level, the second value is the corresponding calibrated value. See Type for details.