| Notices | Welcome to RetouchPRO . You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload images and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. | | Photo Retouching "Improving" photos, post-production, correction, etc. | 
03-08-2006, 02:48 AM
| | Junior Member | | Join Date: Feb 2006
Posts: 13
| | | Color dodge eliminates yellowing. Why? Hi, it's me again with my comics restauration hobby.
I just discovered a nice trick to eliminate automatically the yellowing of the old pages, but i do not understand why it works. Can you explain it ?
Here is the trick
When you have a yellowed comic page (first image) create a new layer filled with the color of the paper (that supposedly was almost white at the origin).
Now invert the layer, and use Color Dodge as blending mode. The result is a restored page (second image)
I would like to understand why it works. What EXACTLY the color dodge blending mode does? I really would like to understand the math behind it (i'm good with math so don't worry  )
thank Dario
Last edited by dario; 03-08-2006 at 03:43 AM.
| 
03-08-2006, 05:29 AM
|  | Moderator | | Join Date: May 2004 Location: Goiânia, Brazil
Posts: 1,548
| | | Dario,
If that was Linear Dodge, and not Color Dodge, the formula would have been very simple. Linear Dodge is the simplest blend of all - just add the values of each channel.
In your "trick", sampling the (supposedly) white border gives a reading of around 251/241/184.
Inverting that, gives you the difference from 255 in each channel - or 004/014/071.
Adding that (if it were Linear Dodge) (not surprisingly) gets you back to 255 in each channel. The rest of the image will be brighter (because we're adding) and bluer, or less yellow (because the blue value is higher).
There is a very much simpler techique that gives the same result as the Color Dodge trick. Make a levels adjustment layer, select the White eye-dropper and click on the (supposedly) white border.
This gives exactly the same result as the Color Dodge. (and after some exploration should explain the math(s) behind it).
Rô | 
03-08-2006, 08:48 AM
| | Senior Member Patron | | Join Date: Dec 2005
Posts: 1,043
| | | Color Dodge Dario, a good explanation by Ro.
ColorDodge brightens the backdrop color to reflect the source color. Painting with black produces no changes.
FYI, the math formula for Color Dodge is as follows:
B(cb,cs) = { Min (1, cb/(1-cs)) if cs<1
1 if cs=1
Where cb is the background color and cs is the source color
Regards,
Murray | 
03-08-2006, 10:44 AM
|  | Moderator | | Join Date: May 2004 Location: Goiânia, Brazil
Posts: 1,548
| | Thanks Murray.
I searched (and searched) and didn't discover that! Where did you get that from? Must be interesting reading (for Geeks  ).
Re-writing for (normal) channel values gets... Min(255, b * 255/(255-a))
(adding or subtracting some 1's here and there because channel values start at 0)
By symmetry, I also got the Color Burn formula... Max(0, 255*(1 - (255- b)/a))) (0 for a=0)
Now I am one happy Geek! Murray, now where did you find that?
Rô | 
03-08-2006, 11:22 AM
| | Junior Member | | Join Date: Feb 2006
Posts: 13
| | Quote: |
Originally Posted by mistermonday
B(cb,cs) = { Min (1, cb/(1-cs)) if cs<1
1 if cs=1 | Thanks!
Do you have the formula for all the other blending modes too ?
Dario | 
03-08-2006, 12:33 PM
|  | Moderator | | Join Date: May 2004 Location: Goiânia, Brazil
Posts: 1,548
| | Thanks Ken,
update for the link - http://www.pegtop.net/delphi/articles/blendmodes/
Seems that a bigger problem than understanding the formula is trying to describe it....... Quote: |
This mode is some kind of inverted multiply mode (the multiplication is replaced by a division of the "inverse").
|
Rô | 
03-08-2006, 12:41 PM
|  | Senior Member | | Join Date: Feb 2005 Location: Lancashire (UK)
Posts: 1,112
| | | | 
03-08-2006, 01:27 PM
|  | Moderator Patron | | Join Date: Mar 2002 Location: Milan, Italy
Posts: 2,049
| | Hi dario!
Welcome to RP!
For all the others....  ...that's really IT! .... I've had it .... I'm going to pick up knitting as a hobby!!!! | 
03-08-2006, 02:18 PM
|  | Moderator | | Join Date: Apr 2005 Location: somewhere over there
Posts: 6,513
| | now flora, dont do that or we'd all have to take up knitting as well just to try and do as well as you do
craig | 
03-08-2006, 02:27 PM
| | Junior Member | | Join Date: Feb 2006
Posts: 13
| | Quote: |
Originally Posted by Flora Hi dario!
Welcome to RP!  | Ciao Flora, grazie Am I missing something? | 
03-08-2006, 02:41 PM
|  | Moderator Patron | | Join Date: Mar 2002 Location: Milan, Italy
Posts: 2,049
| | Ciao Dario!!! .... Not really  ... Fact is that I'm an absolute disaster with numbers .... and feel a bit frustrated when exposed to the knowledge of the 'numbers' geniuses we have here ...
P.S. ... probabilmente verrò condannata al rogo per questo!!!
P.P.S. ... di dove sei? | 
03-08-2006, 02:44 PM
|  | Moderator Patron | | Join Date: Mar 2002 Location: Milan, Italy
Posts: 2,049
| | | | 
03-08-2006, 02:47 PM
|  | Senior Member | | Join Date: Aug 2001 Location: northwest Indiana, about 45 minutes from Chicago, IL
Posts: 2,821
| | Quote: |
Originally Posted by Flora [b] I'm going to pick up knitting as a hobby!!!!  | Flora, if you need help, just let me know. I quit Photoshop, and took up knitting about 6 months ago. Maybe Doug will add a knitting forum.
Dario, welcome to RP!
Ed | 
03-08-2006, 02:54 PM
|  | Moderator Patron | | Join Date: Mar 2002 Location: Milan, Italy
Posts: 2,049
| | Quote: |
Originally Posted by Ed_L Flora, if you need help, just let me know. I quit Photoshop, and took up knitting about 6 months ago. Maybe Doug will add a knitting forum.  |
... I will ask Doug about the knitting Forum .... and will be kicked out of RP at the speed of light!!!! |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -6. The time now is 11:12 AM. | |
|