An image sensor may have a certain number of defective pixels that may be the result of manufacturing faults, failures during normal operation or variations in pixel voltage levels based on temperature or exposure. The Xilinx Defective Pixel Correction LogiCORE compares each pixel in the RAW domain to its neighboring pixel values. If the difference is greater than a user defined threshold, then the defective sample is replaced with a value interpolated from the neighboring pixels.