The present invention relates to an image resizing device, and more particularly, to an image resizing device and a parameter adjusting method thereof.
In image processing, an image resizing device or resizing engine is commonly used to scale or so called resize an image signal when the dimension of an image signal is not appropriate for an output device (e.g. a TV screen or computer display). The image resizing device typically utilizes an interpolation algorithm to resize the image signal, such as linear interpolation, bilinear interpolation, cubic interpolation, or others. The behavior of the interpolation algorithm implemented in the image resizing device can be set or altered by varying one or more parameter used for resizing the image signal. In most cases, selection of the parameter is critical to output quality of the image signal after resizing.
Conventionally, the parameter of the image resizing device is preset to a fixed value and not changeable when resizing the image signal, which may induce unacceptable output quality for some parts of the image signal.
An objective of the present invention is to provide an image resizing device and a parameter adjusting method thereof.
An embodiment of a parameter adjusting method of an image resizing module comprises receiving an image signal; and referencing a signal characteristic of the image signal to adjust a parameter with which the image resizing module resizes the image signal.
An embodiment of an image resizing device comprises a signal receiving module, for receiving an image signal; an image resizing module, coupled to the signal receiving module; and a parameter adjusting module, coupled between the signal receiving module and the image resizing module, for referencing a signal characteristic of the image signal to adjust a parameter of the image resizing module; wherein the image resizing module utilizes the adjusted parameter to resize the image signal.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, electronic equipment manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to . . . ”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
The detailed description as to how the image resizing device 101 in
Please refer to
In one embodiment, the parameter corresponds to a set of coefficients of an algorithm utilized by the image resizing module 105 for resizing the image signal, where the algorithm may correspond to vertical interpolation, horizontal interpolation, or both vertical and horizontal interpolations. Please refer to
C
1
=at
3−2at2+at;
C
2=(a+2)t3−(a+3)t2+1;
C
3=−(a+2)t3+(2a+3)t2−at; and
C
4
=−at
3
+at
2,
wherein C1 to C4 are coefficients of the algorithm corresponding to the cubic horizontal interpolation, a is an adjustable parameter, and t is a value on a temporal axis. Additionally, the coefficients C1, C2, C3, and C4 correspond to the first, second, third, and fourth pixels respectively. The value t corresponds to a fractional distance from the second pixel to the target pixel on a temporal axis. In this embodiment, a is the parameter controlled by the parameter adjusting module based on the signal characteristic. It is obvious from the above equations that the adjustable parameter a affects the set of coefficients C1 to C4 of the algorithm. Since the 4-taps cubic interpolation filter is well known to the skilled in the art, the details of implementing cubic horizontal interpolation with respect to the above equations are thus omitted for simplicity. Please note that, in the prior art, this parameter a is preset to a fixed value, for example −0.5, and not changeable when resizing the image signal. In this embodiment, however, a can be dynamically adjusted to an appropriate value suitable for the currently received image signal to be resized by the image resizing module 105. Please note that although a is regarded as the parameter in this embodiment, the parameter adjusted based on the signal characteristic in other embodiments could be any parameter which has influence on the characteristic of the image resizing module 105, for example, a parameter corresponding to a sampling phase, a quantity of taps, or a sharp value of the image resizing module 105. The sampling phase corresponds to a time interval between a target pixel and an existing pixel on a temporal axis, wherein the target pixel is the pixel to be inserted into a specific position near the existing pixel in the image signal. Adjusting the sampling phase thus means performing some time shift when calculating the value of the target pixel. After calculation, the value of the target pixel is recorded correspondingly to the specific position, thereby completing inserting of the target pixel into the specific position. These examples are not meant to be a limitation of the present invention, however.
Additionally, in one embodiment of the present invention, STEP 505 further comprises more steps.
Please refer to
In one embodiment of the present invention, the signal characteristic may correspond to a frequency characteristic of the received image signal, and the signal analyzing unit 201 may utilize a pixel window to analyze the frequency characteristic of the received image signal. The pixel window may contain some number of pixels (e.g. 4 pixels) near a desired position of a target pixel on a specific horizontal line, a specific vertical line, or in a specific area, wherein the target pixel is the pixel required to be inserted into the desired position in the received image signal.
In another embodiment, the signal characteristic may correspond to an edge characteristic of the received image signal, and the signal analyzing unit 201 may calculate a difference value between two adjacent pixels in the received image signal to generate, for example, a total value containing all difference values between any two adjacent pixels on a specific horizontal line in a pixel window. In such a case, a larger total value implies greater variation of the received image signal, or implies that the received image signal contains more details.
Yet in another embodiment, if the signal characteristic corresponds to a frequency characteristic of the received image signal, the signal analyzing unit 201 may comprise a filter bank selected from the group consisting of high pass filters (HPFs), band pass filters (BPFs), and low pass filters (LPFs) for analyzing the frequency characteristic of the received image signal. For example, the signal analyzing unit 201 may comprises only one HPF. In another example, the signal analyzing unit 201 may comprises a HPF and a BPF, respectively having a set of tap coefficients {−1, 2, −1} and {−1 0 2 0 −1}, and the signal analyzing unit 201 thus utilizes these two filters to analyze the frequency band of the image signal. In such a case, the deciding unit 203 references values output from the HPF and the BPF to generate the appropriate parameter. For example, if the value output from the HPF is greater than a first threshold, and the value output from the BPF is less than a second threshold, the image signal will be determined as an image signal in a high frequency band, and thus the deciding unit 203 will generate a parameter suitable for a high frequency band signal as the appropriate parameter. These examples are not meant to be a limitation of the present invention, however. Please note that after understanding the principles of the present invention, those skilled in the art can easily determine values of the first threshold and the second threshold for the corresponding pixel windows. Additionally, the decision logic of the deciding unit 203 as described above can be implemented by hardware (e.g. circuitry) or software (e.g., firmware stored in a storing unit).
Some embodiments of the deciding unit 203 may utilize a look-up table to generate the appropriate parameter, and the look-up table is predetermined according to sufficient experimental results. For example, the look-up table may prerecord a plurality of pairs of analyzing results and appropriate parameters for future reference.
Please return to
Some embodiments of the image resizing device 101 may adjust the parameter used to resize a current frame according to the signal characteristic retrieved from the current frame, or may adjust the parameter used to resize the current frame according to the signal characteristic retrieved from a previous frame. Some other embodiments of the image resizing device 101 may reference the signal characteristic of more than one frame to determine the parameter.
Please note that although the signal receiving module 103, the image resizing module 105, the parameter adjusting module 107, and the delay module 109 are shown in
In the present invention, a parameter utilized for resizing an image signal by an image resizing module can be properly adjusted according to a signal characteristic (such as frequencies, edges, or others) of the image signal before the image resizing module actually utilizes the parameter to resize the image signal. In other words, the parameter can be dynamically adjusted to an appropriate parameter suitable for resizing each portion of the image signal, thereby improving output quality of the resized image signal. For example, the parameter is dynamically adjusted to resize the image signal according to its frequency band. Simply speaking, the parameter in the image resizing module of the present invention is adaptive to the content of the image signal.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.