Patent ID: 8014623

Claim:
A computing device implemented method for processing videos or images in a computing device, the method comprising: providing to the computing device, a target pixel, the target pixel being characterized by a first pixel value; obtaining with the computing device, a plurality of surrounding pixels, the plurality of surrounding pixels being positioned within a predetermined area surrounding the target pixel; selecting with the computing device, a transition pixel from the plurality of surrounding pixels, the transition pixel being characterized by a second pixel value, the transition pixel being associated with a greatest transition value, the greatest transition value being a function of the first pixel value and the second pixel value; determining with the computing device, a first direction, the first direction being parallel to a second direction from the target pixel to the transition pixel; determining with the computing device, a line of surrounding pixels, the line of surrounding being characterized by a third direction, the third direction being perpendicular to the second direction; determining with the computing device, noise compensation value, the noise compensation value being a function of the first pixel value and pixel values of the line of surrounding pixels; determining with the computing device, a peaking compensation value, the peaking compensation value being a function of the first pixel value and the second pixel value; and adjusting with the computing device, the first pixel value based on at least the noise compensation value and the peaking compensation value.