1. A method comprising: receiving an intensity value produced by a sensor element under test, the sensor element under test selected from an array of multiple sensor elements that collectively capture an image; receiving a respective intensity value for each of multiple sensor elements neighboring the sensor element under test, each of the neighboring sensor elements fabricated to monitor a different color than a particular color monitored by the sensor element under test; producing a substitute value for the sensor element under test, the substitute value produced depending on the intensity values produced by the multiple neighboring sensor elements that monitor the different color; the method further comprising: identifying a portion of the neighboring sensor elements that monitor a first different color than the particular color monitored by the sensor element under test; based on a set of intensity values produced by the portion of neighboring sensor elements that monitor the first different color, producing a range value in which the set of intensity values reside; scaling the range value; and producing the substitute value for the sensor element under test in response to detecting that the intensity value produced by the sensor element under test falls outside the scaled range.