Jump to content
You must now use your email address to sign in [click for more info] ×

Colourise a black and white photo in Affinity Photo


Recommended Posts

Everything you said is OK. But, explain to me how the scanner found those RGB values in grayscale image?

It is mostly because the scanned photo itself is not totally free of coloration. This could be due to aging of the emulsion, oils or other contaminates introduced by handling, reactions with cleaning agents used to prepare the photo, & so on. It is also possible there was a small amount of contamination on the glass of the scanner, too little to see except maybe under a very bright light, or there was a small amount of fluctuation in the color temperature of the scanner's light source during the scan.

 

Whatever the cause, the important thing here is the coloration has nothing to do with the colors of the photographed object. It is all from artifacts in the scanning process or the print being scanned.

 

That's why for best results, when scanning a "black & white" (actually grayscale) photo, the scanner should be set to grayscale mode.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Just guessing I may say. Nothing exactly.

All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows.
15” Dell Inspiron 7559 i7 Windows 10 x64 Pro Intel Core i7-6700HQ (3.50 GHz, 6M) 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) NVIDIA GeForce GTX 960M 4 GB GDDR5 500 GB SSD + 1 TB HDD UHD (3840 x 2160) Truelife LED - Backlit Touch Display
32” LG 32UN650-W display 3840 x 2160 UHD, IPS, HDR10 Color Gamut: DCI-P3 95%, Color Calibrated 2 x HDMI, 1 x DisplayPort
13.3” MacBook Pro (2017) Ventura 13.6 Intel Core i7 (3.50 GHz Dual Core) 16 GB 2133 MHz LPDDR3 Intel Iris Plus Graphics 650 1536 MB 500 GB SSD Retina Display (3360 x 2100)

Link to comment
Share on other sites

The bottom line is: can you identify the colours in their clothing, and can you say whether the foliage in the background is green or brown? I can't.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

I can't also. But maybe "The new kids in the block" can do it?  ;)

All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows.
15” Dell Inspiron 7559 i7 Windows 10 x64 Pro Intel Core i7-6700HQ (3.50 GHz, 6M) 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) NVIDIA GeForce GTX 960M 4 GB GDDR5 500 GB SSD + 1 TB HDD UHD (3840 x 2160) Truelife LED - Backlit Touch Display
32” LG 32UN650-W display 3840 x 2160 UHD, IPS, HDR10 Color Gamut: DCI-P3 95%, Color Calibrated 2 x HDMI, 1 x DisplayPort
13.3” MacBook Pro (2017) Ventura 13.6 Intel Core i7 (3.50 GHz Dual Core) 16 GB 2133 MHz LPDDR3 Intel Iris Plus Graphics 650 1536 MB 500 GB SSD Retina Display (3360 x 2100)

Link to comment
Share on other sites

Just guessing I may say. Nothing exactly.

Try this: In AP add an HSL adjustment & turn up the saturation on the master all the way. This will intensify the color variations. Do you see anything that corresponds even vaguely to the colors you would expect the objects in the photo to have?

 

I can only do that with the tiny jpeg you uploaded, but even at that low resolution there is evidence of two reddish orange spots on the edges that probably are from oils deposited on the print during handling. If you do this with the original high resolution scan you should see more clearly what does & does not correlate to any colors of the objects in the photo vs. handling, aging of the photo, etc.

 

So yes, this is just guessing & nothing about it is exact, but that is the point. There is no way to extract accurate color information that wasn't recorded in the photo itself when it was taken. You might be able to reconstruct a vestigial amount of it if you have access to very detailed info about the camera, the lens, the film, & the lighting conditions, but that isn't likely & it is (as was mentioned earlier) an external reference, not anything you can get from the scan alone.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Just guessing I may say. Nothing exactly.

 

What's your best guess about the colouring of the attached image before I desaturated it?

post-8358-0-09482000-1469874167_thumb.jpg

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

What's your best guess about the colouring of the attached image before I desaturated it?

 

Please, reread this thread again if you have to. Don't just post to increase your number of posts.  :)

All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows.
15” Dell Inspiron 7559 i7 Windows 10 x64 Pro Intel Core i7-6700HQ (3.50 GHz, 6M) 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) NVIDIA GeForce GTX 960M 4 GB GDDR5 500 GB SSD + 1 TB HDD UHD (3840 x 2160) Truelife LED - Backlit Touch Display
32” LG 32UN650-W display 3840 x 2160 UHD, IPS, HDR10 Color Gamut: DCI-P3 95%, Color Calibrated 2 x HDMI, 1 x DisplayPort
13.3” MacBook Pro (2017) Ventura 13.6 Intel Core i7 (3.50 GHz Dual Core) 16 GB 2133 MHz LPDDR3 Intel Iris Plus Graphics 650 1536 MB 500 GB SSD Retina Display (3360 x 2100)

Link to comment
Share on other sites

Gray is gray us gray is gray. Of course these gray values have corresponding RGB values, because you can define every gray value as a RGB value. 50% gray, for example is RGB 128, 128, 128 – of something like that, because normally one has to take into account the color profile, which us used. One more problem: Different color tones may have the same gray tone – a big problem, when converting RGB into gray scale. Is 233, 233, 233 corresponding RGB value in a gray scale image cyan blue, or middle green? You can't re-calculate it. No way.

If you assign every gray scale tone or every corresponding RGB valua a specific RGB color, you get – the hell of a mess! Just because the well known 16,7 million of displayable RGB colors match 256 gray tones. That is the bitter truth.

Link to comment
Share on other sites

Thank you, mac_heibu  :wub:

All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows.
15” Dell Inspiron 7559 i7 Windows 10 x64 Pro Intel Core i7-6700HQ (3.50 GHz, 6M) 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) NVIDIA GeForce GTX 960M 4 GB GDDR5 500 GB SSD + 1 TB HDD UHD (3840 x 2160) Truelife LED - Backlit Touch Display
32” LG 32UN650-W display 3840 x 2160 UHD, IPS, HDR10 Color Gamut: DCI-P3 95%, Color Calibrated 2 x HDMI, 1 x DisplayPort
13.3” MacBook Pro (2017) Ventura 13.6 Intel Core i7 (3.50 GHz Dual Core) 16 GB 2133 MHz LPDDR3 Intel Iris Plus Graphics 650 1536 MB 500 GB SSD Retina Display (3360 x 2100)

Link to comment
Share on other sites

Please, reread this thread again if you have to. Don't just post to increase your number of posts.  :)

 

LOL. No, I don't have to re-read the thread, and I'm not just trying to increase my post count!

 

I was actually being a bit mischievous. The image I attached was one of three that I obtained by separating out the R, G and B channels in this image from Pixabay; that one is from the blue channel, so there was nothing but blue in it, but (as you will see from the explanation now offered by 'mac_heibu') there's no way the "new kids on the block" could have told you that.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

LOL. No, I don't have to re-read the thread, and I'm not just trying to increase my post count!

 

I was actually being a bit mischievous. The image I attached was one of three that I obtained by separating out the R, G and B channels in this image from Pixabay; that one is from the blue channel, so there was nothing but blue in it.

 

I don't think it is so easy or obvious. That is were the Affinity team comes into play.  :)

All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows.
15” Dell Inspiron 7559 i7 Windows 10 x64 Pro Intel Core i7-6700HQ (3.50 GHz, 6M) 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) NVIDIA GeForce GTX 960M 4 GB GDDR5 500 GB SSD + 1 TB HDD UHD (3840 x 2160) Truelife LED - Backlit Touch Display
32” LG 32UN650-W display 3840 x 2160 UHD, IPS, HDR10 Color Gamut: DCI-P3 95%, Color Calibrated 2 x HDMI, 1 x DisplayPort
13.3” MacBook Pro (2017) Ventura 13.6 Intel Core i7 (3.50 GHz Dual Core) 16 GB 2133 MHz LPDDR3 Intel Iris Plus Graphics 650 1536 MB 500 GB SSD Retina Display (3360 x 2100)

Link to comment
Share on other sites

I see that you replied while I was editing my post to add:

 

but (as you will see from the explanation now offered by 'mac_heibu') there's no way the "new kids on the block" could have told you that

 

I don't think the Affinity team can do any more about this than your "new kids on the block". :)

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

Thank you, mac_heibu  :wub:

I'm not sure why you are thanking mac_heibu for saying pretty much the same thing we have been saying all along in a slightly different way.

 

A grayscale image has no color channels, no color information at all, just levels of gray. If it is an 8 bit image it can have up to 256 levels of gray. If it is a 16 bit image it can have up to 65536 levels, but there is no way to map those levels to 8 or 16 bit color channels to extract any color information from the grayscale image because there is no color information in it. Period.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Hey Alfred,

 

You are looking very gray today. Feeling OK?  :lol:

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

I was trying to finish this thread in which a lot of post are almoust repeating. Obviously, some of the users are lazy to read the thread from the start.  :D

All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows.
15” Dell Inspiron 7559 i7 Windows 10 x64 Pro Intel Core i7-6700HQ (3.50 GHz, 6M) 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) NVIDIA GeForce GTX 960M 4 GB GDDR5 500 GB SSD + 1 TB HDD UHD (3840 x 2160) Truelife LED - Backlit Touch Display
32” LG 32UN650-W display 3840 x 2160 UHD, IPS, HDR10 Color Gamut: DCI-P3 95%, Color Calibrated 2 x HDMI, 1 x DisplayPort
13.3” MacBook Pro (2017) Ventura 13.6 Intel Core i7 (3.50 GHz Dual Core) 16 GB 2133 MHz LPDDR3 Intel Iris Plus Graphics 650 1536 MB 500 GB SSD Retina Display (3360 x 2100)

Link to comment
Share on other sites

I was trying to finish this thread in which a lot of post are almoust repeating. Obviously, some of the users are lazy to read the thread from the start.  :D

 

What is obvious & to whom is a ... wait for it ... gray area. 

 

(Somebody had to say it. It might as well be me.)  :lol:

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Hey Alfred,

 

You are looking very gray today. Feeling OK?  :lol:

 

rotfl.gif

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

What is obvious & to whom is a ... wait for it ... gray area. 

 

(Somebody had to say it. It might as well be me.)  :lol:

 

Well, I'm just glad it wasn't me! :D

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

  • 5 months later...
  • 8 months later...
On 27.7.2016 at 8:33 PM, MBd said:

William, no Software in the world will ever Color a black and white image by itself :D (unless it is RAW)

I will admit....

https://www.reddit.com/r/InternetIsBeautiful/comments/4t8cuk/use_deep_learning_algorithms_to_add_color_to/

 

you can try for yourself 

http://demos.algorithmia.com/colorize-photos/

 

:)

 

advice on how to do it in AP

https://forum.affinity.serif.com/index.php?/topic/19493-how-to-colorize-black-and-white-photos/&do=findComment&comment=231330

 

 

Link to comment
Share on other sites

Landscape Pro has a simple way of letting you say 'this is a tree, this is a house' etc. Maybe this idea could be used for some intelligent colouration. AI should also be able to do such things. If it can recognized people, buildings and trees should be relatively simple.

Dave Straker

Cameras: Sony A7R2, RX100V

Computers: Win10: Chillblast i9 Custom + Philips 40in 4K & Benq 23in; Surface Pro 4 i5; iPad Pro 11"

Favourite word: Aha. For me and for others.

Link to comment
Share on other sites

28 minutes ago, MBd said:
On 7/27/2016 at 1:33 PM, MBd said:

William, no Software in the world will ever Color a black and white image by itself :D (unless it is RAW)

I will admit....

So called "deep learning" has the potential to do much more than colorize photos. If an artificial neural network can learn to do that, then they should be able to learn to do things like make & refine pixel selections or convert raster images to high quality vector tracings that are comparable to or possibly better than what humans can do using manual methods.

 

This could be a real game changer. Imagine a selection brush that is "smart" enough to select clothing or a person, or objects like trees or backgrounds, depending on what a user drags it across on a photo, or a "tracer" brush that can extract, vectorize, & group selected parts of an image.

 

The hard part (besides doing the training) is developing algorithms that can do all this locally, without sending anything to a remote processing service.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.