False color images

Derakon <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <CA+Qo5j4WjLAnkD7K133eHQXiA33D-v77QqgAz272_W1QRUgd=g@mail.gmail.com>
I have a program that displays monochrome camera images, obtained as
Numpy arrays of 16-bit integer pixel brightnesses. I'd like to have a
false-color mode that displays low values as blue and high values as
red, to get some extra contrast and make it easier to tell where the
brightest pixels in the image are. I did some searching around and
about all I can find is some discussion on using color-index mode,
with concern that it's really meant for palettized sprites and isn't
really recommended these days. Is that accurate?

Presumably this task has been done before; what's the recommended way
to do false color? Especially, I want to be able to rescale what value
is considered the darkest and what the brightest on the fly -- for
example, if I get an image where the distance between darkest and
brightest pixel is only 1000 (~10 bits) then I don't want to be
scaling things as if the brightest pixel is 2^16-1 and the darkest is
0.

Any advice would be recommended. Thanks.

-Chris

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.