Transferring Color to Greyscale Images

"rolfjf" <[email protected]> Thu, 21 Aug 2003 12:46:15 -0000
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>

Thank you for your help!
That was really a good ideia!
But, I=B4mtrying to do what the article "Transferring Color to=20
Greyscale Images" by Tomihisa Welsh, Michael Ashikhmin and Klaus=20
Mueller.=20
They convert RGB to LAB (luminance, alpha, beta).
They use what is in the article "Color Transfer between Images" by=20
Reinhard, Ashikhmin, Gooch e Shirley.
I created 6 arrays for each image, one for R, one for G, one for B,=20
one for L, one for alpha and one for beta.
How can I assembly 3 values (R,G,B) into one to have the color of the=20
pixel?

Rolf



> hello Rolf,
> as u know colors are from red blue and green, a grayscale color has=20
> got the same value of these 3 colors. for example 200,200,200 is a=20
> silver (grayscale) color but 200,200,199 is not. I think you should=20
> use this method for your filter:
> get each color value from the greyscale picture and the colored=20
> picture, add them up then div 2 (Average).
> think, the silver color is 666666 and the rgb color is 3F8F3D, you=20
> see 3F is 63 and 8F is 143 and 3D is 61 in dec.
> ( 66 + 63 ) / 2 =3D 64 -> 40 in hex
> ( 66 + 143) / 2 =3D 104 -> 68 in hex
> ( 66 + 61 ) / 2 =3D 63 -> 3F in hex
> so the mixed color is 40683F. well 666666 is a dark gray and 3F8F3D=20
> is a green and the result is a dark green! there are 255 colors in=20
> grayscale mode, one is white one is black and 223 colors are silver.
>=20
> Joy,
>=20
> Comboy.
>=20
> > Hi
> > What I want to do is transfer color from a color image to a=20
> greyscale=20
> > image. There is a paper called "Transferring Color to Greyscale=20
> > Images" and I want to make a program that uses this paper.
> > The user gives a color image and a greyscale image and the=20
program=20
> > transferes colors from the color image to the greyscale...
> > It=B4s eazy to find the paper in google...
> > Could you help me?
> > thank you
> > Rolf


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. h=
ttp://www.c1tracking.com/l.asp?cid=3D5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi VCL Top Sites!
http://www.sandbrooksoftware.com/TS/TS2/Components.shtml
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
---------------------------------------------------------------=20

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/=20