When working with raw data the possibility to set
gain/offset is crucial in order to be able to
appreciate all the detail in the data. The gain offset
way of doing this is very simpel and efficient. Offset
is simply the last graylevel assigned to black, gain
then determines how fast or slow the lut changes from
black to white in a linear fashion.
Example: Data U8BIT, offset 20, gain 2, means that all
values below or equal to 20 are displayed as black,
then a linear ramp running from all black (20) to all
white (from 148 and up), and then all white from 148.
There are obviously much more sophisticated ways of
doing this, I always liked the way this is done in XV
Logged In: YES
user_id=623121
This is very easy to implement using glPixelMap(). Se page
315 in the OpenGL reference manual for this exact problem.
Logged In: YES
user_id=623121
This is very easy to implement using glPixelMap(). Se page
315 in the OpenGL reference manual for this exact problem.
Logged In: YES
user_id=623121
This problem can be solved while adding the random colormap
functionality.