Correcting cold pixels only

Scripts and programs to automate Astroart
Post Reply
fabdev
Posts: 502
Joined: 03 Dec 2018, 21:43

Correcting cold pixels only

Post by fabdev » 19 Dec 2021, 14:39

Hello, I've been asked a method to correct only cold pixels, without modifying the hot ones.
Here is a possible implementation for 16 bit images:

Code: Select all

Image.PrepareUndo
Image.Formula("65535-v")
Image.HotPixels(30)
Image.Formula("65535-v")
Image.Update
The image is simply "inverted", then the normal hot pixel filter is applied, then the image is inverted again.
This could be done also with a Macro: The normal Hot Pixels filter only corrects .. hot pixels, to correct both hot and cold pixels use the option "Group of pixels".

Post Reply