RetouchPRO

Go Back   RetouchPRO > Technique > Photo Retouching

Notices

Photo Retouching "Improving" photos, post-production, correction, etc.

Reply
 
LinkBack Thread Tools
  #1  
Old 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
Attached Images
File Type: jpg colordodge1.jpg (94.0 KB, 58 views)
File Type: jpg colordodge2.jpg (94.5 KB, 66 views)

Last edited by dario; 03-08-2006 at 03:43 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 03-08-2006, 05:29 AM
byRo's Avatar
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).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #4  
Old 03-08-2006, 10:44 AM
byRo's Avatar
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?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #5  
Old 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #6  
Old 03-08-2006, 11:32 AM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
Here is a link.

Look under 'Burn Modes'

http://www.pegtop.net/delphi/blendmodes/

Ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #7  
Old 03-08-2006, 12:33 PM
byRo's Avatar
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").


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #8  
Old 03-08-2006, 12:41 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,112
You are Welcome.

Here is another.

http://www.vanderlee.com/tut_fm_mixingmodes.html

Ken.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #9  
Old 03-08-2006, 01:27 PM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,049
Blog Entries: 3
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!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #10  
Old 03-08-2006, 02:18 PM
Kraellin's Avatar
Moderator
 
Join Date: Apr 2005
Location: somewhere over there
Posts: 6,513
Blog Entries: 4
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #11  
Old 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

Quote:
For all the others....

...that's really IT! .... I've had it .... I'm going to pick up knitting as a hobby!!!!
Am I missing something?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #12  
Old 03-08-2006, 02:41 PM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,049
Blog Entries: 3
Ciao Dario!!!

Quote:
Am I missing something?
.... 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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #13  
Old 03-08-2006, 02:44 PM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,049
Blog Entries: 3
Craig,

....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #14  
Old 03-08-2006, 02:47 PM
Ed_L's Avatar
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #15  
Old 03-08-2006, 02:54 PM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,049
Blog Entries: 3
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!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another one could Someone Advice On how to eliminate black clip? jr102801 Photo Retouching 6 02-06-2007 04:41 AM
eliminate result of flash albatrosss Image Help 6 09-30-2006 10:57 PM
how to eliminate crazing? Toby33 Photo Restoration 11 08-10-2004 09:27 PM


All times are GMT -6. The time now is 11:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 Doug Nelson. All Rights Reserved




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29