Color Correction

Moderator: jsachs

Marpel
Posts: 692
Joined: September 13th, 2009, 3:19 pm
What is the make/model of your primary camera?: Nikon D810
Location: Port Coquitlam, British Columbia

Color Correction

Post by Marpel »

I have an image which is comprised of three separate images - each image is of the same subject, a traffic light in fog at night, and each image was taken when the light was red, green and yellow so only one light is lit in each. I have comp'd the three together so the final image shows all three lit at the same time.

However, the final and all but one "slave" image, including ALL the raw files have been deleted (long story). The only image left is quite color un-balanced, and the surrounding fog has a heavy orange cast and the green light is actually blue (the red and yellow are acceptable).

I have spent a gajillion hours trying to correct the colors but, because the lights shine into the fog, each fades the farther from the source and as a result, any correction does not blend well around the "blend zones". The correction attempts have included the Color Balance and Color Correction Transforms. So far, I have reached a point where the fog is reasonably corrected (bit of a blue cast now), but the green light is still blue.

My question - Can anyone provide advice as to how to change the green light to green? I used the Color Correction and placed a number of points, but the result isn't working, mostly due to the gradual fall-off of the light into the fog. It is also difficult to know exactly where to move the points to the new locations as each source point is different in hue and tone. Hopefully that explanation makes sense.

Marv
jsachs
Posts: 4213
Joined: January 22nd, 2009, 11:03 pm

Re: Color Correction

Post by jsachs »

Any chance you could post a small version?

Adjusting the green and blue channels using Color Curves might be worth trying.
Jonathan Sachs
Digital Light & Color
Marpel
Posts: 692
Joined: September 13th, 2009, 3:19 pm
What is the make/model of your primary camera?: Nikon D810
Location: Port Coquitlam, British Columbia

Re: Color Correction

Post by Marpel »

I have two, image1 is prior to my attempt(s), and image2 after.
Attachments
image2.jpg
image2.jpg (27.92 KiB) Viewed 679 times
image1.jpg
image1.jpg (26.82 KiB) Viewed 679 times
Marpel
Posts: 692
Joined: September 13th, 2009, 3:19 pm
What is the make/model of your primary camera?: Nikon D810
Location: Port Coquitlam, British Columbia

Re: Color Correction

Post by Marpel »

Sorry, the files were a bit bigger than they perhaps should have been.

Marv
MarkT
Posts: 367
Joined: April 24th, 2009, 2:07 pm

Re: Color Correction

Post by MarkT »

Hi Marv,

Here's a quick attempt using Hue Saturation:
traffic_light_colour_shift_01.JPG
traffic_light_colour_shift_01.JPG (32.89 KiB) Viewed 675 times
With a little more time I'm sure the transitions can be smoothed out, and the shade of green could be modified.

Is this what you were going for or did i miss it? Cool shot BTW!
jsachs
Posts: 4213
Joined: January 22nd, 2009, 11:03 pm

Re: Color Correction

Post by jsachs »

Save the following (starting with "script1.0") as a text file, e.g. Marpel.script and then open it with PWP. It will ask for the name of the file to open and then process it.
Marpel.jpg
Marpel.jpg (29.23 KiB) Viewed 672 times
script 1.0

PWP_Version ″Picture Window Pro 8.0.397″ saved ″17-October-2023 17:37:41″

script_directory ″″
original_script_pathname ″D:\Temp\Marpel.script″
associated_image_pathname ″″
associated_original_pathname ″″ -1
top_level_index 10

color_management enabled 1 on_mismatch 1 on_batch_mismatch 1 on_multiple_mismatch 1 acs_profile ″sRGB Color Space Profile.icm″ gray_acs_profile ″Gamma 2.2.icm″ ar_profile ″AdobeRGB1998.icc″ gray_ar_profile ″Gamma 2.2.icm″ wcs_profile ″AdobeRGB1998.icc″ gray_wcs_profile ″Gamma 2.2.icm″ monitor_curves_file ″″ monitor_curves_enabled 0

image index 10 caption ″File Open - sample.tif″ comment ″″ saved_as_pathname ″″ saved_on_date ″″ parent -1 bypass -1 same_size 0 size_specific 0 breakpoint 0 n_inputs 0 n_masks 0 command ‴file_open 0 n_files 1 current 0 from_default 0 multiple 0 file1 ″″ time1 ″″‴
end_image

image index 11 caption ″Color Balance″ comment ″″ saved_as_pathname ″″ saved_on_date ″″ parent 10 bypass 0 same_size 1 size_specific 0 breakpoint 0 n_inputs 0 n_masks 1 command ‴color_balance 0 white 3 white_threshold 0 probesize 2 wsrc 6484ab wdst 8b8b8b amount 1 -1 0 1 ″Amount: ″ ″Mask″ display 2 sync_scroll 1 auto_preview 1‴
end_image

image index 12 caption ″Color Curves″ comment ″″ saved_as_pathname ″″ saved_on_date ″″ parent 11 bypass 0 same_size 1 size_specific 0 breakpoint 0 n_inputs 0 n_masks 1 command ‴color_curves 0 curve1 2 2 0 0 255 255 curve2 4 2 12 1 43 48 93 126 210 255 curve3 3 2 0 0 89 28 255 78 colorspace 2 component 1 b_curve1 2 2 0 0 249 243 b_curve2 2 2 0 0 255 255 b_curve3 3 2 0 0 92 94 245 219 b_colorspace 2 b_component 0 which_curve 1 mask_histogram 0 amount 1 1 2 1 ″Amount: ″ ″Mask″ display 2 sync_scroll 1 auto_preview 1‴
mask base_image 12 mask_number 0 base_input_index -1 initial_image -1 initial_mask_index -1 initial_level 0 caption ″Mask″ command ‴mask 0 nx 800 ny 534 mask_color 0 mask_transparency 3 mask_mode 0 mask16 0 mask_operation 0 initial_level 0 n_op 2 brush_settings 0 0 10 0 100 25 30 1 0 feather_settings 0 0 0 0 floodfill_settings 0 32 texture_settings 0 0 0 0 255 gradient_settings 0 2 0.000000 5 3 ffffff 1.000000 0 0 0 0 pinhole_settings 0 1 32 2 median_settings 0 1 1 blur_settings 0 232 curve_settings 0 2 2 0 0 255 255 0 shape_settings 0 2 2 0 0 255 255 separate_settings 1 0 0 -1 -1 1 0 -1 -1 1 0 -1 -1 1 0 -1 -1 1 0 -1 -1 1 0 -1 -1 1 0 -1 -1 1 0 -1 -1 0 ffffff -1 -1 1 ffffff -1 -1 1 ffffff -1 -1 1 ffffff -1 -1 1 ffffff -1 -1 1 ffffff -1 -1 1 ffffff -1 -1 1 ffffff -1 -1 color_range_settings 0 0 ff 0 1024 0 1024 0 1024 0 1024 0 1024 0 1024 command1 operation 0 mask_mode 0 mask_operation 0 n 481 0.0476 0.7261 0.0488 0.7261 0.0513 0.7261 0.0588 0.7261 0.0638 0.7261 0.0701 0.7261 0.0776 0.7261 0.0851 0.7261 0.0926 0.7261 0.1014 0.7261 0.1089 0.7261 0.1151 0.7261 0.1239 0.7261 0.1314 0.7261 0.1377 0.7261 0.1464 0.7261 0.1527 0.7261 0.1577 0.7298 0.1652 0.7298 0.1727 0.7298 0.179 0.7298 0.1865 0.7298 0.194 0.7298 0.2015 0.7298 0.209 0.7298 0.2165 0.7298 0.224 0.7298 0.2315 0.7298 0.239 0.7298 0.2441 0.7298 0.2516 0.7298 0.2578 0.7298 0.2628 0.7298 0.2703 0.7298 0.2766 0.7298 0.2816 0.7298 0.2891 0.7298 0.2966 0.7298 0.3029 0.7298 0.3116 0.7298 0.3179 0.7298 0.3254 0.7298 0.3342 0.7298 0.3404 0.728 0.3454 0.728 0.3554 0.7242 0.3605 0.7242 0.3667 0.7242 0.3755 0.7223 0.383 0.7223 0.3892 0.7223 0.398 0.7223 0.4055 0.7242 0.4118 0.7242 0.4205 0.7242 0.4268 0.7242 0.4318 0.7242 0.4355 0.7242 0.4418 0.7223 0.4456 0.7223 0.4506 0.7186 0.4543 0.7186 0.4581 0.7167 0.4643 0.7167 0.4693 0.7129 0.4756 0.7129 0.4793 0.7111 0.4844 0.7111 0.4906 0.7111 0.4944 0.7111 0.4994 0.7111 0.5031 0.7111 0.5069 0.7111 0.5131 0.7111 0.5169 0.7111 0.5207 0.7111 0.5257 0.7111 0.5294 0.7111 0.5332 0.7111 0.5394 0.7111 0.5444 0.7111 0.5507 0.7111 0.5582 0.7111 0.5657 0.7111 0.5707 0.7111 0.5782 0.7111 0.582 0.7129 0.5882 0.7129 0.5932 0.7129 0.5995 0.7148 0.6033 0.7148 0.607 0.7148 0.6108 0.7186 0.612 0.7186 0.6158 0.7186 0.6183 0.7205 0.6195 0.7205 0.622 0.7205 0.6233 0.7205 0.6258 0.7242 0.627 0.7242 0.6308 0.7261 0.6333 0.7261 0.6345 0.7261 0.637 0.7298 0.6408 0.7298 0.6446 0.7298 0.6483 0.7298 0.6521 0.7298 0.6571 0.7298 0.6608 0.7298 0.6646 0.7298 0.6683 0.7298 0.6708 0.7298 0.6721 0.7298 0.6746 0.7317 0.6746 0.7298 0.6746 0.728 0.6758 0.7242 0.6783 0.7223 0.6821 0.7167 0.6859 0.7111 0.6871 0.7073 0.6896 0.7054 0.6909 0.7017 0.6934 0.7017 0.6946 0.6998 0.6946 0.6961 0.6971 0.6942 0.6984 0.6904 0.6984 0.6886 0.7021 0.6829 0.7046 0.6792 0.7059 0.6773 0.7096 0.6717 0.7134 0.666 0.7159 0.666 0.7171 0.6623 0.7196 0.6604 0.7209 0.6567 0.7209 0.6548 0.7234 0.651 0.7247 0.6454 0.7272 0.6398 0.7284 0.6379 0.7284 0.6323 0.7309 0.6266 0.7322 0.6173 0.7347 0.6116 0.7359 0.606 0.7384 0.6004 0.7397 0.5929 0.7397 0.5891 0.7422 0.5835 0.7434 0.5779 0.7434 0.576 0.7459 0.5704 0.7459 0.5647 0.7459 0.561 0.7472 0.5591 0.7472 0.5497 0.7497 0.5478 0.7497 0.5422 0.7497 0.5366 0.7509 0.5328 0.7509 0.5272 0.7509 0.5216 0.7509 0.5159 0.7534 0.5103 0.7534 0.5028 0.7534 0.4972 0.7547 0.4916 0.7547 0.4859 0.7547 0.4803 0.7572 0.4747 0.7572 0.4653 0.7572 0.4634 0.7572 0.4578 0.7584 0.4484 0.7584 0.4465 0.7584 0.4409 0.761 0.4353 0.761 0.4315 0.761 0.4296 0.761 0.4259 0.761 0.424 0.761 0.4203 0.7597 0.4184 0.7597 0.4146 0.7597 0.4128 0.7597 0.4071 0.7597 0.4034 0.7597 0.4015 0.7572 0.3959 0.7572 0.3921 0.7572 0.3902 0.7559 0.3846 0.7559 0.3809 0.7559 0.379 0.7534 0.3734 0.7522 0.3677 0.7497 0.364 0.7484 0.3583 0.7459 0.3527 0.7459 0.3508 0.7422 0.3452 0.7409 0.3396 0.7384 0.3358 0.7347 0.3302 0.7334 0.3283 0.7297 0.3227 0.7272 0.3189 0.7234 0.3133 0.7222 0.3114 0.7184 0.3058 0.7146 0.3002 0.7121 0.2964 0.7084 0.2908 0.7046 0.2852 0.7034 0.2833 0.6996 0.2777 0.6971 0.272 0.6959 0.2683 0.6934 0.2627 0.6921 0.2608 0.6896 0.257 0.6896 0.2552 0.6884 0.2514 0.6884 0.2495 0.6859 0.2458 0.6846 0.2439 0.6821 0.2383 0.6809 0.2345 0.6783 0.2326 0.6771 0.227 0.6746 0.2214 0.6708 0.2158 0.6671 0.2101 0.6658 0.2045 0.6633 0.2008 0.6621 0.1989 0.6596 0.1951 0.6596 0.1932 0.6583 0.1895 0.6558 0.1876 0.6546 0.1839 0.6521 0.182 0.6508 0.1782 0.6483 0.1764 0.6471 0.1726 0.6433 0.167 0.6408 0.1651 0.637 0.1595 0.6358 0.1557 0.632 0.1501 0.6258 0.1445 0.622 0.1426 0.6183 0.137 0.6145 0.1332 0.6133 0.1313 0.6095 0.1276 0.607 0.1257 0.6033 0.122 0.602 0.1201 0.5995 0.1201 0.5957 0.1144 0.5945 0.1144 0.5882 0.1107 0.5845 0.1088 0.5807 0.1051 0.5757 0.1032 0.5695 0.0994 0.562 0.0976 0.5544 0.0919 0.5469 0.0882 0.5432 0.0863 0.5357 0.0826 0.5307 0.0807 0.5269 0.0807 0.5194 0.0769 0.5131 0.0769 0.5081 0.075 0.5006 0.075 0.4944 0.075 0.4894 0.075 0.4793 0.075 0.4743 0.075 0.4668 0.075 0.4568 0.075 0.4518 0.075 0.4443 0.075 0.4368 0.075 0.4293 0.075 0.423 0.075 0.4155 0.075 0.4105 0.075 0.4043 0.0769 0.3992 0.0769 0.393 0.0769 0.388 0.0769 0.378 0.0769 0.373 0.0769 0.3667 0.0769 0.3617 0.0769 0.3554 0.0769 0.3517 0.0769 0.3467 0.0769 0.3404 0.0769 0.3367 0.0769 0.3292 0.0769 0.3242 0.0769 0.3204 0.0769 0.3129 0.0769 0.3066 0.0769 0.3029 0.0769 0.2954 0.0769 0.2904 0.0769 0.2841 0.0788 0.2766 0.0788 0.2716 0.0788 0.2653 0.0826 0.2603 0.0826 0.2541 0.0826 0.2491 0.0826 0.2416 0.0826 0.2353 0.0844 0.2303 0.0844 0.224 0.0882 0.219 0.0882 0.2128 0.0882 0.2078 0.0901 0.2003 0.0938 0.1965 0.0938 0.1902 0.0957 0.1852 0.0957 0.1815 0.0994 0.1752 0.0994 0.1715 0.1013 0.1677 0.1013 0.164 0.1051 0.1589 0.1069 0.1552 0.1069 0.1514 0.1107 0.1489 0.1107 0.1452 0.1126 0.1414 0.1163 0.1402 0.1163 0.1377 0.1182 0.1364 0.122 0.1327 0.1238 0.1302 0.1276 0.1264 0.1295 0.1214 0.1351 0.1176 0.1388 0.1114 0.1407 0.1064 0.1445 0.1026 0.1463 0.0964 0.1501 0.0889 0.1557 0.0839 0.1576 0.0763 0.1614 0.0688 0.1632 0.0613 0.167 0.0551 0.1726 0.0463 0.1782 0.0401 0.1801 0.0325 0.1839 0.025 0.1895 0.0213 0.1914 0.0175 0.1951 0.0138 0.2008 0.01 0.2026 0.0088 0.2064 0.0088 0.2083 0.0063 0.212 0.005 0.2139 0.0025 0.2195 0.0025 0.2233 0.0013 0.2289 0 0.2364 0 0.242 0 0.2477 0 0.257 0 0.2645 0 0.2702 0 0.2795 0 0.2852 0 0.2927 0 0.2983 0 0.3077 0 0.3133 0 0.3246 0 0.3302 0 0.3415 0 0.3527 0 0.3602 0 0.3715 0 0.3809 0 0.3884 0 0.3977 0 0.4053 0 0.4146 0 0.4221 0 0.4315 0 0.4371 0 0.4447 0 0.454 0 0.4615 0 0.4672 0 0.4784 0 0.4878 0 0.4953 0 0.5047 0 0.5122 0 0.5216 0 0.5291 0 0.5328 0 0.5385 0 0.546 0 0.5553 0 0.561 0 0.5685 0 0.5741 0 0.5797 0 0.5891 0 0.5947 0 0.6004 0 0.606 0 0.6116 0 0.6135 0 0.6229 0 0.6248 0 0.6304 0 0.6398 0 0.6454 0 0.651 0 0.6585 0 0.6623 0 0.6679 0 0.6698 0 0.6754 0 0.6811 0 0.6867 0 0.6904 0 0.6961 0 0.6979 0 0.7017 0 0.7036 0 0.7073 0 0.7092 0 0.7129 0 0.7148 0 0.7186 0 0.7205 0 0.7242 0 0.7261 0 0.7298 0 0.7298 0 0.7317 0 0.7317 0 0.7317 0 0.7355 0 0.7355 0.0038 0.7355 0.0075 0.7373 0.0113 0.7373 0.015 0.7373 0.0175 0.7411 0.0188 0.7411 0.0213 0.7411 0.025 0.743 0.0288 0.743 0.0325 0.7411 0.0375 0.7411 0.0438 0.7411 0.0488 0.7411 0.0526 0.7411 0.0563 0.7392 0.0588 0.7392 0.0588 0.7355 0.0588 0.7355 command2 operation 6 mask_mode 0 mask_operation 6 blur_radius 232 ‴
end_image

end 3 1 6 10
Jonathan Sachs
Digital Light & Color
Marpel
Posts: 692
Joined: September 13th, 2009, 3:19 pm
What is the make/model of your primary camera?: Nikon D810
Location: Port Coquitlam, British Columbia

Re: Color Correction

Post by Marpel »

Thanks for the replies,

I was actually trying to change the green light in the second (bluer one), but I think the mechanisms should be the same. I will actually look to change the green in both versions to see which looks the best.

MarkT, I have never used the Hue Saturation transform, so it will take me a bit to understand its workings. Thanks for your help.

Jonathan, You are asking me to do something way above my pay grade. I highlighted the section you described but when I do a File>Save As, I do not get an option to save as a text file, I only get the choice of Page Source or Web Archive (in fact, that is on a Mac, if I try to do same on my image editing PC, I can't even conjure up A Save As, just a Copy) . The other thing is, when I highlighted just the section, and saved as an HTML (thinking I could convert after the fact), I actually get the entire thread, not just your contribution.

Marv
MarkT
Posts: 367
Joined: April 24th, 2009, 2:07 pm

Re: Color Correction

Post by MarkT »

Hi Marv,

The Hue Saturation transformation is almost too easy to use, and don't forget about the "?" button for detailed help.

Highlight the text only on Jonathan's message, copy the text, open Notepad and paste the text in a new blank document. File/save the Notepad file as "light_changing.script" (or some other filename that makes sense to you).
jsachs
Posts: 4213
Joined: January 22nd, 2009, 11:03 pm

Re: Color Correction

Post by jsachs »

It's pretty easy.

Highlight the text in the message starting with script 1.0 all the way to the end of the message.
Copy the highlighted text to the clipboard (Ctrl-C).
Open Notepad.
Paste the text into Notepad (Ctrl-V).
Save as a text file (File/Save As...) Marpel.script.
Close Notepad.
Open PWP
Script/Open Script...
Marpel.script
Jonathan Sachs
Digital Light & Color
jsachs
Posts: 4213
Joined: January 22nd, 2009, 11:03 pm

Re: Color Correction

Post by jsachs »

I figured out how to allow script, workspace script and zip files to be uploaded as attachments to messages in this forum. There are file size limitations (currently 600kb) that I can adjust later if this proves too restrictive.

To download a script attachment, click on it and it should be downloaded to and eventually appear in your Downloads folder. From there you can move it to wherever you want.
Attachments
Marpel.script
(8.9 KiB) Downloaded 46 times
Jonathan Sachs
Digital Light & Color
Post Reply