1. A sensor interface circuit, comprising: a register circuit configured to store operating parameters of the sensor interface circuit; and a scaling circuit comprising: a first defect pixel detection circuit configured to detect a first defective pixel in an input image by analyzing pixels in a line of an input image data along a first direction; and a first scaling circuit coupled to the first defect pixel detection circuit, the first scaling circuit configured to generate a scaled line of pixels representing the line of the input image scaled along the first direction according to the operating parameters by: (i) defining first subsets of pixels in the line of the input image so that the first defective pixel is included in only one of the first subsets of pixels; and (ii) filtering each of the defined first subsets of pixels through a first multi-tap polyphase filter.