Blemish repair tool for digital photographs in a camera
AssigneeHewlett-Packard Development Company, L.P.
InventorsRobert P. Cazier, Douglas Kirkland, Murray Dean Craig
Life of this patent
Estimating the term…
Abstract
Systems and methods for implementing a blemish repair tool for digital photographs in a camera are disclosed. An exemplary method of repairing a blemish in a digital image on a camera may comprise selecting at least one candidate region including a blemish in the digital image. The method may also comprise cloning pixel values for repairing the blemish. The method may also comprise overlaying the cloned pixel values on the candidate region of the digital image.
Claims20
A digital camera system comprising:
- non-transitory computer-readable storage for storing an original digital image in the digital camera;
- blemish repair logic executing in the digital camera to repair at least one blemish in the original digital image, the blemish repair logic:
- sampling pixel values adjacent the blemish and excluding pixel values of the blemish to generate a sample using an averaging function, the averaging function weighted with pixel values toward the center of the sample given more weight than pixel values toward the edges of the sample, wherein the blemish repair logic weights the sample by combining an averaging of each Y channel value with a Y-lightest pixel value;
- cloning pixel values using the sampled pixel values for repairing the blemish;
- overlaying the cloned pixel values on the blemish in the original digital image;
- and
- rendering the repaired image.
A method of repairing a blemish in a digital image on a camera, the method implemented by computer program code stored on a non-transitory computer-readable medium and executable by a processor to perform the operations comprising:
- selecting at least one candidate region including a blemish in the digital image;
- cloning pixel values for repairing the blemish by sampling pixel values adjacent the blemish while excluding pixel values of the blemish in the sampling and applying an averaging function to the sampling, the averaging function weighted with pixel values toward the center of the sampling given more weight than pixel values toward the edges of the sampling, wherein weighting the sampling is by combining an averaging of each Y channel value with a Y-lightest pixel value;
- and
- overlaying the cloned pixel values on the candidate region of the digital image.
A non-transitory computer-readable medium encoded with a computer program for repairing a blemish in a digital image, the computer process comprising executable program code for:
- identifying at least one candidate region in the digital image including the blemish;
- sampling pixel values adjacent the blemish and excluding pixel values for the blemish and applying averaging function, the averaging function weighted with pixel values toward the center of the sampled pixel values given more weight than pixel values toward the edges of the sampled pixel values, wherein weighting the sampled pixel values is by combining an averaging of each Y channel value with a Y-lightest pixel value;
- cloning pixel values using the sampled pixel values for repairing the blemish;
- overlaying the cloned pixel values on the candidate region of the digital image;
- and
- rendering a repaired image.
Dependencies are inferred from the claim text.