Author Topic: HaRGB  (Read 12328 times)

Offline papaf

  • PixInsight Addict
  • ***
  • Posts: 182
HaRGB
« on: 2009 September 25 01:54:02 »
Hi all,
I'm approaching the ending of my 30 days trial, and this is something that still escapes me. How's the best method of handling an HaRGB image composition in PI?
What I'm trying to do is replicate Starizona's method of blending Ha into the red channel before composing the final RGB image. I just can't find the way to blend the two image together.
Or maybe is there another way altogether to do this in PI?

Thanks!

Offline vicent_peris

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 988
    • http://www.astrofoto.es/
Re: HaRGB
« Reply #1 on: 2009 September 25 02:11:23 »
Hi,

just do it in PixelMath. Put the right formula: red+h_alpha*k, where k is a number that multiplies the h-alpha channel to blend it into the redd one with the desiredd proportion. "red" and "h_alpha" are the identifiers of your red channel and h-alpha images, respectively.

Activate the "Rescale" option.


V.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: HaRGB
« Reply #2 on: 2009 September 25 03:26:18 »
Vicent has described the correct way to achieve this when you want to work with the red and Ha separate (that is, grayscale) images.

You can also mix your Ha with the red channel of a RGB color image directly. This has the advantage that you immediately see the end result.

Assuming that your H-alpha image has the "Ha" identifier (double click on its vertical view selector to change, or select Image > Identifier), the whole procedure is as follows:

1. Open PixelMath.

2. If necessary, click the "Use a single RGB/K expression" option to disable it.

3. Enter the following expressions respectively for the red, green and blue channels:

(1 - k)*$T + k*Ha
$T
$T

Note that this will leave green and blue untouched.

4. Enter the following in the Symbols field:

k=0.75

0.75 is just an example here; replace it with your actual combination factor. The value of k must be in the [0,1] interval (zero means no Ha at all; 1 means no red at all and full Ha).

5. Disable the Rescale option. We don't need rescaling because we are mixing red and Ha to sum up to a maximum of one (see the expression for the red channel above).

6. Apply the PixelMath instance to your RGB image (for example, drag the blue triangle).

Let us know how this works for you.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: HaRGB
« Reply #3 on: 2009 September 25 06:03:47 »
Hi Fabio

Welcome to PI

I hope you are staying   ;)


Harry
Harry Page

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: HaRGB
« Reply #4 on: 2009 September 25 07:35:24 »
Juan,

It would be nice if we had a module for this.
I generally blend some Ha into the blue channel also to avoid the dreded salmon pink color.
It gets tricky with all those Pixel math expressions to remember.

Right now is still find it easier to do in PS  :'(

Max

Offline Simon Hicks

  • PixInsight Old Hand
  • ****
  • Posts: 333
Re: HaRGB
« Reply #5 on: 2009 September 25 08:30:18 »
I agree with Max on this.

Background neutralisation is easy in PixelMath, but when the BackgroundNeutralization and ColourCalibration processes came out it was a godsend.

Maybe a slider and a live preview so you can tune the blending ratio....plus the ability to bleed some into the blue channel to account for the H-beta like Max does would be really cool.

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: HaRGB
« Reply #6 on: 2009 September 25 08:32:44 »
A year or two ago I started doig it this way and it still gives good results for me.
1.  Process the Mean Ha frame with decon, wavelets or what ever you deem to get a good Ha image.  Then mask the image and use ACDNR to smooth the periphery of the Ha nebula, somewhat aggressively.  Adjust mid point with Histogram (see step 2).

2.  Extract the Luminance from a processed RGB of the image using the extract channels, with L checked and a and b unchecked on the CIE button.  You can throw this away as you will not use it.  I did look at the Lum to adjust the histogram for the above Ha to be close to that of the Lum frame.

3.  Now extract the R,G, and B frames form the RGB using the Extract Channels but this time the RGB button.

4.  In LRGB Combination tool put the Ha frame in the Lum slot and the RGBs in the correct slot.  Add a slight amount of saturation (lower the sat slider 15-20%) and start with about 50% of Luminance contribution using the slider in the upper right.  You can run several diffferent percentages of the "Lum" which is really Ha and see how much is best by comparing the output images.

5.  Make final adjustments with histogram, etc
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: HaRGB
« Reply #7 on: 2009 September 25 08:56:21 »
If you prefer to combine your Ha with the Red channel (80% ?) and a bit with the Blue (15% ?) then you can do this easily wit the LRGB tool.  Put the Ha in the Lum slot and the red in the Red slot - uncheck the Green and Blue slots, adjust the sliders to get the percentages you wish (this may take some trial and error) and execute.  Now you have an HaR frame.  Now Leave the Ha in the Lum slot uncheck the Red and Green slots and check the blue slot with the Blue frame inserted.  Again adjust sliders to get percentages, execute and you have a HAB frame.  Now you can put the HaR in the Red slot the Green in the Green slot and the HaB in the Blue slot (with R,G & B all checked).  I assume you have no Lum so leave Lum unchecked.  Execute and you have a HaR-G-HaB image in 32 bit, not the 16 bit PS gives<G>.
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: HaRGB
« Reply #8 on: 2009 September 25 09:01:04 »
Suggestions for a propper name? ChannelMixer? NarrowColorBlend? :P Something that sounds generic :)

I agree with Jack that this can be done with LRGBCombination... maybe a bit tricky, but not that hard. Anyway, writing a new process that just merges one gray image with any color channel, in a given ratio, is quite easy to implement, so it won't take more than a day (finger crossed) ;)
Regards,

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

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: HaRGB
« Reply #9 on: 2009 September 25 11:21:22 »
Hi Carlos

The Narrow Band mixer has been mentioned before, and would be of a great help, and ideally would like to

1) Have a way of blending the narrow band into either L R G B at the same time

2) Real time preview would be fantastic and nearly a must ( sorry did I just swear )

3) Adjustable sliders for the amount

This relatively simple tool would put PI way in front  ;D

regards Harry
Harry Page

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: HaRGB
« Reply #10 on: 2009 September 25 13:32:44 »
Carlos  It may not take more than a day, but it will only be in Windows:-((<G>.

By Jove Harry, you have hit all the salient points!  Tutorial to follow?
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline twade

  • PTeam Member
  • PixInsight Old Hand
  • ****
  • Posts: 445
    • http://www.northwest-landscapes.com
Re: HaRGB
« Reply #11 on: 2009 September 25 15:50:51 »
Carlos, et al,

Oh, I'm looking so forward to this module.  I have great difficultly adding Ha to my wide-field shots.  If you find you need a tough test image, you may use my wide-field M45 files under the twade directory.  They include L, R, G, B, and Ha.  The color data is a little weak.  This was taken before I found out how long I really need to expose the target through the color filters.

Wade

Offline papaf

  • PixInsight Addict
  • ***
  • Posts: 182
Re: HaRGB
« Reply #12 on: 2009 September 26 03:16:28 »
Well, what can I say? It worked wonders! It came out better than before!
If you want, look at the result:
http://discoremoto.cheapnet.it/papaf/Astro/ngc6888_HaR_RGB.jpg

Thanks to all! I have a decision to make...  ;)

Fabio

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: HaRGB
« Reply #13 on: 2009 September 26 04:00:28 »
Isn't what we need a 'generic' 3-channel mixer, with a fourth channel 'overlay'

The user decides what goes into each R, G, B and Lu channel. The GUI allows a mix or blend of those channels (isn't this effectively the LRGB Combine tool?). Each channel can be an image that is being 'blended' from other images, with its own GUI. And all 'live'.

In haste,
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 Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: HaRGB
« Reply #14 on: 2009 September 26 10:46:48 »
Fabio  Glad this worked for you.  The image is coming along well.  You might try taking a bit of green out by using the SCNR tool with the default settings, then open the colorsaturation tool and add 0.15 to 0.20 saturation with no hue shift.  I f you want to go further some wavelets will bring out more detail.  But I think you are on the right tract.
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO