Menu

#20 Possibility to change gain/offset when viewing raw data

open
None
5
2003-02-27
2003-01-21
Lars Aurdal
No

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

Discussion

  • Johan Seland

    Johan Seland - 2003-01-22

    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.

     
  • Johan Seland

    Johan Seland - 2003-01-22

    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.

     
  • Johan Seland

    Johan Seland - 2003-02-27
    • assigned_to: nobody --> toffer
     
  • Johan Seland

    Johan Seland - 2003-02-27

    Logged In: YES
    user_id=623121

    This problem can be solved while adding the random colormap
    functionality.

     

Log in to post a comment.