Skip to content

Instantly share code, notes, and snippets.

@Xophe92
Last active August 2, 2022 21:45
Show Gist options
  • Save Xophe92/7df23b1d0c48709266739ae9597117fb to your computer and use it in GitHub Desktop.
Save Xophe92/7df23b1d0c48709266739ae9597117fb to your computer and use it in GitHub Desktop.
Star reduction in Siril with pixelmath
Forumula given by https://www.youtube.com/watch?v=rM3-yAcAbZc
In Siril Pixelmath
S is the image with stars, SL is the starless
K is a parameter between 0 and 1
formula "transfert approach": max(SL, ~(~((K-1)*S/((2*K-1)*S-K)) / ~((K-1)*SL/((2*K-1)*SL-K)) * ~SL))
formula "Halo-1" max(SL, S-max(0,((S-(K-1)*S/((2*K-1)*S-K))*~(SL/S))*~SL))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment