1. A method comprising: receiving image data acquired by an image sensor having a horizontal scaler; processing the image data using the horizontal scaler in the image sensor by: correcting one or more defective pixels in the image data based on a one-dimensional defective pixel correction algorithm, wherein correcting the defective pixels comprises: receiving a respective pixel value for a respective pixel in the image data; determining a difference between the respective pixel value and each pixel value of each pixel that is horizontally adjacent to the respective pixel; flagging the respective pixel when the difference is greater than a threshold value; replacing the respective pixel value with only one or two pixel values that correspond to one or two pixels that are horizontally adjacent to the respective pixel using a linear filter when the respective pixel is flagged and at least five pixels adjacent to the respective pixel are not flagged; and displaying the corrected image data on a display device.