1. A method, comprising: receiving a kernel having a potentially defective pixel having a potentially defective value, the potentially defective pixel being of a first color; extrapolating a first value for the potentially defective pixel using first and second left neighboring pixels of the potentially defective pixel, the first and second left neighboring pixels having a different color than the first color, and using a third left neighboring pixel having the first color; extrapolating a second value for the potentially defective pixel using first and second right neighboring pixels of the potentially defective pixel in the kernel, the first and second right neighboring pixels having a different color than the first color, and using a third right neighboring pixel having the first color; and generating a corrected value for the potentially defective pixel based on the extrapolation of the first value and the extrapolation of the second value.