TECHNICAL FIELD
[0001] The present disclosure relates to an image amplifying method, an image amplifying device, and a display apparatus.
BACKGROUND
[0002] Image amplification aims to increase resolution of an amplified image to meet people's visual requirements or practical requirements by applications, image amplification has been significantly applied in the fields such as HDTV and medical images.
[0003] An image includes high-frequency components and low-frequency components, wherein the high-frequency components are mainly distributed in edge-contour portions and detail portions of respective subjects in the image, and the low-frequency components are mainly distributed in non-edge-contour portions of respective subjects in the image.
[0004] At present, the same algorithm is usually adopted to amplify the high-frequency components and the low-frequency components of an image, and interpolation algorithm is the most frequently used image amplifying algorithm to amplify an image, those widely used of which include nearest neighbor interpolation, bilinear interpolation and cubic convolution interpolation. Among them, the nearest neighbor interpolation algorithm is the simplest, but it is also the most apt to produce discontinuous pixel values, leading to a blocking effect and thus blurring the image, quality effect of the amplified image is generally not perfect enough. The bilinear interpolation algorithm is relatively complicated, it will not cause the situation of discontinuous pixel values, the amplified image has a higher quality, but because the bilinear interpolation has a property of a low pass filter, the high-frequency components will be damaged, so it may cause the edge-contour portions and the detail portions of respective subjects in the image to blur to some extent. The cubic convolution interpolation algorithm is complicated, it can retain relatively sharp edge-contours and details, and can reduce or avoid jagged edge-contours and comb-like details of respective subjects in the amplified image, the interpolation effect is relatively real, and the image quality is more perfected after amplification.
[0005] In the techniques known to the inventors, one image amplifying algorithm is adopted to amplify an image, but based on the aforesaid techniques known to the inventors, since an image pixel grayscale in the low-frequency components of the image changes slightly, no matter adopting a simple algorithm or a complicated algorithm, amplifying effect on the low-frequency components of the image is equivalent; and for the high-frequency components of the image, better image quality can be achieved by using a more complicated algorithm, but for both the high-frequency components and the low-frequency components of the image, an additional calculation amount will be increased in case of using a complicated algorithm to amplify, so it is impossible to ensure both the image quality of the amplified image and a low operation amount of the amplification process at the same time.
SUMMARY
[0006] The embodiments of the present disclosure provide an image amplifying method, an image amplifying device, and a display apparatus, which can ensure image quality of the amplified image while reducing the operation amount.
[0007] In a first aspect, an image amplifying method is provided, comprising steps of:
obtaining, by an image amplifying device, high-frequency components and low-frequency components of a source image;
performing, by the image amplifying device, pixel interpolation on the low-frequency components of the source image through a first interpolation algorithm, to obtain a low-frequency sub-image;
performing, by the image amplifying device, pixel interpolation on the high-frequency components of the source image through a second interpolation algorithm, to obtain a high-frequency sub-image; and
merging, by the image amplifying device, the low-frequency sub-image and the high-frequency sub-image, to obtain a merged image;
wherein the first interpolation algorithm and the second interpolation algorithm adopt different algorithms.
[0008] Optionally, the image amplifying device obtains the high-frequency components and the low-frequency components of the source image through a wavelet packet decomposition scheme.
[0009] Optionally, the image amplifying device merges the low-frequency sub-image and the high-frequency sub-image, through a wavelet packet inverse transform, to obtain the merged image.
[0010] Optionally, prior to obtaining, by an image amplifying device, high-frequency components and low-frequency components of a source image, the method further comprises:
performing, by the image amplifying device, a RGB-YUV space transform on the source image.
[0011] Optionally, after merging, by the image amplifying device, the low-frequency sub-image and the high-frequency sub-image to obtain a merged image, the method further comprises:
performing, by the image amplifying device, a YUV-RGB space inverse transform on the merged image.
[0012] Optionally, the first interpolation algorithm includes: a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a cubic convolution interpolation algorithm; and
the second interpolation algorithm includes: a nearest neighbor interpolation algorithm, and cubic convolution interpolation algorithm.
[0013] Optionally, the first interpolation algorithm is a bilinear interpolation algorithm; and the step of performing, by the image amplifying device, pixel interpolation on the low-frequency components of the source image through a first interpolation algorithm to obtain a low-frequency sub-image comprises:
selecting, by the image amplifying device, four pixel dots adjacent to a pixel dot to be interpolated in the low-frequency components of the source image;
obtaining, by the image amplifying device, a pixel grayscale difference in a horizontal direction, a pixel grayscale difference in a vertical direction, and a pixel grayscale in a diagonal direction of the four pixel dots adjacent to the pixel dot to be interpolated, according to locations and grayscales of the four pixel dots adjacent to the pixel dot to be interpolated;
obtaining, by the image amplifying device, distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, according to the pixel grayscale difference in a horizontal direction, the pixel grayscale difference in a vertical direction, and the pixel grayscale in a diagonal direction;
setting, by the image amplifying device, weighting factors for the four pixel dots adjacent to the pixel dot to be interpolated, according to the distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated; and
performing, by the image amplifying device, pixel interpolation on the pixel dot to be interpolated, through the bilinear interpolation algorithm, according to the weighting factors, to obtain an interpolated low-frequency sub-pixel image.
[0014] In a second aspect, an image amplifying device is provided, comprising:
an image decomposition unit configured to obtain high-frequency components and low-frequency components of a source image;
an image interpolation unit configured to perform pixel interpolation on the low-frequency components of the source image obtained by the image decomposition unit, through a first interpolation algorithm, to obtain a low-frequency sub-image;
the image interpolation unit further configured to perform pixel interpolation on the high-frequency components of the source image obtained by the image decomposition unit, through a second interpolation algorithm, to obtain a high-frequency sub-image; and
an image merging unit configured to merge the low-frequency sub-image and the high-frequency sub-image obtained by the image interpolation unit, to obtain a merged image;
wherein the first interpolation algorithm and the second interpolation algorithm adopt different algorithms.
[0015] Optionally, the image decomposition unit is configured to obtain the high-frequency components and the low-frequency components of the source image through a wavelet packet decomposition scheme.
[0016] Optionally, the image merging unit is configured to merge the low-frequency sub-image and the high-frequency sub-image obtained by the image interpolation unit, through a wavelet packet inverse transform, to obtain the merged image.
[0017] Optionally, the image amplifying device further comprises: a transform unit configured to perform a RGB-YUV space transform on the source image.
[0018] Optionally, the transform unit is further configured to perform a YUV-RGB space inverse transform on the merged image.
[0019] Optionally, the first interpolation algorithm includes: a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a cubic convolution interpolation algorithm; and
the second interpolation algorithm includes: a nearest neighbor interpolation algorithm, and cubic convolution interpolation algorithm.
[0020] Optionally, the first interpolation algorithm is a bilinear interpolation algorithm, and the image interpolation unit comprises:
a sampling sub-unit configured to select four pixel dots adjacent to a pixel dot to be interpolated in the low-frequency components of the source image;
a pixel grayscale difference obtaining sub-unit configured to obtain a pixel grayscale difference in a horizontal direction, a pixel grayscale difference in a vertical direction, and a pixel grayscale in a diagonal direction of the four pixel dots adjacent to the pixel dot to be interpolated which are selected by the sampling sub-unit, according to locations and grayscales of the four pixel dots adjacent to the pixel dot to be interpolated;
a distance obtaining sub-unit configured to obtain distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, according to the pixel grayscale difference in a horizontal direction, the pixel grayscale difference in a vertical direction, and the pixel grayscale in a diagonal direction which are obtained by the pixel grayscale difference obtaining sub-unit;
a weighting factor setting sub-unit configured to set weighting factors for the four pixel dots adjacent to the pixel dot to be interpolated, according to the distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, which are obtained by the distance obtaining sub-unit; and
an image interpolation sub-unit configured to perform pixel interpolation on the pixel dot to be interpolated through the bilinear interpolation algorithm according to the weighting factors set by the weighting factor setting sub-unit, to obtain an interpolated low-frequency sub-pixel image.
[0021] In a third aspect, a display apparatus is provided, comprising any the image amplifying device described above.
[0022] The image amplifying method, the image amplifying device, and the display apparatus provided in the embodiments of the present disclosure first obtains high-frequency components and low-frequency components of a source image, then performs pixel interpolation on the pixels of the low-frequency components through a first interpolation algorithm to obtain a low-frequency sub-image and performs pixel interpolation on the pixels of the high-frequency components through a second interpolation algorithm to obtain a high-frequency sub-image, and finally merges the low-frequency sub-image and the high-frequency sub-image to obtain a merged image. Because interpolation is performed respectively on the high-frequency components and the low-frequency components of the source image through different interpolation algorithms, it can ensure image quality of the amplified image while reducing the operation amount.
BRIEF DESCRIPTION OF THE DRAWINGS
[0023]
FIG. 1 is a schematic flowchart of the image amplifying method provided by an embodiment of the present disclosure;
FIG. 2 is a schematic flowchart of the image amplifying method provided by another embodiment of the present disclosure;
FIG. 3 is a schematic flowchart of adopting a wavelet packet decomposition to perform decomposition on the source image of a YUV space;
FIG. 4 is a schematic diagram of principle of adopting a wavelet packet decomposition to perform decomposition on the source image of a YUV space;
FIG. 5a is a schematic diagram of principle based on the bilinear interpolation algorithm, provided by an embodiment of the present disclosure;
FIG. 5b is a schematic flowchart of a method for performing pixel interpolation on the low-frequency components based on the bilinear interpolation algorithm, provided by an embodiment of the present disclosure;
FIG. 6 is a schematic flowchart of merging the low-frequency sub-image and the high-frequency sub-image through a wavelet packet inverse transform, provided by an embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram of the image amplifying device provided by an embodiment of the present disclosure; and
FIG. 8 is a schematic structural diagram of the image amplifying device provided by another embodiment of the present disclosure.
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0024] Hereinafter, the image amplifying method and the image amplifying device provided by the embodiments of the present disclosure will be described in detail with reference to the accompanying drawings, wherein like reference numerals are used to indicate like elements throughout. In the following description, to facilitate explanation, numerous details are given to provide a thorough understanding of one or more embodiments. However, apparently, the embodiments may also be implemented without using these details. In other examples, commonly known structures and devices are shown in a form of block diagram, to facilitate describing one or more embodiments.
[0025] Referring to FIG. 1, an embodiment of the present disclosure provides an image amplifying method comprising the following steps.
[0026] Step 101 is obtaining, by an image amplifying device, high-frequency components and low-frequency components of a source image.
[0027] Optionally, in step 101, the high-frequency components and the low-frequency components of the source image may be obtained by adopting a wavelet packet decomposition scheme; an optional step 101 is: obtaining, by the image amplifying device, the high-frequency components and the low-frequency components of the source image through a wavelet packet decomposition scheme,
wherein the wavelet packet decomposition is an extension of wavelet decomposition, the wavelet packet decomposition not only decomposes a low-frequency portion of an image, but also further decomposes a high-frequency portion of the image, and can further adaptively select a corresponding frequency band to match an image spectrum according to image signal characteristics and analysis requirements, it is a decomposition method more refined than the wavelet decomposition, and has more accurate analysis capability.
[0028] Step 102 is performing, by the image amplifying device, pixel interpolation on the low-frequency components of the source image through a first interpolation algorithm to obtain a low-frequency sub-image;
wherein the first interpolation algorithm adopted in step 102 may include: a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a cubic convolution interpolation algorithm.
[0029] Step 103 is performing, by the image amplifying device, pixel interpolation on the low-frequency components of the source image through a second interpolation algorithm to obtain a high-frequency sub-image;
wherein the second interpolation algorithm adopted in step 103 may include: a nearest neighbor interpolation algorithm, and cubic convolution interpolation algorithm.
[0030] Step 104 is merging, by the image amplifying device, the low-frequency sub-image and the high-frequency sub-image to obtain a merged image.
[0031] Optionally, in step 104, a wavelet packet inverse transform may be adopted to merge the low-frequency sub-image and the high-frequency sub-image.
[0032] The first interpolation algorithm and the second interpolation algorithm adopt different algorithms.
[0033] The image amplifying method in the embodiments of the present disclosure first obtains high-frequency components and low-frequency components of a source image, then performs pixel interpolation on the pixels of the low-frequency components through a first interpolation algorithm to obtain a low-frequency sub-image and performs pixel interpolation on the pixels of the high-frequency components through a second interpolation algorithm to obtain a high-frequency sub-image, and finally merges the low-frequency sub-image and the high-frequency sub-image to obtain a merged image. Because interpolation is performed respectively on the high-frequency components and the low-frequency components of the source image through different interpolation algorithms in the embodiments of the present disclosure, the image amplifying method and device provided by the embodiments of the present disclosure can ensure image quality of the amplified image while reducing the operation amount.
[0034] An embodiment of the present application provides another implementation of the image amplifying method, comprising the following steps, as shown in FIG. 2.
[0035] S201 is performing, by the image amplifying device, a RGB-YUV space transform on the source image;
wherein, through RGB-YUV space transform, the source image in a RGB color space can be transformed to the source image in a YUV color space; RGB is an industry color standard wherein various colors are obtained by changing three color channels of R-red, G-green, and B-blue and superimposing them on each other; YUV is a PAL (Phase Alteration Line) color coding method wherein a luminance signal Y of YUV and chrominance signals U, V of YUV are separated, and wherein because vision has a higher sensitivity for the luminance signal than the chrominance signals, through the RGB-YUV space transform, stability of the luminance signal of the original image can be ensured during the following interpolation process on the original image, and further it can be ensured that the amplified image has a good visual effect.
[0036] S202 is obtaining, by he image amplifying device, the high-frequency components and the low-frequency components of the source image through a wavelet packet decomposition scheme;
wherein, in step S202, the high-frequency components and the low-frequency components of the original image are obtained from the original image in the YUV color space, as shown in FIG. 3, step S202 comprises the following steps:
301, loading, by the image amplifying device, the source image in a YUV space;
302, performing, by the image amplifying device, single-scale one-dimension discrete wavelet packet decomposition on the source image in the YUV space;
referring to FIG. 4, first, the image amplifying device decomposes the source image in the YUV space through the wavelet packet decomposition scheme into low-frequency a1 and high-frequency d1, wherein the low-frequency a1 is represented by a corresponding low-frequency coefficient cA1, and the high-frequency d1 is represented by a corresponding high-frequency coefficient cD1; both cA1 and cD1 are wavelet coefficients generated during the wavelet packet decomposition; during the decomposition, information lost from the low-frequency a1 is captured by the high-frequency d1; then, in a next layer of decomposition, a1 is again decomposed two portions of low-frequency ala2 and high-frequency ald2, and corresponding high-frequency coefficient cA1A2 and low-frequency coefficient cA1D2 are generated, d1 is decomposed into two portions of low-frequency d1a2 and high-frequency dld2, and corresponding low-frequency coefficient cD1A2 and high-frequency coefficient cD1D2 are generated, information lost from the low-frequency a1a2 is captured by the high-frequency a1d2, information lost from the low-frequency d1a2 is captured by the high-frequency dld2; by parity of reasoning, it is possible to perform decomposition in an N-th layer. A value of N may be adjusted according to levels of the qualities of the source image and the target image. For example, relevance between coefficients of the source image in the YUV space is characterized by adopting an energy logarithm
as a cost function, a value of n to which the minimum M corresponds is calculated, which is an optimal basis of the wavelet decomposition, that is, the current N value, wherein x_{n} is the wavelet coefficient;
303, reconstructing, by the image amplifying device, the low-frequency component through the low-frequency coefficient obtained from the single-scale one-dimension discrete wavelet packet decomposition, and the high-frequency component through the high-frequency coefficient obtained from the single-scale one-dimension discrete wavelet packet decomposition;
in the case that the above N = 1, that is, only the low-frequency coefficient cA1 and the high-frequency coefficient cD1 are obtained, in step 303, the low-frequency component is reconstructed through the low-frequency coefficient cA1, the high-frequency component is reconstructed through the high-frequency coefficient cD1; in the case that N = 2, that is, the low-frequency coefficients cA1A2, cD1A2 and the high-frequency coefficients cA1D2, cD1D2 are obtained, in step 303, the low-frequency component is reconstructed through the low-frequency coefficients cA1A2, cD1A2, the high-frequency component is reconstructed through the high-frequency coefficients cA1D2, cD1D2.
[0037] Through the above steps 301-303, the image amplifying device obtains the high-frequency components and the low-frequency components of the source image.
[0038] S203 is performing, by the image amplifying device, pixel interpolation on the low-frequency components of the source image through a first interpolation algorithm to obtain a low-frequency sub-image.
[0039] Next, explanations are provided with the first interpolation algorithm being a bilinear interpolation algorithm as example. Referring to FIGS. 5a and 5b, step S203 is:
501, selecting, by the amplifying device, four pixel dots A, B, C, D adjacent to a pixel dot to be interpolated in the low-frequency components of the source image;
wherein the pixel dot to be interpolated is a virtual dot, since pixel dots in an image are arranged in rows and columns, when a pixel dot is being interpolated, any pixel dot interpolated has four adjacent pixel dots, and thus, in step 501, the four pixel dots A, B, C, D are pixel dots corresponding to any pixel dot interpolated among all pixel dots interpolated, by which an amplification scale can be achieved;
502, obtaining, by the image amplifying device, a pixel grayscale difference in a horizontal direction, a pixel grayscale difference in a vertical direction, and a pixel grayscale in a diagonal direction of the four pixel dots adjacent to the pixel dot to be interpolated, according to locations and grayscales of the four pixel dots adjacent to the pixel dot to be interpolated;
503, obtaining, by the image amplifying device, distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, according to the pixel grayscale difference in a horizontal direction, the pixel grayscale difference in a vertical direction, and the pixel grayscale in a diagonal direction.
504, setting, by the image amplifying device, weighting factors for the four pixel dots adjacent to the pixel dot to be interpolated, according to the distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated;
wherein, referring to FIG. 5a, in step 504, the image amplifying device obtains a displacement of the pixel dot to be interpolated with a horizontal direction and a displacement of the pixel dot to be interpolated with a vertical direction, according to the distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated; and performs normalization on the displacement of the pixel dot to be interpolated with a horizontal direction and the displacement of the pixel dot to be interpolated with a vertical direction, to obtain a normalized displacement dy of the pixel dot to be interpolated with a horizontal direction and a normalized displacement dx of the pixel dot to be interpolated with a vertical direction, and sets weighting factors for the four pixel dots adjacent to the pixel dot to be interpolated, according to dx and dy;
wherein, as shown in FIG. 5a, the above step 502 adopts dy to represent a pixel grayscale difference of a horizontal direction as:
wherein, as shown in FIG. 5a, the above step 502 adopts dx to represent a pixel grayscale difference of a vertical direction as:
the pixel grayscale difference between pixel dot A and pixel dot C in a first diagonal direction is:
the pixel grayscale difference between pixel dot B and pixel dot D in a second diagonal direction is:
a total pixel grayscale difference in diagonal directions of a rectangle formed by the four pixel dots shown in FIG. 5a is:
wherein a distance from the pixel dot to be interpolated to a diagonal direction of the pixel dot B and the pixel dot D is:
a distance from the pixel dot to be interpolated to a diagonal direction of the pixel dot A and the pixel dot C is:
in the above respective equations, f(m, n) is a grayscale correlation function of respective pixel dot, m is a coordinate in a horizontal direction, n is a coordinate in a vertical direction;
the magnitude of the pixel grayscale is the magnitude of the correlation, the smaller the correlation is, the more probably the pixel dot to be interpolated is in the direction; on the contrary, the more probably the pixel dot to be interpolated is away from the direction;
505, performing, by the image amplifying device, pixel interpolation on the pixel dot to be interpolated, through the bilinear interpolation algorithm, according to the weighting factors, to obtain an low-frequency sub-pixel image.
[0040] In step 505, first the bilinear interpolation algorithm adopted is determined according to an absolute value
D_Val of the differences between any two of
C(d_H),
C(d_H),
and C(d_D), calculated as below:
[0041] The threshold is set as T, if
D_Val≤
T, the bilinear interpolation algorithm is adopted;
if
D_
Val>
T, it needs to be processed separately:
if D_Val_HV>T∥D_Val_HD>T, bilinear interpolation algorithm is adopted;
if D_Val_HT>T∥D_Val_VD>T, the bilinear interpolation algorithm is adopted;
if D_Val_HD>T∥D_Val_VD>T, the bilinear interpolation algorithm based on direction correlation is adopted.
[0042] Finally, the weighting factors are substituted into the corresponding bilinear interpolation algorithm as coefficients of respective directions, to obtain the pixel grayscale to be interpolated.
[0043] S204 is performing, by the image amplifying device, pixel interpolation on the high-frequency components of the source image through a second interpolation algorithm to obtain a high-frequency sub-image.
[0044] In the embodiment of the present disclosure, in the case that the first interpolation algorithm adopts a bilinear interpolation algorithm, the second interpolation algorithm adopted should be an interpolation algorithm different from the bilinear interpolation algorithm, for example, cubic convolution interpolation algorithm, wherein it is a technique known to the inventors to perform pixel interpolation on the pixel by adopting the cubic convolution interpolation algorithm, no more details repeated herein.
[0045] S205 is merging, by the image amplifying device, the low-frequency sub-image and the high-frequency sub-image through a wavelet packet inverse transform to obtain a merged image.
[0046] Referring to FIG. 6, step S205 comprises:
601, merging all the low-frequency sub-images through a wavelet packet inverse transform to obtain a restored low-frequency component;
602, merging all the high-frequency sub-images through a wavelet packet inverse transform to obtain a restored high-frequency component;
wherein the restored low-frequency component may be defined as a low-frequency merged sub-image; the restored high-frequency component may be defined as a high-frequency merged sub-image; this process is an inverse process of FIG. 4, which is a technique known to the inventors, no more details repeated herein.
603, performing an N-layer one-dimension decomposition on the restored low-frequency component and the restored high-frequency component, respectively, to obtain a restored low-frequency coefficient and a restored high-frequency coefficient;
604, extracting a low-frequency coefficient of a low-frequency portion and a high-frequency coefficient of a high-frequency potion from the result of the decomposition;
605, reconstructing the N-layer low-frequency coefficient according to the low-frequency coefficient of the low-frequency portion, and reconstructing the N-layer high-frequency coefficient according to the high-frequency coefficient of the high-frequency potion; and
606, reconstructing a merged image according to the N-layer low-frequency coefficient and the N-layer high-frequency coefficient.
S206 is performing, by the image amplifying device, a YUV-RGB space inverse transform on the merged image.
[0047] Optimally, the interpolation algorithm in S203 may be: a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a cubic convolution interpolation algorithm; and the interpolation algorithm in S204 may be: a nearest neighbor interpolation algorithm, and cubic convolution interpolation algorithm.
[0048] The image amplifying method provided in the embodiments of the present disclosure first obtains high-frequency components and low-frequency components of a source image, then performs pixel interpolation on the pixels of the low-frequency components through a first interpolation algorithm to obtain a low-frequency sub-image and performs pixel interpolation on the pixels of the high-frequency components through a second interpolation algorithm to obtain a high-frequency sub-image, and finally merges the low-frequency sub-image and the high-frequency sub-image to obtain a merged image. Because interpolation is performed respectively on the high-frequency components and the low-frequency components of the source image through different interpolation algorithms, it can ensure image quality of the amplified image while reducing the operation amount.
[0049] Referring to FIG. 7, yet another embodiment of the present disclosure provides an image amplifying device 700, comprising:
an image decomposition unit 710 configured to obtain high-frequency components and low-frequency components of a source image;
an image interpolation unit 720 configured to perform pixel interpolation on the low-frequency components of the source image obtained by the image decomposition unit 710, through a first interpolation algorithm, to obtain a low-frequency sub-image;
the image interpolation unit 720 further configured to perform pixel interpolation on the high-frequency components of the source image obtained by the image decomposition unit 710, through a second interpolation algorithm, to obtain a high-frequency sub-image; and
an image merging unit 730 configured to merge the low-frequency sub-image and the high-frequency sub-image obtained by the image interpolation unit 720, to obtain a merged image;
wherein the first interpolation algorithm and the second interpolation algorithm adopt different algorithms.
[0050] The image amplifying device provided in the embodiments of the present disclosure first obtains high-frequency components and low-frequency components of a source image, then performs pixel interpolation on the pixels of the low-frequency components through a first interpolation algorithm to obtain a low-frequency sub-image and performs pixel interpolation on the pixels of the high-frequency components through a second interpolation algorithm to obtain a high-frequency sub-image, and finally merges the low-frequency sub-image and the high-frequency sub-image to obtain a merged image. Because interpolation is performed respectively on the high-frequency components and the low-frequency components of the source image through different interpolation algorithms, it can ensure image quality of the amplified image while reducing the operation amount.
[0051] Optionally, the image decomposition unit 710 is configured to obtain the high-frequency components and the low-frequency components of the source image through a wavelet packet decomposition scheme.
[0052] Optionally, the image merging unit 730 is configured to merge the low-frequency sub-image and the high-frequency sub-image obtained by the image interpolation unit, through a wavelet packet inverse transform, to obtain the merged image.
[0053] The decomposition performed by the image decomposition unit 710 on the source image can make reference to the implementation in step S202 described above, the merging process performed by the image merging unit 730 can make reference to the implementation in step S205 described above, no more details repeated here.
[0054] Optimally, the image amplifying device further comprises: a transform unit 740 configured to perform a RGB-YUV space transform on the source image.
[0055] Optionally, the transform unit 740 is further configured to perform a YUV-RGB space inverse transform on the merged image.
[0056] Through the RGB-YUV space transform, the source image in the RGB color space may be transformed to the source image in the YUV color space; through the YUV-RGB space inverse transform, the source image in the YUV color space may be transformed to the source image in the RGB color space. Because vision has a higher sensitivity for a luminance signal than for a chrominance signal, through the RGB-YUV space transform, stability of the luminance signal of the original image can be ensured during the following interpolation process on the original image, and further it can be ensured that the amplified image has a good visual effect. The YUV-RGB space inverse transform makes the amplified image still to be an image in the RGB color space.
[0057] Optionally, the first interpolation algorithm includes: a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a cubic convolution interpolation algorithm; and
the second interpolation algorithm includes: a nearest neighbor interpolation algorithm, and cubic convolution interpolation algorithm.
[0058] Further optionally, referring to FIG. 8, the first interpolation algorithm is a bilinear interpolation algorithm, and the image interpolation unit 720 comprises:
a sampling sub-unit 721 configured to select four pixel dots adjacent to a pixel dot to be interpolated in the low-frequency components of the source image;
a pixel grayscale difference obtaining sub-unit 722 configured to obtain a pixel grayscale difference in a horizontal direction, a pixel grayscale difference in a vertical direction, and a pixel grayscale in a diagonal direction of the four pixel dots adjacent to the pixel dot to be interpolated which are selected by the sampling sub-unit 721, according to locations and grayscales of the four pixel dots adjacent to the pixel dot to be interpolated;
a distance obtaining sub-unit 723 configured to obtain distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, according to the pixel grayscale difference in a horizontal direction, the pixel grayscale difference in a vertical direction, and the pixel grayscale in a diagonal direction which are obtained by the pixel grayscale difference obtaining sub-unit 722;
a weighting factor setting sub-unit 724 configured to set weighting factors for the four pixel dots adjacent to the pixel dot to be interpolated, according to the distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, which are obtained by the distance obtaining sub-unit 723; and
an image interpolation sub-unit 725 configured to perform pixel interpolation on the pixel dot to be interpolated through the bilinear interpolation algorithm according to the weighting factors set by the weighting factor setting sub-unit 724, to obtain an interpolated low-frequency sub-pixel image.
[0059] The image amplifying device provided in the embodiments of the present disclosure first obtains high-frequency components and low-frequency components of a source image, then performs pixel interpolation on the pixels of the low-frequency components through a first interpolation algorithm to obtain a low-frequency sub-image and performs pixel interpolation on the pixels of the high-frequency components through a second interpolation algorithm to obtain a high-frequency sub-image, and finally merges the low-frequency sub-image and the high-frequency sub-image to obtain a merged image. Because interpolation is performed respectively on the high-frequency components and the low-frequency components of the source image through different interpolation algorithms, it can ensure image quality of the amplified image while reducing the operation amount.
[0060] An embodiment of the present disclosure provides a display apparatus, comprising any image amplifying device described above, the display apparatus may be a display apparatus such as electronic paper, mobile phone, television, and digital photo frame etc.
[0061] The display apparatus provided in the embodiments of the present disclosure first obtains high-frequency components and low-frequency components of a source image, then performs pixel interpolation on the pixels of the low-frequency components through a first interpolation algorithm to obtain a low-frequency sub-image and performs pixel interpolation on the pixels of the high-frequency components through a second interpolation algorithm to obtain a high-frequency sub-image, and finally merges the low-frequency sub-image and the high-frequency sub-image to obtain a merged image. Because interpolation is performed respectively on the high-frequency components and the low-frequency components of the source image through different interpolation algorithms, it can ensure image quality of the amplified image while reducing the operation amount.
[0062] In the several embodiments provided by present application, it should be understood that the method, device, and apparatus disclosed may also be implemented by other manners. The device embodiments above described are merely illustrative, for example, the unit division is only a logical function division, and there may be other division manners in practical implementation, for example, a plurality of units or components may be combined or may be integrated into another apparatus, or some features may be omitted or not executed.
[0063] Those described above are only embodiments of the present disclosure, however, the protection scope of the present disclosure is not limited thereto, those skilled in the art can readily conceive variations or replacements within the technical range disclosed by the present disclosure, which should all fall into the protection scope of the present disclosure. Accordingly, the protection scope of the present disclosure should be subjected to the protection scope of the claims.
[0064] The present application claims priority of Chinese Patent Application No.
201410503761.9 filed on September 26, 2014, the disclosure of which is incorporated in entirety herein by reference as a portion of the present application.
1. An image amplifying method, comprising steps of:
obtaining, by an image amplifying device, high-frequency components and low-frequency components of a source image;
performing, by the image amplifying device, pixel interpolation on the low-frequency components of the source image through a first interpolation algorithm, to obtain a low-frequency sub-image;
performing, by the image amplifying device, pixel interpolation on the high-frequency components of the source image through a second interpolation algorithm, to obtain a high-frequency sub-image; and
merging, by the image amplifying device, the low-frequency sub-image and the high-frequency sub-image, to obtain a merged image;
wherein the first interpolation algorithm and the second interpolation algorithm adopt different algorithms.
2. The image amplifying method as claimed in claim 1, wherein the image amplifying device obtains the high-frequency components and the low-frequency components of the source image through a wavelet packet decomposition scheme.
3. The image amplifying method as claimed in claim 1 or 2, wherein the image amplifying device merges the low-frequency sub-image and the high-frequency sub-image, through a wavelet packet inverse transform, to obtain the merged image.
4. The image amplifying method as claimed in any of claims 1 to 3, wherein prior to obtaining, by an image amplifying device, high-frequency components and low-frequency components of a source image, the method further comprises:
performing, by the image amplifying device, a RGB-YUV space transform on the source image.
5. The image amplifying method as claimed in claim 4, wherein after merging, by the image amplifying device, the low-frequency sub-image and the high-frequency sub-image to obtain a merged image, the method further comprises:
performing, by the image amplifying device, a YUV-RGB space inverse transform on the merged image.
6. The image amplifying method as claimed in any of claims 1 to 5, wherein
the first interpolation algorithm includes: a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a cubic convolution interpolation algorithm; and
the second interpolation algorithm includes: a nearest neighbor interpolation algorithm, and cubic convolution interpolation algorithm.
7. The image amplifying method as claimed in any of claims 1 to 6, wherein the first interpolation algorithm is a bilinear interpolation algorithm; and the step of performing, by the image amplifying device, pixel interpolation on the low-frequency components of the source image through a first interpolation algorithm to obtain a low-frequency sub-image comprises:
selecting, by the image amplifying device, four pixel dots adjacent to a pixel dot to be interpolated in the low-frequency components of the source image;
obtaining, by the image amplifying device, a pixel grayscale difference in a horizontal direction, a pixel grayscale difference in a vertical direction, and a pixel grayscale in a diagonal direction of the four pixel dots adjacent to the pixel dot to be interpolated, according to locations and grayscales of the four pixel dots adjacent to the pixel dot to be interpolated;
obtaining, by the image amplifying device, distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, according to the pixel grayscale difference in a horizontal direction, the pixel grayscale difference in a vertical direction, and the pixel grayscale in a diagonal direction;
setting, by the image amplifying device, weighting factors for the four pixel dots adjacent to the pixel dot to be interpolated, according to the distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated; and
performing, by the image amplifying device, pixel interpolation on the pixel dot to be interpolated, through the bilinear interpolation algorithm, according to the weighting factors to obtain an interpolated low-frequency sub-pixel image.
8. An image amplifying device, comprising:
an image decomposition unit configured to obtain high-frequency components and low-frequency components of a source image;
an image interpolation unit configured to perform pixel interpolation on the low-frequency components of the source image obtained by the image decomposition unit, through a first interpolation algorithm, to obtain a low-frequency sub-image;
the image interpolation unit further configured to perform pixel interpolation on the high-frequency components of the source image obtained by the image decomposition unit, through a second interpolation algorithm, to obtain a high-frequency sub-image; and
an image merging unit configured to merge the low-frequency sub-image and the high-frequency sub-image obtained by the image interpolation unit, to obtain a merged image;
wherein the first interpolation algorithm and the second interpolation algorithm adopt different algorithms.
9. The image amplifying device as claimed in claim 8, wherein the image decomposition unit is configured to obtain the high-frequency components and the low-frequency components of the source image through a wavelet packet decomposition scheme.
10. The image amplifying device as claimed in claim 8 or 9, wherein the image merging unit is configured to merge the low-frequency sub-image and the high-frequency sub-image obtained by the image interpolation unit, through a wavelet packet inverse transform, to obtain the merged image.
11. The image amplifying device as claimed in any of claims 8 to 10, further comprising:
a transform unit configured to perform a RGB-YUV space transform on the source image.
12. The image amplifying device as claimed in claim 11, wherein the transform unit is further configured to perform a YUV-RGB space inverse transform on the merged image.
13. The image amplifying device as claimed in any of claims 8 to 12, wherein the first interpolation algorithm includes: a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a cubic convolution interpolation algorithm; and
the second interpolation algorithm includes: a nearest neighbor interpolation algorithm, and cubic convolution interpolation algorithm.
14. The image amplifying device as claimed in any of claims 8 to 13, wherein the first interpolation algorithm is a bilinear interpolation algorithm, and the image interpolation unit comprises:
a sampling sub-unit configured to select four pixel dots adjacent to a pixel dot to be interpolated in the low-frequency components of the source image;
a pixel grayscale difference obtaining sub-unit configured to obtain a pixel grayscale difference in a horizontal direction, a pixel grayscale difference in a vertical direction, and a pixel grayscale in a diagonal direction of the four pixel dots adjacent to the pixel dot to be interpolated which are selected by the sampling sub-unit, according to locations and grayscales of the four pixel dots adjacent to the pixel dot to be interpolated;
a distance obtaining sub-unit configured to obtain distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, according to the pixel grayscale difference in a horizontal direction, the pixel grayscale difference in a vertical direction, and the pixel grayscale in a diagonal direction which are obtained by the pixel grayscale difference obtaining sub-unit;
a weighting factor setting sub-unit configured to set weighting factors for the four pixel dots adjacent to the pixel dot to be interpolated, according to the distances from the pixel dot to be interpolated to the four pixel dots adjacent to the pixel dot to be interpolated, which are obtained by the distance obtaining sub-unit; and
an image interpolation sub-unit configured to perform pixel interpolation on the pixel dot to be interpolated through the bilinear interpolation algorithm according to the weighting factors set by the weighting factor setting sub-unit, to obtain an interpolated low-frequency sub-pixel image.
15. A display apparatus, comprising the image amplifying device as claimed in any of claims 8 to 14.