Author Topic: Bug in Pixel Math  (Read 2380 times)

Offline Dimitris Platis

  • PixInsight Addict
  • ***
  • Posts: 181
Bug in Pixel Math
« on: 2015 August 22 06:01:09 »
I am trying to do harry's trick for switching narrowband stars with RGB stars (same algorithm like when changing Masked Stretch stars with HT stars).....however, it doesnt work unless I click Replace Image.
When I click New Image it just creates the image written on Pixel Math.
Is it a bug or am I missing something?

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Bug in Pixel Math
« Reply #1 on: 2015 August 22 09:26:45 »
you apply this thru a mask, right?

i guess what's happening is that when you don't use "replace image" you get a copy of the original image, which is correct. if you were to use replace image without a mask, you'd overwrite the whole target image with the source image. but since you are using a mask, only those pixels exposed by the mask are written by pixelmath.

i think if you want a new image of just the changes, you'd have to use the pixelmath expression star_mask*rgb_stars (or maybe ~star_mask*rgb_stars).

rob