Red Filtering

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
okyou
Posts: 193
Joined: Fri Apr 26, 2013 6:52 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Video Card: onboard
sound_card: onboard
Hard_Drive_Capacity: 2TB
Corel programs: X9 Ultimate

Red Filtering

Post by okyou »

Hello,

I have a few photos taken inside of a restaurant that use red lighting lamps, is there any tools or method to filter the red out ? I've tried the Hue and Saturation tools but not very successful because it is difficult to adjust. If I change the hue to filter the red, then the lamps would become green. Any tips and tricks to wash out the excess red ? Thanks
test.jpg
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Red Filtering

Post by Jean-Luc »

okyou wrote:Hello,

I have a few photos taken inside of a restaurant that use red lighting lamps, is there any tools or method to filter the red out ? I've tried the Hue and Saturation tools but not very successful because it is difficult to adjust. If I change the hue to filter the red, then the lamps would become green. Any tips and tricks to wash out the excess red ? Thanks
The attachment test.jpg is no longer available
The lamps will stay green is you correct the red cast :
balance blancs.jpg
balance blancs.jpg (72.75 KiB) Viewed 5618 times
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
CHoffman
Posts: 54
Joined: Sun Dec 10, 2017 1:55 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Z270-A
processor: i7700K 4.2 GHz
ram: 16.0 GB
Video Card: Nvidia K1200
sound_card: integrated or Nvidia or Emu
Hard_Drive_Capacity: 2T+SSD
Monitor/Display Make & Model: Viewsonic VP2468 monitor and Canon PRO-100 printer
Corel programs: Paintshop Pro 2019 & bundle
Contact:

Re: Red Filtering

Post by CHoffman »

Remember that if the major source of light is red, there won't be much green or blue to work with. Just to show that, split the image into R, G & B and compare the images. I tried fixing it with PerfectlyClear, but I'm not experienced with that and only did OK. Then I just used PSP by adding three adjustment layers, white balance, histogram and brightness/contrast (I think). By using layers, you can easily go back to them and tweak until it looks right. Remember that you can tweak highlights, midtones and shadows separately. I usually also do local tone mapping, usually at the minimum settings. If you wanted the lamps to look different, you might have to go in with brushes and do them manually, something I've got zero skills with. Anyway-
Using PerfectlyClear
Using PerfectlyClear
Using PSP controls
Using PSP controls
Kathy_9
Site Admin
Posts: 2896
Joined: Tue Nov 30, 2010 12:44 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: 8th Generation Intel Core i7 8700 3 20 GHz
ram: 16GB
Video Card: NVIDIA GeForce RTX 2060 [6 GB GDDR6 dedicated]
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2TB
Monitor/Display Make & Model: HP EliteDisplay E243m 23.8-inch
Corel programs: PSPX2 ~2023; Painter 2018~23
Location: USA
Contact:

Re: Red Filtering

Post by Kathy_9 »

Nice work on the last one "using PSP controls".
PSPX9 | PSP2020 | PSP2021| PSP2022 | PSP2023 & PhotoMirage installed; PSPX | PSPX2 thru PSP2019 owned but not installed
http://www.flickr.com/photos/37153430@N03/
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Red Filtering

Post by Jean-Luc »

Kathy_9 wrote:Nice work on the last one "using PSP controls".
Yes, very good job !
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
okyou
Posts: 193
Joined: Fri Apr 26, 2013 6:52 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Video Card: onboard
sound_card: onboard
Hard_Drive_Capacity: 2TB
Corel programs: X9 Ultimate

Re: Red Filtering

Post by okyou »

Thank you very much..
okyou
Posts: 193
Joined: Fri Apr 26, 2013 6:52 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Video Card: onboard
sound_card: onboard
Hard_Drive_Capacity: 2TB
Corel programs: X9 Ultimate

Re: Red Filtering

Post by okyou »

Hello CHoffman,

I am just curious what is the PSP control adjustment number you use to achieve the red filter with your PSP controls ? I tried to archeive the same result but not successful.

Thanks for your idea and help.
CHoffman
Posts: 54
Joined: Sun Dec 10, 2017 1:55 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Z270-A
processor: i7700K 4.2 GHz
ram: 16.0 GB
Video Card: Nvidia K1200
sound_card: integrated or Nvidia or Emu
Hard_Drive_Capacity: 2T+SSD
Monitor/Display Make & Model: Viewsonic VP2468 monitor and Canon PRO-100 printer
Corel programs: Paintshop Pro 2019 & bundle
Contact:

Re: Red Filtering

Post by CHoffman »

I don't remember exactly, but this should get you close. Then just go back to the adjustment layers and play with the sliders until it looks the way you want. There are a couple things I do as a matter of course that don't directly address the color, but help the image.

Resize the image to 2600 x 1463
Unsharp mask 1.5 radius, 150 strength
Add adjustment layers:
1) white balance, mids = -80, 25 and 20, shadows = -20, 0 and 0, highlights = -20, 0 and 40
2) histogram, -3 for contrast and 1.20 gamma
3) local tone mapping 2, 8

So it's basically three adjustment layers, but most of what's needed is the white balance. The beauty of adjustment layers is you can select the layer, right click and select properties to change it until you're happy. Resize back down if desired. I usually like to work on images with some decent pixel density, even if they didn't start out that way because I think the processing is less visible when they're resized back down. Could be my imagination though.
okyou
Posts: 193
Joined: Fri Apr 26, 2013 6:52 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Video Card: onboard
sound_card: onboard
Hard_Drive_Capacity: 2TB
Corel programs: X9 Ultimate

Re: Red Filtering

Post by okyou »

Thank you very much for your help. :D :D
okyou
Posts: 193
Joined: Fri Apr 26, 2013 6:52 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Video Card: onboard
sound_card: onboard
Hard_Drive_Capacity: 2TB
Corel programs: X9 Ultimate

Re: Red Filtering

Post by okyou »

Hello CHoffman,

Your setting works out very good . Thanks for sharing. I encountered another problem maybe you can also shed some light on this subject too.
The photo below has too much glare, is there anyway to reduce the glare to improve the photo ?
temp2.jpg
Thanks
CHoffman
Posts: 54
Joined: Sun Dec 10, 2017 1:55 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Z270-A
processor: i7700K 4.2 GHz
ram: 16.0 GB
Video Card: Nvidia K1200
sound_card: integrated or Nvidia or Emu
Hard_Drive_Capacity: 2T+SSD
Monitor/Display Make & Model: Viewsonic VP2468 monitor and Canon PRO-100 printer
Corel programs: Paintshop Pro 2019 & bundle
Contact:

Re: Red Filtering

Post by CHoffman »

That's a tough one. You can't easily fix the direct lights, but you can improve the surrounding image a bit. Adjustment layers again- try fill light set to 30, 0 and 0. That will lighten up the shadows. Then a histogram adjustment with the contrast (compress/expand) at about -10 and the gamma to 0.94, or whatever you think is better, without becoming too harsh. I'm sure ten people would have ten opinions on what looks best, but sometimes that filling the shadows and then raising the contrast can work.
okyou
Posts: 193
Joined: Fri Apr 26, 2013 6:52 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 16GB
Video Card: onboard
sound_card: onboard
Hard_Drive_Capacity: 2TB
Corel programs: X9 Ultimate

Re: Red Filtering

Post by okyou »

This will give me enough to play with. Thanks for your suggestion.
Dijenga
Posts: 67
Joined: Wed Mar 06, 2013 12:26 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Micro Star International
processor: Advanced Micro Devices
ram: 8gb
Video Card: ati 5750
sound_card: Soundblaster X-Fi
Hard_Drive_Capacity: 1tb+
Monitor/Display Make & Model: 2 ea 23" HP Monitors
Corel programs: PSP(U) X8,X9,2018 VS(U) X8 & X10
Location: Arkansas, USA

Re: Red Filtering

Post by Dijenga »

okyou wrote:Hello CHoffman,

Your setting works out very good . Thanks for sharing. I encountered another problem maybe you can also shed some light on this subject too.
The photo below has too much glare, is there anyway to reduce the glare to improve the photo ?
The attachment temp2.jpg is no longer available
Thanks
Don't know if this is what you're looking for, but this is how I do it:

Add curves adjustment layer. On this image (using RGB channel), set anchor point dead center then move top right anchor down -25 and bottom left in 25. In the accompanying mask, large brush very soft paint out the glare. leaving it so that the glare is unchanged. The resulting image will be better if you do this.

Add new raster layer. Set blend mode to overlay. Make the foreground color black. Make brush about 3/4 the size of the offending area, and make the brush very soft (hardness 10 for me) and the opacity less than 50 percent and paint. Remember that if you "lift the brush" (stop painting) then any point you paint over will become darker.

If you paint too much, just grab the eraser (again large brush, very soft) and touch it up.
Attachments
glare_removal.jpg
Still learning, but here are a few of my favorite shots: https://www.500px.com/ccjr221
Dijenga
Posts: 67
Joined: Wed Mar 06, 2013 12:26 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Micro Star International
processor: Advanced Micro Devices
ram: 8gb
Video Card: ati 5750
sound_card: Soundblaster X-Fi
Hard_Drive_Capacity: 1tb+
Monitor/Display Make & Model: 2 ea 23" HP Monitors
Corel programs: PSP(U) X8,X9,2018 VS(U) X8 & X10
Location: Arkansas, USA

Re: Red Filtering

Post by Dijenga »

Simplest method I've used for removing the red cast involved a color correction method I've seen Blake Rudis use in one of his tutorials.

Created duplicate of original. Placed it in a group with the blend mode of the group set to "soft light" (this accomplishes the same goal as the "clipping mask" in the tutorial). Added an empty raster layer inside the group, above the copy of the original image.

Converted the copy of the original image to a negative image. Used the histogram palette (F7) and got the median color value for each color (red, green, blue) then filled the blank layer with that color.

Created a "Hue / Saturation / Lightness" adjustment layer above the raster layer I just filled.

Then I adjusted the Saturation and Lightness for the color level and brightness. Then I adjust the Hue layer until I get the color where I want it.

Of course, you were there and know what the original colors were, I wasn't but the method gets you where you want to go. From there you can make simple adjustments after flattening the image.
remove_red_cast.jpg
Tutorial by Blake Rudis follows.

[youtube]https://www.youtube.com/watch?v=OKXFB56DgJw[/youtube]
Still learning, but here are a few of my favorite shots: https://www.500px.com/ccjr221
Post Reply