Patent ID: 7853096

Claim:
A method for processing an image, the method comprising: identifying one or more neighborhood size parameters, one or more tone function shape parameters, and one or more tone adjustment strength parameters; and for each location of multiple locations within the image, performing tone selective adjustment, where performing tone selective adjustment comprises: determining a shadow neighborhood and a highlight neighborhood, each neighborhood comprising an area of the image surrounding the location that is based on at least one of the one or more neighborhood size parameters; determining a shadow neighborhood intensity for the shadow neighborhood, the shadow neighborhood intensity being a measure of values of a local attribute specified by pixels within the shadow neighborhood; determining a highlight neighborhood intensity for the highlight neighborhood, the highlight neighborhood intensity being a measure of values of a local attribute specified by pixels within the highlight neighborhood; determining a shadow local weight for a shadow tone adjustment based on the shadow neighborhood intensity and at least one of the one or more tone strength adjustment parameters; determining a highlight local weight for a highlight tone adjustment based on the highlight neighborhood intensity and at least one of the one or more tone strength adjustment parameters; and adjusting the image at the location using the shadow local weight for shadow tone adjustment and the highlight local weight for highlight tone adjustment.