44.6.7 Defective Pixel Correction (DPC)
The ISC is able to detect and correct defective pixels.
The defective pixel correction is enabled by writing '1' to ISC_DPC_CTRL.DPCEN. The color filter array pattern of the image sensor driven by ISC must be configured in ISC_DPC_CFG.BAYCFG.
It is possible to adjust the processing performed by the defective pixel correction logic.
Several criteria can be activated to determine if a pixel is defective (edge interpolation, median threshold, closest pixel, average threshold).
The edge interpolation is enabled by writing ISC_DPC_CFG.EITPOL=1.
The median threshold is enabled by writing ISC_DPC_CFG.TM_ENABLE=1.
The closest pixel threshold is enabled by writing ISC_DPC_CFG.TC_ENABLE=1.
The average threshold is enabled by writing ISC_DPC_CFG.TA_ENABLE=1.
The different thresholds can be configured in ISC_DPC_THRESHM.THRESHM, ISC_DPC_THRESHC.THRESHC, ISC_DPC_THRESHA.THRESHA.
The triggering of a pixel correction can be triggered when all active criteria are met or only one is met by configuring the bit ISC_DPC_CFG.ND_MODE.
The number of corrected pixels by frame are reported in ISC_DPC_SR.COUNTER.