To interpolate a value for a pixel, multiple patterns are selected. Each
pattern is used to determine a pixel angle. One of the determined pixel
angles is then selected based on the reliability of the pixel angles. The
selected pixel angle can be selected based on its reliability
irrespective of the reliability of other pixel angles. The selected pixel
angle can then be used to interpolate a value for the target pixel.
Dynamic thresholds can be computed for use in either determining a pixel
angle for a given pattern, or to select the pixel angle from the
available determined pixel angles.