摘要 |
A digital image system and method for combining bad pixel correction and demosaicing in a single process is provided by interpolating sensor values for pixels immediately spatially adjacent to the current pixel being examined to detect defective pixels, and using the interpolated values for demosaicing. If the sensor value of the current pixel being examined is outside of a range of sensor values determined from the interpolated values by more than a configurable threshold amount, the current pixel is considered defective, and replaced using an estimated value from the neighboring pixels. The interpolated values calculated for use in detecting bad pixels can further be used as the interpolated values for demosaicing purposes |