Author Topic: PixelMath 50:50 blending  (Read 6345 times)

Offline Zocky

  • PixInsight Old Hand
  • ****
  • Posts: 460
    • View Profile
PixelMath 50:50 blending
« on: 2014 December 09 11:58:46 »
Which expression should be used in PixelMath, for combining L and Ha image in 50:50 blending mode?

Thnx.
Skywatcher ED 80/600 with FF/FR x0.85; HEQ5-pro mount
SBIG ST-8300M, FW5 with Baader LRGB Ha7nm filters
https://www.flickr.com/photos/zoran-novak/

Offline anteje

  • Newcomer
  • Posts: 20
    • View Profile
Re: PixelMath 50:50 blending
« Reply #1 on: 2014 December 09 13:19:13 »
(0.5*L)+(0.5*Halfa) I guess.
GSO RC8  WO FLT98  QSI683WS SBIG St-i
NEQ6 belt modified

Offline kolec

  • PixInsight Enthusiast
  • **
  • Posts: 97
    • View Profile
Re: PixelMath 50:50 blending
« Reply #2 on: 2014 December 10 04:16:32 »
The first You must linear fit L and Ha

Kolec

Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 343
    • View Profile
Re: PixelMath 50:50 blending
« Reply #3 on: 2014 December 10 04:21:05 »
Hello

I think you can use something like  Ha*median(L)+L*median(Ha)   and enable the rescale result.


Geert
Geert Vanhauwaert

Online Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6617
    • View Profile
    • http://pixinsight.com/
Re: PixelMath 50:50 blending
« Reply #4 on: 2014 December 10 05:05:06 »
Which expression should be used in PixelMath, for combining L and Ha image in 50:50 blending mode?

This is simplest way:

(L + Ha)/2

A more generic formulation is of course:

0.5*L + 0.5*Ha

mainly because it provides the structure to implement different combining ratios, such as for example:

0.75*L + 0.25*Ha

You can also define two symbols; for example:

a = 0.75, b = 0.25

and rewrite the expression to use them instead of literal values:

a*L + b*Ha

which can be more manageable, especially if you're going to use more complex expressions.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1455
    • View Profile
    • http://www.harrysastroshed.com
Re: PixelMath 50:50 blending
« Reply #5 on: 2014 December 10 05:11:23 »
Hi

I remember somewhere a Mr Juan was going to look into a simple image blending tool , but then again

I could have imagined it  :laugh:

Harry
Harry Page

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 606
    • View Profile
    • Astronomy Pages G.W.
Re: PixelMath 50:50 blending
« Reply #6 on: 2014 December 10 14:14:08 »
Hi Harry!
There is already a Blend Script available.
Origin by Mike Reid, Translation to German and extensions by me.
Program structure completely new designed by Hartmut Bornemann!
http://www.werbeagentur.org/oldwexi/Daten/Blend.js

This blend allows also the inclusion of a mask.
The latest version can also create a starmask from the actual Image.

Gerald

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1455
    • View Profile
    • http://www.harrysastroshed.com
Re: PixelMath 50:50 blending
« Reply #7 on: 2014 December 10 14:29:50 »
Hi

That looks good , need to learn German though

Perhaps a English translation for the lazy English person  8)

Harry
Harry Page

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1175
    • View Profile
    • astrobin
Re: PixelMath 50:50 blending
« Reply #8 on: 2014 December 10 17:06:49 »
Gerald,

Thanks for sharing the Blend script. Very nice! And Harry I went through with Google and Bing and translated the "Text" sections. Took about 10 minutes but well worth it all though I'm not sure for the best translation of  "Ãœberblend". Anyway very nice blending script.


Mike

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 190
    • View Profile
    • Skypixels - Astrophotography by Herbert Walter
Re: PixelMath 50:50 blending
« Reply #9 on: 2014 December 11 07:56:19 »
Hi,

a translation for the blending modes (= Überblend Modus): english > german (a download from the internet):

Normal    Normal
Dissolve    Sprenkeln
Multiply    Multiplizieren
Screen       Negativ multiplizieren
Overlay    Ineinanderkopieren
Soft Light     Weiches Licht
Hard Light    Hartes Licht
Color Dodge    Farbig abwedeln
Color Burn    Farbig nachbelichten
Darken       Abdunkeln
Lighten    Aufhellen
Difference    Differenz
Exclusion    Ausschluss
Hue       Farbton
Saturation    Sättigung
Color       Farbe
Luminosity    Luminanz
Linear Burn    Linear nachbelichten
Linear Dodge    Linear abwedeln
Vivid Light    Strahlendes Licht
Linear Light    Lineares Licht
Pin Light    Lichtpunkte

Best regards.
Herbert, Austria

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1175
    • View Profile
    • astrobin
Re: PixelMath 50:50 blending
« Reply #10 on: 2014 December 11 08:29:11 »
Herbert,

Thank You


Mike

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 606
    • View Profile
    • Astronomy Pages G.W.
Re: PixelMath 50:50 blending
« Reply #11 on: 2014 December 11 10:26:26 »
Hi,
o.k. will translate it back to english.
Gerald

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 606
    • View Profile
    • Astronomy Pages G.W.
Re: PixelMath 50:50 blending
« Reply #12 on: 2014 December 11 11:20:55 »
Translated Version of the Blend Script  is available under:
http://www.werbeagentur.org/oldwexi/Daten/Blend_StarMask_english.js
Script is available on "As Is" base...

Gerald

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1175
    • View Profile
    • astrobin
Re: PixelMath 50:50 blending
« Reply #13 on: 2014 December 11 12:47:22 »
Gerald,

Again thanks. For those of us who love PixelMath but are not good with it this script is wonderful. It takes a little getting used to but it is very powerful like all of PixInsight. I can see it being part of my regular workflows.


Mike

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1455
    • View Profile
    • http://www.harrysastroshed.com
Re: PixelMath 50:50 blending
« Reply #14 on: 2014 December 11 12:49:34 »
Hi

great stuff thanks young man

now for the non photoshop , what do the non obvious blending modes do ?

Harry
Harry Page