The Image Play Effects Library has a colorize method which does
precisely this to a grayscale image. Pass a grayscale image and a
colour as a parameter, and it returns a colorised image. It is free
and Open Source.
http://imageplay.sourceforge.net/
Cheers,
Tom
On 29/01/2007, at 1:54 PM, Peter K. Stys wrote:
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>
_______________________________________________
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>