Apparatus and method for resizing an image
AssigneeSeiko Epson Corporation
InventorsPhil Van Dyke, Barinder Singh Rai
Life of this patent
Estimating the term…
Abstract
A hardware implemented method for resizing an image is provided. In this method, the image is captured and a size of the image is calculated as the image is being received by a display controller. Thereafter, a scaling ratio is calculated based on the calculated size of the image and an output image size. The display controller then scales the image according to the calculated scaling ratio. A display controller and a resizer for resizing the image are also described.
Claims19
A hardware implemented method for resizing an image, comprising method operations of:
- capturing the image;
- calculating a size of the image as the image is being received by a display controller;
- calculating a scaling ratio based on the calculated size of the image and an output image size;
- determining if a stored scaling bit is disabled, wherein the stored scaling bit specifies if the image is to be cropped;
- and
- cropping the image to the output image size, if the stored scaling bit is disabled or scaling the image according to the calculated scaling ratio if the stored scaling bit is enabled;
- and
- if the scaling ratio is a non-integer, determining a best fit for scaling the image, wherein determining the best fit includes,
- rounding the non-integer scaling ratio to an integer scaling ratio;
- cropping the input image to a scaling size that is based on the integer scaling ratio;
- and
- scaling the cropped input image using the integer scaling ratio to generate the output image.
A resizer for resizing an image, comprising:
- circuitry for receiving the image;
- circuitry for calculating a size of the image;
- circuitry for retrieving an output image size from a first register;
- circuitry for calculating a scaling ratio based on the calculated size and the output image size;
- and
- circuitry for scaling the image according to the calculated scaling ratio if a stored scaling bit is enabled, wherein the stored scaling bit specifies if the image is to be cropped;
- and
- circuitry for cropping the image to the output image size if the stored scaling bit is disabled;
- and
- circuitry for rounding a non-integer scaling ratio to an integer scaling ratio, wherein the cropping circuitry crops the input image before scaling the input image to a scaling size, the scaling size using the integer scaling ratio, the scaling size being larger than a size of the output image and maximizing a display area of the input image within the output image.
A display controller for resizing an image, comprising:
- an image capture device interface that includes,
- circuitry for receiving the image from an image capture device, and
- counters for calculating a size of the image;
- and
- a resizer in communication with the image capture device interface, the resizer including;
- circuitry for receiving the image and the size of the image from the image capture device interface;
- circuitry for retrieving an output image size from a register;
- circuitry for cropping the image to the output image size when a stored scaling bit is disabled;
- and
- circuitry for scaling the image to the output image size when the stored scaling bit is enabled;
- and
- circuitry for rounding a non-integer scaling ratio to an integer scaling ratio, wherein the cropping circuitry crops the input image before circuitry for scaling the image scales the input image using the integer scaling ratio.
Dependencies are inferred from the claim text.