1. A system for performing interpolation of a pixel, comprising: a pattern identification unit to identify a plurality of patterns for said pixel, each pattern in said plurality of patterns including a unique number of pixels, so that for said pixel, each pattern in said plurality of patterns can be applied to each of a plurality of pixel interpolation angles; a pixel interpolation angle determination unit to determine a pixel interpolation angle for each of said plurality of patterns; a pixel interpolation angle selection unit to select one of said pixel interpolation angles for each of said plurality of patterns; an interpolator to interpolate a value for said pixel using said selected pixel interpolation angle; a dynamic threshold unit to determine a dynamic threshold for each of said plurality of patterns; and a peak/valley test unit to conduct a peak/valley test for each of said plurality of pixel interpolation angles using said dynamic threshold for each of said plurality of patterns.