Frequently in scientific imaging you need to draw a red, grn and/or
blu image on top of a grayscale image to emulate a 4th "color"
channel.

Building an RGB pic from raw pixel values is easy but what is the
correct math to "add" a grayscale channel to an RGB image?  Simply
adding the RGB components of the grayscale image (which are all equal
by definition) to the exisiting R, G and B values of the color image
does not give nice results.

Anyone have any ideas?

Thx,
Peter.

--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel:    (613)761-5444
fax:    (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to