Author Topic: Luminance or Lightness masks?  (Read 3459 times)

Offline Ignacio

  • PixInsight Old Hand
  • ****
  • Posts: 375
    • PampaSkies
Luminance or Lightness masks?
« on: 2014 January 18 08:51:23 »
Hi,

I notice that people use these terms loosely. But, what is best, say, when one wants to mask darker areas of an image to do a more aggressive denoising? Or to do an HDR or histogram equalization?

At first, I used to use lightness as the basis for a mask (also because is handy with the little button in the tools bar). But then I switched to luminance (Y component in the XYZ space), which I find more natural looking and less noisy, and it is a linear transformation as opposed to lightness (not sure if this matters at all, as to build a mask you do a histogram stretch anyway).

Is there a fundamental reason to use one over the other?

thanks,
Ignacio


Offline Phil Leigh

  • PixInsight Addict
  • ***
  • Posts: 220
Re: Luminance or Lightness masks?
« Reply #1 on: 2014 January 19 02:21:43 »
I'm confused... the little button the toolbar extracts the luminance component ( CIE L* ).

Offline Ignacio

  • PixInsight Old Hand
  • ****
  • Posts: 375
    • PampaSkies
Re: Luminance or Lightness masks?
« Reply #2 on: 2014 January 19 09:03:12 »
My understanding is that CIE L* is lightness (a non-linear transformation of the RGB space) and CIE Y is luminance (a linear transfomation of the RGB space).

Ignacio

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Luminance or Lightness masks?
« Reply #3 on: 2014 January 19 11:36:11 »
yah L* is lightness. this color theory stuff is pretty involved and quite confusing actually. the wikipedia pages dealing with this stuff is a start.

if you use RGBWorkingSpace to set the RGB weights to 1,1,1 before you extract L*, then the extracted image should be similar to L, luminance. but i think you then want to undo that change to the RGB since you still want the D50 coefficients in your RGB image.

rob

Offline Ignacio

  • PixInsight Old Hand
  • ****
  • Posts: 375
    • PampaSkies
Re: Luminance or Lightness masks?
« Reply #4 on: 2014 January 19 15:51:24 »
I typically do the 1:1:1 weighting to preserve linearity on luminance during deconvolution. Still, lightness and luminance look fairly different, and as I said, I find luminance more pleasing and less noisy (likely because lightness involves some nonlinear stretching).

Ignacio

Offline Phil Leigh

  • PixInsight Addict
  • ***
  • Posts: 220
Re: Luminance or Lightness masks?
« Reply #5 on: 2014 January 20 08:43:32 »
oooh - very interesting... using CIE Y as a mask looks very useful! - thanks