I've got a data set of 7 million float positive values going from 10^(-7) to 10^(0). I would like to convert the float values into RGB values in a "linear way". Until now i used [255-const*|log(float value)|]/255 and it worked, but i would like to know if is there a way to convert the values without using the logarithm and maybe (i hope so) if is there an OpenGL library that does this thing taking advance of the GPU.
EDIT1: values going from 10^(-7) to 10^(1). I would like to obtain the conversion in the fastest way because i need a quick program (that's why i would like to use the GPU).
EDIT2: isn't there an OpenGL function that scale your values by giving max and min? I've got a program with a user interface and i would like to change the "window of values" while the program is running. I would like to have something like this Computerized tomography
EDIT3: could this help me? http://glm.g-truc.net/0.9.3/api/a00157.html/
EDIT4: i would like to get something like the Jet colormap in Matlab http://blogs.mathworks.com/images/loren/73/colormapManip_14.png