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

Inverting "L" channel in LAB Colour space


Recommended Posts

I saw a recent YouTube video of someone using a Lightbox to take macro images. They looked great but looked better when they inverted the white background to become black. The method they used to do this in photoshop was relatively straight forward. They changed the colour gamut to LAB profile for the image they were editing in PS. The "L" channel holds the black and white details and there is an option in PS to invert this channel. I am trying to find a way to replicate this process with Affinity Photo and cannot see to find a way to invert a channel.

Anyone have any ideas?

Thanks

Link to comment
Share on other sites

If I understand what you want to do correctly, in AP change the color format to LAB/16 via the Document > Convert Format/ICC Profile menu option, then in the Channels Studio panel, make sure the pixel layer (probably named "Background by default) is selected, right click on Lightness (probably named "Background Lightness") & choose "Invert" from the menu that pops up.

If there are foreground objects you do not want inverted, first select them with the 'marching ants' selection tools, refine that selection as needed, & invert the selection (via the Select > Invert Pixel Selection menu item) before doing the above. (You can do it the other way around by selecting all the background, excluding the foreground, but it is often easier to select the foreground & invert that.)

Then do a copy & paste to add the foreground as a separate layer (so it won't be inverted), reselect the original background layer & then invert that layer via the Channels panel.

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

Hi thanks for this however was not able to do what you said.

 

From the screenshot below the image is loaded in LAB colour profile. 

The channels available are:

  • Composite Lightness
  • Composite AOpponent
  • Composite BOpponent
  • Composite Alpha

If I right click on the Composite Lightness channel whilst back ground pixel is selected the choices I get are as follows:

  • Toggle Visible
  • Toggle Editable
  • Load to PIxel Selection
  • Add to PIxel Selection
  • Subtract from Pixel Selection
  • Intersect with Pixel Selection
  • Create Spare Channel

There is no option to invert channel.

An example of what a finished product looks like before and after inversion is shown below (Not my work). As you can see from the example given by inverting white to black effectively effects all of the original colours - this is the effect I am trying to achieve with the first image below.

"Invert Channel" does not appear when searching for help?

Any ideas would be appreciated.

 

 

 

 

Screenshot 2020-05-23 at 13.32.04.jpg

Screenshot 2020-05-21 at 15.29.25.png

Screenshot 2020-05-21 at 15.30.12.png

Link to comment
Share on other sites

1 hour ago, Adil _P said:

The channels available are:

  • Composite Lightness
  • Composite AOpponent
  • Composite BOpponent
  • Composite Alpha

With the "Background (Pixel)" layer selected, try scrolling down in the Channels panel. Below the  composite channels, you should see 5 more items, including the "Background Lightness" item I mentioned.

992054216_Channelspanel.jpg.95a027071ff4e22e198dfd8f407ebe4d.jpg

BTW, I find it useful to set the "Show scroll bars" option in System Preferences > General to "Always" on my Macs so there is never any confusion over whether or not I am seeing everything there is in a window.

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

An alternative solution: open the image file, add a Curves Adjustment, change the adjustment's mode to LAB, change its target channel from Master to Lightness, and then invert the curve (drag bottom left node to top left and drag top right node to bottom right).

502277402_ScreenShot2020-05-23at19_24_39.png.6fc6085dbfce3d2835b0e9042520adb7.png

 

Link to comment
Share on other sites

45 minutes ago, anon2 said:

An alternative solution: open the image file, add a Curves Adjustment, change the adjustment's mode to LAB, change its target channel from Master to Lightness, and then invert the curve (drag bottom left node to top left and drag top right node to bottom right).

Not just an alternative but a better one, since 1) there is no need to change the document format to LAB & 2) this curve can be added to the AP Adjustments panel as a preset.

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.