Removing hot pixels from an image?
Tue, 02/09/2021 - 07:59 am
My camera images are now showing the effects of what are called hot pixels. These are bright spots where the CMOS detector is stuck at a specific value. I can determine where these pixels are using a dark image calibration. I want to remove hot pixels from my images. I think the optimal case is to average them against the surrounding pixels. I see that ImageFilter would provide an option via NaNZapMedian. My workflow would seem to be
* Use the dark image to create a matrix map where hot pixels are assigned NaN and all other pixels are assigned unity
* Multiply this matrix map times an image to set the hot pixels in the image to NaN
* Apply the NaNZapMedian filter to the image
Would any other approach be as effective or perhaps even more effective?