I am not really answering or addressing your posted question, but the hot pixels module in Darktable is brilliant at finding and fixing hot pixels (bad pixels) in any image from any camera. This Darktable module saves a lot of grief for photographers.
The hot pixel module is great. If there is one feature I miss it is a bad pixel map like RawTherapee. Worked very well for a camera sensor hit by laser