Efficient bi-directional image scaling
AssigneeQUALCOMM Incorporated
InventorsSriram Emarose, Raja Shekhar Reddy Annam
Life of this patent
Estimating the term…
Abstract
A processor-implemented method for scaling an image includes receiving a digital image including at least a portion to be scaled. A set of pixels of the portion to be scaled in a horizontal direction is sampled. The sampled set of pixels is bi-directionally scaled by applying a horizontal scaling parameter to the sampled set of pixels to compute a horizontally scaled value. The horizontally scaled value is accumulated until a counter is equal to a vertical scaling parameter. A bi-directionally scaled value is computed by applying the vertical scaling parameter to the accumulated horizontally scaled value. The bi-directionally scaled value is stored.
Claims26
A processor-implemented method, performed by one or more processors, the processor-implemented method comprising:
- receiving a digital image including at least a portion to be scaled;
- sampling a set of pixels of the portion to be scaled in a horizontal direction;
- and
- bi-directionally scaling at least the portion of the digital image in the horizontal direction and a vertical direction according to the sampled set of pixels by:
- applying a horizontal scaling parameter to the sampled set of pixels to compute a horizontally scaled value;
- accumulating the horizontally scaled value until a counter is equal to a vertical scaling parameter;
- computing a bi-directionally scaled value by applying the vertical scaling parameter to the accumulated horizontally scaled value;
- and
- storing the bi-directionally scaled value.
An apparatus for processor-implemented method, comprising:
- at least one memory;
- and
- at least one processor coupled to the at least one memory, the at least one processor configured to:
- receive a digital image including at least a portion to be scaled;
- sample a set of pixels of the portion to be scaled in a horizontal direction;
- and
- bi-directionally scale at least the portion of the digital image in the horizontal direction and a vertical direction according to the sampled set of pixels by:
- applying a horizontal scaling parameter to the sampled set of pixels to compute a horizontally scaled value;
- accumulating the horizontally scaled value until a counter is equal to a vertical scaling parameter;
- computing a bi-directionally scaled value by applying the vertical scaling parameter to the accumulated horizontally scaled value;
- and
- storing the bi-directionally scaled value.
A non-transitory computer-readable medium having program code recorded thereon, the program code executed by one or more processors and comprising:
- program code to receive a digital image including at least a portion to be scaled;
- program code to sample a set of pixels of the portion to be scaled in a horizontal direction;
- and
- program code to bi-directionally scale at least the portion of the digital image in the horizontal direction and a vertical direction according to the sampled set of pixels by:
- applying a horizontal scaling parameter to the sampled set of pixels to compute a horizontally scaled value;
- accumulating the horizontally scaled value until a counter is equal to a vertical scaling parameter;
- computing a bi-directionally scaled value by applying the vertical scaling parameter to the accumulated horizontally scaled value;
- and
- storing the bi-directionally scaled value.
An apparatus, comprising:
- means for receiving a digital image including at least a portion to be scaled;
- means for sampling a set of pixels of the portion to be scaled in a horizontal direction;
- and
- means for bi-directionally scaling at least the portion of the digital image in the horizontal direction and a vertical direction according to the sampled set of pixels by:
- applying a horizontal scaling parameter to the sampled set of pixels to compute a horizontally scaled value;
- accumulating the horizontally scaled value until a counter is equal to a vertical scaling parameter;
- computing a bi-directionally scaled value by applying the vertical scaling parameter to the accumulated horizontally scaled value;
- and
- storing the bi-directionally scaled value.
Dependencies are inferred from the claim text.