Code:
I tried to substitute yellow and red values obtained from LDconfig.ldr,
Can you please explain why you do that.
In my opinion a picture (and a scan is a picture) should stay the way it is created. I would never try to substitude a color on a scanned sticker with a color from LDConfig.ldr. I think in most cases the result is not the same. On the other hand we have the direct colors introduced just fot pattern because the colors do match to LDconfig.ldr very seldom. So I am irritating by your attempt, but I guess you have a good reason for that ?