Abstract: A system processes an image containing a first line and a second line, where the first and second lines includes a plurality of pixels, to generate an interpolated line. The system selects a first and second set of pixels from the lines and generates a first set and second set of filtered values. The system identifies in the first line an edge location in the first set of the filtered values by a first filtered value of the first set of filtered values being at least one of less than and equal to a first predetermined value and a second filtered value of the fist set of the filtered values being at least one of greater than and equal to the first predetermined value.