home | download | howto | module docs | git | beta

hotpx: remove stuck pixels from raw images

works on bayer and x-trans raw data. ideally run on the raw data directly, i.e. before the denoise and hilite modules.

a photosite is replaced by the mean of its colour around it if it stands more than sigma deviations of the noise, from the noise profile or noise without one, or of the local spread above that mean. around it means the 3x3 blocks of the mosaic around the photosite's own (3x3 photosites for x-trans, 2x2 for bayer), so that the statistics are shared by the photosites of a block. the mean is estimated without the brightest two, so that hot photosites next to each other still stand out, and corrected for leaving them out, so that all colours are judged alike however few of them are around.

it is kept if at least two others in the 5x5 photosites around it are raised too, one of them of another colour, each by raised deviations of the noise, by one and a half of the local spread and by a quarter of the photosite's excess: a real light reaches the other colours through the lens, a defect does not. a glint confined to a pair of photosites, or to up to three of the same colour, looks like a defect and is removed.

connectors

parameters

November 2026