### Author Topic: PixelMath 50:50 blending  (Read 6273 times)

#### Zocky

• PixInsight Old Hand
• Posts: 460
##### 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/

#### anteje

• Newcomer
• Posts: 20
##### 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

#### kolec

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

Kolec

#### gvanhau

• PixInsight Old Hand
• Posts: 343
##### 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

#### Juan Conejero

• PTeam Member
• PixInsight Jedi Grand Master
• Posts: 6582
##### 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/

#### Harry page

• PTeam Member
• PixInsight Jedi Knight
• Posts: 1455
##### 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

Harry
Harry Page

#### oldwexi

• PixInsight Guru
• Posts: 603
##### 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.

Gerald

#### Harry page

• PTeam Member
• PixInsight Jedi Knight
• Posts: 1455
##### 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

Harry
Harry Page

#### msmythers

• PTeam Member
• PixInsight Jedi
• Posts: 1173
##### 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

#### Herbert_W

• Posts: 188
##### 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

#### msmythers

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

Thank You

Mike

#### oldwexi

• PixInsight Guru
• Posts: 603
##### Re: PixelMath 50:50 blending
« Reply #11 on: 2014 December 11 10:26:26 »
Hi,
o.k. will translate it back to english.
Gerald

#### oldwexi

• PixInsight Guru
• Posts: 603
##### Re: PixelMath 50:50 blending
« Reply #12 on: 2014 December 11 11:20:55 »
Translated Version of the Blend Script  is available under:
Script is available on "As Is" base...

Gerald

#### msmythers

• PTeam Member
• PixInsight Jedi
• Posts: 1173
##### 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

#### Harry page

• PTeam Member
• PixInsight Jedi Knight
• Posts: 1455
##### 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