Digital image scaling
AssigneeHewlett-Packard Development Company, L.P.
InventorsJay S Gondek, Matthew A Shepherd
Life of this patent
Estimating the term…
Abstract
Examples include computing devices, processes, and/or machine-readable storage mediums. Examples analyze a region of pixels for a digital image to determine a set of diagonal direction pixel differences corresponding to a target pixel. Examples analyze the region of pixels to determine diagonal variances corresponding to the target pixel. Examples scale the digital image by processing the target pixel into a set of subpixels based at least in part on the set of diagonal direction pixel differences and the diagonal variances.
Claims20
A non-transitory machine-readable storage medium comprising instructions executable by a processing resource of a computing device to cause the computing device to:
- for a digital image, analyze a region of pixels including a target pixel to determine a set of diagonal direction pixel differences corresponding to the target pixel, including a difference between a value of each pixel diagonally adjacent to the target pixel and a value of the target pixel;
- analyze the region of pixels to determine diagonal variances corresponding to the target pixel, including a first variance of the differences corresponding to the pixels diagonally adjacent to the target pixel along a first direction and a second variance of the differences corresponding to the pixels diagonally adjacent to the target pixel along a second direction perpendicular to the first direction;
- scale the digital image by processing the target pixel into a set of subpixels based on the set of diagonal direction pixel differences and the diagonal variances;
- and
- output a scaled digital image produced by the scaling to cause printing by a printing device using the scaled digital image.
A method performed by at least one hardware processor, comprising:
- for each of a plurality of target pixels of a digital image:
- analyzing a pixel value for each pixel of a region of pixels that includes a target pixel to determine a set of diagonal direction pixel differences corresponding to the target pixel, including:
- a first difference between the pixel value of the target pixel and the pixel value of the pixel to an upper right of the target pixel;
- a second difference between the pixel value of the target pixel and the pixel value of the pixel to a lower left of the target pixel;
- a third difference between the pixel value of the target pixel and the pixel value of the pixel to an upper left of the target pixel;
- a fourth difference between the pixel value of the target pixel and the pixel value of the pixel to a lower right of the target pixel;
- after determining the set of diagonal direction pixel differences, determining diagonal variances corresponding to the target pixel, including a first variance of the first and second differences and a second variance of the third and fourth differences;
- analyzing the set of diagonal pixel differences corresponding to the target pixel to determine an orientation of the target pixel;
- determining whether to process the target pixel based on the orientation of the target pixel;
- in response to determining to process the target pixel, processing the target pixel into a set of subpixels, wherein a size of each subpixel of the set of subpixels is less than a size of the target pixel;
- and
- output a processed digital image produced by the processing to cause printing by a printing device using the processed digital image.
A computing device comprising:
- a processor;
- and
- a non-transitory storage medium storing instructions executable on the processor to:
- analyze pixels of a region of pixels to determine a set of diagonal direction pixel differences corresponding to a target pixel of a digital image, including a difference between a value of each pixel diagonally adjacent to the target pixel and a value of the target pixel;
- analyze the pixels of the region of pixels to determine diagonal variances corresponding to the target pixel, including a variance of the differences corresponding to the pixels to an upper right and a lower left of the target pixel and a variance of the differences corresponding to the pixels to an upper left and a lower right of the target pixel;
- determine an orientation of the target pixel based on the set of diagonal direction pixel differences and the diagonal variances;
- generate a scaled digital image by processing the target pixel based on a pixel value of each pixel of the region of pixels and the orientation of the target pixel;
- and
- output the scaled digital image produced to cause printing of the scaled digital image by a printing device.
Dependencies are inferred from the claim text.