Author Topic: Selective color tool  (Read 11977 times)

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Selective color tool
« Reply #15 on: 2010 February 23 08:06:31 »
Hi all,

I have been thinking about this whole subject of 'channel mixing' as well.

In my mind, I visualise a 'grand channel mixer'. This would allow a user to select from a bunch of open images (no real need to work from files I don't think). There would be four 'channels' that will be combined by the LRGB Process, as it stands. No need to re-invent THAT particular wheel. The LRGB Combine process is a 'superset' of the RGB Combine process anyway, so if a user does not want to include anything in the Lu channel, that is fine and simple anyway.

For each of the four 'input channels', the user would then pick appropriate images for inclusion in the blend. And, for each image allocated to a channel, the 'percentage' of inclusion could be adjusted by a slider.

So, by way of example, consider seven source images that a user wishes to 'blend'. Let us assume that they have somehow been obtained, and are now available as:-
Lu
Rd
Gn
Bu
Ha
S3
O2

The user wishes to do a four-channel blend, and decides to try the following
Lu = 50% Lu + 50% Ha, with a final contribution of 30% to the LRGB blend
Rd = 50% Rd + 50% Ha
Gn = 30% Gn + 70% S3
Bu = 30% Bu + 30% Ha + 40% O2

The appropriate images would be allocated to each 'master channel', and the percentage sliders adjusted accordingly
The final combine would reduce the overall Lu combination to 30%, and the LRGB process would be invoked - producing an output image for the user to assess.

However, further options, at the 'channel blend' stage, might allow the user to maintain the 'shape' of the channel histogram, by referencing the channel to a selected image's histogram. That way, the individual Minimums, Medians, Maximums etc, for each 'blend image' in a channel could be adapted such that the overall histogram SHAPE remains 'similar' to the 'shape' of the referenced image - a form of 'normalising' if you like - applied on a channel by channel basis. I see that this would help to keep colour 'balance' under control, even though colour 'content' could be changing significantly (but I may be wrong!!)

I used this approach recently when I multiplied my pre-processed M1 Crab Ha channel with my pre-processed M1 Crab Rd channel (which had been extracted from an image that I had 'worked on' in RGB space, starting from a standard Rd+Gn+Bu dataset). This meant that I was adding back in a modified Rd component that wasn't, overall, any 'redder' than the original extracted channel. It had 'more detail' (due to the included Ha data), and the detail was available in a different 'spatial position' on the image, but the Median position and general 'width' of the Histo curve were, more or less, 'in the same position' as for the original Rd only channel.

Now, I may be completely wrong in this approach - I haven't had enough raw images to work with - but certainly, to me, it 'seems' to be a valid process path to follow.

Does anybody out there have better experience? Carlos? You guys must have to consider this problem in exquisite detail when you are working with your 'professional' data.

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Selective color tool
« Reply #16 on: 2010 February 23 08:43:48 »
Right on Niall  8)

Max

Offline Silvercup

  • PixInsight Addict
  • ***
  • Posts: 187
Re: Selective color tool
« Reply #17 on: 2010 February 23 09:50:33 »
Hi Max, Nial, Sander:

That is the idea. For the moment you can choose in the script HAlpha Image, OIII Image and SII Image (views). You can assign any RGB color to these views or mark Hubble palette or CFHT palettte for automatic color assignation. You can blend each channel with the other ones, Vgr HAlpha + 25% OIII + 5% SII.

The script do the pixelmath operations with blends channels an then you can assign a independent weight for each channel (HAlpha, OIII, SII).

There are two sliders for STF function. When you hit "Generate" button the script do the operations, STF and try to correct background with ImageCombined-med(ImageCombined), so you can see the aproximate image result.

If you see interesting to add other channels (R G B NII, Etc) I can do.

A hint for a better STF control would be appreciate because Sliders aren't very precise.

Edit:

Because script has intensive pixelmath operations I am not considering Realtime Preview. Script generate a new Imagewindow with the result. ¿Can I open the new window at 0,0?
 

Best, Silvercup.
« Last Edit: 2010 February 23 09:58:29 by Silvercup »

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Selective color tool
« Reply #18 on: 2010 February 23 12:29:36 »
I was thinking on a different approach. Take each image as if it is a "vector". We choose a particular direction for it (for example, it has to be 550nm, with a given strength or scale). Then, is just a matter of translate that into RGB coordinates, and finally, just add each vector.
Sounds elegant, it may work... but, I'm not sure :D
Regards,

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

Offline Silvercup

  • PixInsight Addict
  • ***
  • Posts: 187
Re: Selective color tool
« Reply #19 on: 2010 February 23 16:18:11 »
Hi, I just post a preview of Narroband Combination Script on Software Development.

Best, Silvercup

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Selective color tool
« Reply #20 on: 2010 February 23 16:58:56 »
Sounds great Silvercup. I'm always interested in finding different ways of doing things.
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: Selective color tool
« Reply #21 on: 2010 February 23 19:38:43 »
Check out software development section for Silvercup's preview

Max