Patent ID: 8615134

Claim:
A method of identifying a set of pixels the values of which are to be used in image processing to determine the value of a target pixel, the pixels being pixels of a digital image, wherein the method comprises: determining gradients for a plurality of pixels lying close to the target pixel, each gradient being defined by a direction; obtaining a plurality of sets of pixels from the plurality of pixels lying close to the target pixel, each set of pixels of the plurality of sets of pixels comprising only the target pixel and at least two pixel subsets, the at least two pixel subsets comprising a first pixel subset formed of a line of pixels extending along a first direction and a second pixel subset formed of a line of pixels extending along a second direction, each pixel of each obtained set of pixels being contiguous with another pixel in the same obtained set of pixels; obtaining a first measure and a second measure, the first measure being a measure of an angle difference between the first direction and the gradient of at least one pixel of the first pixel subset, the second measure being a measure of an angle difference between the second direction and the gradient of at least one pixel of the second pixel subset; and determining whether the obtained set of pixels is the set of pixels, the values of which are to be used to determine the value of the target pixel, in accordance with the first and second measures.