Author Topic: Pixel Maths  (Read 7174 times)

Offline Jules

  • PixInsight Guru
  • ****
  • Posts: 513
Pixel Maths
« on: 2011 June 17 05:56:51 »
I am trying to merge two images into a new image. I am having problems with percentages i.e. 30% of an image + 70% of an image = new image. Applying this as a maths function has made some pretty weird results. I think it is just a matter of using the correct terminology in PM?

I have used:$T = ((0.7 * Ha image) + (0.3 * OII image))

Jules

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Pixel Maths
« Reply #1 on: 2011 June 17 09:43:48 »
You don't need to use "$T ="... when you execute pixelmath, it replaces the target image, or makes a duplicate of it, and then replaces data (replace or new image modes).
Other than that, it is ok. Just remember to use the ID of the image for each filter. If it is not that simple, use the equation editor, and load the image names from the combobox of view listings :)

So, to sumarize, it should be:
0.7*ImageHa + 0.3*ImageOIII

(see that there are no spaces in valid IDs).
Regards,

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

Offline Jules

  • PixInsight Guru
  • ****
  • Posts: 513
Re: Pixel Maths
« Reply #2 on: 2011 June 17 10:52:36 »
Crikey Carlos

That is embarrassingly easy, thank you for your time!

Julian