Author Topic: Pixelmath equation help please  (Read 531 times)

Offline stevek

  • PixInsight Addict
  • ***
  • Posts: 148
Pixelmath equation help please
« on: 2019 November 12 08:46:47 »
Hi,
If I have two images, say A and B.  What Pixelmath expression would equivalently say "If any given pixel in A is of over 0.85 in K value greyscale then replace it with the same Pixel from image B" ?????
How would I do that please?

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Pixelmath equation help please
« Reply #1 on: 2019 November 12 08:52:33 »
iif(image_a>0.85,image_b,image_a)

the syntax here is (condition), true-case, false-case

pixelmath always operates on the same pixels from the input images unless you take pains to cause it to do otherwise.

rob

Offline stevek

  • PixInsight Addict
  • ***
  • Posts: 148
Re: Pixelmath equation help please
« Reply #2 on: 2019 November 12 09:09:03 »
Wow, thanks Rob!
I was expecting the equation to be very much more complex than that.