Author Topic: Blending Ha with Red...a new approach  (Read 6657 times)

Offline aworonow

  • PixInsight Addict
  • ***
  • Posts: 258
    • Faint Light Photography
Blending Ha with Red...a new approach
« on: 2017 May 30 13:03:37 »
All,
  The "correct" way to blend a narrowband image, particular an H-alpha image, with its corresponding broadband image, in this case a Red image, has had many comments, questions, and even implementations. I've taken a physical approach to the problem. The narrowband and broadband images both represent mixtures of a background (red) signal and an emission-line (Ha) signal. As such the two images provide a pair of simultaneous equations that allows us separately to estimate their two signal components for each pixel. Then, of course we can remix the red background with the Ha line emission in any proportions we desire to produce an image that can be used wherever the red image would be used, but having enhanced Ha signal.
  That is what my icon BLM does (at the dropbox link below). The derivation of the equations (simple) and an example are also in the dropbox file. Hope they are of use. But this is the first incarnation of the algorithm, so use with care.

https://www.dropbox.com/s/1fv6b7wcsdlld0e/BLM.zip?dl=0

Alex Woronow

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Blending Ha with Red...a new approach
« Reply #1 on: 2017 May 30 15:34:06 »
Hi Alex,

Well - that is certainly a new and interesting approach (new to me, anyway). Personally, I cannot argue either for or against your approach, as I do not image in narrow-band at all. However, you have clearly thought long and hard, and have taken the time to carefully (and clearly) explain your new paradigm.

It will be interesting to see how others view this approach - especially PTeam members such as Vicent and Juan.

Maybe we have a new process in the making: "Woronow Narrowband Blending" ?  :D

Certainly, it is great to see PixInsight processes being leveraged to try and solve issues that have never been fully explored. Well done!
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 pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Blending Ha with Red...a new approach
« Reply #2 on: 2017 May 30 18:00:44 »
Quote
The assumptions inside those provided scripts largely remain undocumented, although some claim a connection to an article by Vicent Peris (probably this link? https://pixinsight.com/tutorials/narrowband/). That pedigree often seems dubious, given a quick look at scripts’ code.

this has been bugging me.

i looked back thru the forum and found this thread:

https://pixinsight.com/forum/index.php?topic=3401.0

you will see references to "Vicent's Method" there and and in the middle of that thread is a script by Silvercup which apparently implements what was known at the time as "Vicent's Method". bear in mind we're talking about 2011 here.

the script NBRGBCombination was written by Ioannis, and the opening comments of the script point to this thread: http://pixinsight.com/forum/index.php?topic=3446.0

in that thread someone raises your objection - that the script does not represent's vicent's method as described in the webpage in your quote.

so my mistake for previously pointing to the webpage in your quote, but my point is that Harry and others had been referring to what both scripts do as "Vicent's Method." it's apparently something different than what vicent has presented on that webpage.

interestingly, in one of those threads, Vicent disavowed the idea of a "Vicent's method" because every image is different and may require different Ha blending methods. nevertheless, the pixelmath underlying the scripts and Harry's XPSMs are apparently due to Vicent.

anyway i look forward to trying your new method.

rob

Offline aworonow

  • PixInsight Addict
  • ***
  • Posts: 258
    • Faint Light Photography
Re: Blending Ha with Red...a new approach
« Reply #3 on: 2017 May 31 10:11:20 »
Thanks for the input and interest. Rob, yeah, I read most of that background stuff too and it really seems to have gotten muddled over time. I did not go into all that in the write-up I did. Someone I asked to read it before posting thought (correctly so) that confused things and was too critical. So I dropped it.

On a cheerier note, in the wee hours of the morning the thoughts arose...I could use the separated background and emission line to reconstruct an estimate of what a 3nm Ha filter would see...or a 10nm filter...or any other. Then, I thought, what if I could use the L and R to estimate what some Ha filter would observe. I tried it and here's the skinny (attached with the reconstructed Ha on the left and the observed Ha on the right). Not bad! Maybe buying an Ha filter is not all that important? So I tried to get the emission line from the L and R. I guess it was a stretch too far, the results were so-so at best. (BTW, both attempts were through 'reverse engineering'.) Maybe a better, more complete model of the background sources and filter shapes would yield better results? maybe.

Thanks again, Alex Woronow

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Blending Ha with Red...a new approach
« Reply #4 on: 2017 June 01 11:05:06 »
Glad to see someone is taking another crack at this.  I often find the scripts don't give me the best results.  :'(
Vicent's method manually can be quite tricky too.


Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Blending Ha with Red...a new approach
« Reply #5 on: 2017 June 01 19:48:52 »
 I get two icon for pixel math. They appear in a fifth workspace which had me confused O:)

Max

Offline vicent_peris

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 988
    • http://www.astrofoto.es/
Re: Blending Ha with Red...a new approach
« Reply #6 on: 2017 June 02 04:49:24 »
Hi,

Please take a look at this thread:

https://pixinsight.com/forum/index.php?topic=2036.msg13145#msg13145

I've been using the continuum subtraction method from 7 years ago. The continuum subtraction is not really my own idea since it has been widely used in professional astronomy from long time ago; what's mine is the idea of adding the continuum-cleaned H-alpha image to the color image. People coming to my intensive workshops since 2013 have a full example on this technique as part of the documentation. Some of my images have been developed using this technique:

https://pixinsight.com/forum/index.php?topic=10353
https://pixinsight.com/forum/index.php?topic=10351
https://pixinsight.com/forum/index.php?topic=10352
http://astrofoto.es/Galeria/2011/M74/M74_CAHA_en.html
http://astrofoto.es/Galeria/2010/M51/M51_CAHA_HaRGB_en.html
http://astrofoto.es/Galeria/2012/PK164/PK164_CAHA_en.html
http://astrofoto.es/Galeria/2011/M31/M31_CAHA_en.html

To have an optimal result using this technique, you should take care of the below points:

- Always you add or subtract an image from another, don't subtract the sky level to avoid any clipping. That way it's also easier to check the result using STF. For instance, if you subtract the H-alpha image from the red, the equation would be R - Ha + med( Ha ). If you're multiplying the H-alpha image by a factor ("k"), then the equation is: R - ( Ha - med( ha ) ) * k.

- You are going to multiply the H-alpha image by a high number when you add it to the red channel. This also means that you're going to multiply the noise. So you'll always need to denoise the H-alpha image first.

- Even when you denoise the H-alpha image, it's difficult to get rid of the large-scale noise. There's no sense in enhancing the H-alpha image in the areas where you don't have H-alpha emission. So it's better to apply the H-alpha enhancement through a mask (built also from the cleaned H-alpha image) that selects just the H-alpha regions.

Even if there are multiple ways to integrate narrow and broad band images, I am currently teaching two techniques in my workshops. The first one, described here, works well when there's only H-alpha emission and it's applied to linear images. The second one preserves all the color information and it's applied to non-linear images. In the second case, the first technique produces terrible results as the nebulae become completely red with no different hues.


Best regards,
Vicent.

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Blending Ha with Red...a new approach
« Reply #7 on: 2017 June 25 17:32:44 »
I like your method in pixel math.   I not sure what second icon is for  I produced this.

http://www.astrobin.com/full/300617/C/

Will the method only work for Ha?

Thanks

Max

Offline aworonow

  • PixInsight Addict
  • ***
  • Posts: 258
    • Faint Light Photography
Re: Blending Ha with Red...a new approach
« Reply #8 on: 2017 June 25 17:58:24 »
Max,
Glad you found it useful. The second icon is not really required. It simply scales the HaR mix back to the same median value as the R aloneoriginally had. Occasionally, this might make the RGB combine process yield a more nearly color-balanced image (assuming that the R was going to work well in the first place).

That's a very nice image. Good, powerful color and shape.

Alex

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Blending Ha with Red...a new approach
« Reply #9 on: 2017 June 26 16:53:22 »
Alex,

Any math that with allow for 0III ?


Max

Offline aworonow

  • PixInsight Addict
  • ***
  • Posts: 258
    • Faint Light Photography
Re: Blending Ha with Red...a new approach
« Reply #10 on: 2017 June 26 18:02:07 »
In so far as OIII's main emission is in the blue, it could have the same math applied to it and the B image as done with the Ha and R. Not ideal, but often usable. I just (this morning) did that with a planetary neb with some good results.

(OIII is kind of blue-green, as I read it. But I don't know how to partition the emission. Maybe proportionally to the distance to pure blue versus pure green? Some cipher'n would be required, as Jethro Bodine would say." So I just drop it into the blue for now.)

Alex

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Blending Ha with Red...a new approach
« Reply #11 on: 2017 June 26 19:38:00 »
Alex

I'm rolling...naught plus naught equals



Mike


sorry I had to jump in on that one.

Offline aworonow

  • PixInsight Addict
  • ***
  • Posts: 258
    • Faint Light Photography
Re: Blending Ha with Red...a new approach
« Reply #12 on: 2017 June 27 06:30:55 »
Upon thought (and a few "goes intos"), if any narrowband line lies entirely within a single broadband filter, the equation for mixing narrowband and broadband are the same as in the derived equation.

Max...are you a member of HAC? I am. But living in Silver City, it's a long trip to meetings and I seldom make it.

Alex

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Blending Ha with Red...a new approach
« Reply #13 on: 2017 June 27 09:49:51 »
Yes, I am an active member. I should take a trip out your way some day too.


Max

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Blending Ha with Red...a new approach
« Reply #14 on: 2017 June 27 09:58:43 »
In so far as OIII's main emission is in the blue, it could have the same math applied to it and the B image as done with the Ha and R. Not ideal, but often usable. I just (this morning) did that with a planetary neb with some good results.

(OIII is kind of blue-green, as I read it. But I don't know how to partition the emission. Maybe proportionally to the distance to pure blue versus pure green? Some cipher'n would be required, as Jethro Bodine would say." So I just drop it into the blue for now.)

Alex

If your blending into RGB it is usually an aqua color.

So most people would distribute OIII 50% into the Green then 50% in blue.