Hey, my forum time says you posted only at 2:50AM- that's not bad at all! What program/library did you use to do the restoration?
I used Photoshop. I am a photoshop queen!
I have no idea about the math/logic behind it because the Photoshop code is probably so closely guarded that the adobe CEO has it on an encrypted USB inside a signal/bullet/bomb proof suitcase surgically attached to his arm, while he sleeps in his underground bunker in a forest filled with highly trained guard animals, and automated turrets.
What you do is you negate the color you don't want via the "color" filter in photoshop and then bring back some colours where you feel you need them.