www.pixinsight.com
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This forum is closed since 5 March 2020
PixInsight Forum is now available at:
https://pixinsight.com/forum/
News:
Home
Help
Search
Login
Register
PixInsight Forum (historical)
»
PixInsight
»
General
»
Pixelmath equation help please
« previous
next »
Print
Pages: [
1
]
Author
Topic: Pixelmath equation help please (Read 531 times)
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?
Logged
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
Logged
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.
Logged
Print
Pages: [
1
]
« previous
next »
PixInsight Forum (historical)
»
PixInsight
»
General
»
Pixelmath equation help please