Author Topic: RGBWorkingSpace and Histogram  (Read 4395 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
RGBWorkingSpace and Histogram
« on: 2010 July 29 06:29:13 »

Hi,

sorry, bunch of questions in one post.

When I use the histogram transformation in RGB/K mode, am I modifying L or am I simply applying the same curve to R G and B? It seems to be the latter which means you can't curve L with HistogramTransform. If so, why?

When I load a new RGB image do I need to set the RGBWorkingSpace or is the default setting assumed until I modify it?
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: RGBWorkingSpace and Histogram
« Reply #1 on: 2010 July 29 07:40:01 »
I think you effect all RGB channels with the same curve. I am not sure why there is not a seperate L ( like curves).

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: RGBWorkingSpace and Histogram
« Reply #2 on: 2010 July 29 07:41:30 »
I think each image gets the default RGB working space unless you apply a custom one.

Max

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: RGBWorkingSpace and Histogram
« Reply #3 on: 2010 July 29 07:54:15 »
Thanks Max. As you've heard me say I've been telling people there's no need to extract L, muck with it and re-apply it. If there's no way to do an L histogram I'll have to change my story :)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: RGBWorkingSpace and Histogram
« Reply #4 on: 2010 July 29 20:13:02 »
Well... in fact there is no way to do a L histogram transform :) You may write a script to implement that ;)

Just for curiosity... why do you want to perform a Luminance HT? Black/White point setting? MTF?
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: RGBWorkingSpace and Histogram
« Reply #5 on: 2010 July 29 20:16:36 »
Just checked, and you may do an automatic black/white points setting (autozero) to the luminance with the Rescale process.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: RGBWorkingSpace and Histogram
« Reply #6 on: 2010 July 29 21:09:22 »
As I explained I've been telling people they don't have to extract L out of RGB before processing because most processes allow you to work on just the L component. Since you do this:

- extract L
- HT on L
- reapply L

I imagine doing HT on L should be possible. Even intuitively it doesn't sound strange to want to map brightness levels. Curves does it, why can't HT?
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: RGBWorkingSpace and Histogram
« Reply #7 on: 2010 July 29 21:53:41 »
Yes, it is possible (theorically), but I don't see the need/point on processing a synthetic luminance with HT instead of working over the RGB channels. I'm thinking on an aggressive HT, like the one we use to delinearize data. In most cases, it just doesn't work. The saturation levels get screwed (too low). You'll still need to work on it. By the other way, working over the RGB works quite well, and as long as you use similar settings, color balance is well maintained.
On the Curves process, by the other hand, contrast changes to the luminance work better than RGB because color balance is ensured, while the RGB may distort the balances at different zones. Also the changes to the saturation are better handled there.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com