[go: up one dir, main page]

CN101783138B - Image-scaling method and device thereof - Google Patents

Image-scaling method and device thereof Download PDF

Info

Publication number
CN101783138B
CN101783138B CN2009101050990A CN200910105099A CN101783138B CN 101783138 B CN101783138 B CN 101783138B CN 2009101050990 A CN2009101050990 A CN 2009101050990A CN 200910105099 A CN200910105099 A CN 200910105099A CN 101783138 B CN101783138 B CN 101783138B
Authority
CN
China
Prior art keywords
pixel
target image
edge information
matrix
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2009101050990A
Other languages
Chinese (zh)
Other versions
CN101783138A (en
Inventor
邱香膏
谢清鹏
周建同
朱雄羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2009101050990A priority Critical patent/CN101783138B/en
Publication of CN101783138A publication Critical patent/CN101783138A/en
Application granted granted Critical
Publication of CN101783138B publication Critical patent/CN101783138B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本发明提供了一种图像缩放的方法,包括:获取目标图像的像素点对应在源图像的像素点的边沿信息;根据所述边沿信息,计算目标图像的像素点的像素值。本发明还公开了一种图像缩放的装置,包括:边沿信息获取单元,用于获取目标图像的像素点对应在源图像的像素点的边沿信息;像素值计算单元,用于根据所述边沿信息,计算目标图像的像素点的像素值。利用本发明可以使得图像边沿强度大的位置其缩放后的相应位置保持的清楚稳定,而图像边沿强度小的地方其缩放后相应位置显得柔和,避免了图像的闪烁的问题。

Figure 200910105099

The present invention provides a method for zooming an image, comprising: obtaining edge information corresponding to pixels of a target image to pixels of a source image; and calculating pixel values of pixels of the target image according to the edge information. The present invention also discloses an image zooming device, comprising: an edge information acquisition unit, used to acquire edge information corresponding to a pixel point of a source image in a pixel point of a target image; a pixel value calculation unit, used to obtain , to calculate the pixel value of the pixel of the target image. The present invention can keep the zoomed corresponding position of the position with high edge intensity of the image clear and stable, while the zoomed corresponding position of the position with small edge intensity of the image appears soft, avoiding the problem of image flickering.

Figure 200910105099

Description

Image zooming method and device
Technical Field
The present invention relates to the field of images, and in particular, to a method and an apparatus for scaling an image.
Background
In the process of video playing, a user wants to change the size of an image at will according to his or her needs, so the scaling of the image becomes more and more important. The typical scaling algorithm of the current image scaling is a bicubic algorithm, which is to calculate the target position of each pixel point in a source image by traversing each pixel point of a target image, and calculate the value of the target pixel point of the image according to the pixel values around the position.
The inventor finds in the invention process that the prior art has at least the following problem that the processed zoom image has a flicker phenomenon because the bicubic algorithm method comprises cubic operation.
Disclosure of Invention
In order to solve the problem of flickering of the zoomed image, an embodiment of the present invention provides a method and an apparatus for zooming an image, which specifically include:
a method of image scaling, comprising: the method comprises the following steps of obtaining edge information of pixel points of a target image corresponding to pixel points of a source image, specifically: acquiring pixel values of all pixel points of a source image, and corresponding the pixel points of a target image to the pixel valuesTaking n from the pixel point of the source image as the center1×n1Adjacent pixel points of n1×n1The pixel values of adjacent pixels form a matrix A, and according to the matrix A, edge information of pixels of the target image corresponding to pixels of the source image is calculated by applying a formula y to L A, wherein the matrix L is a preset edge extraction coefficient, and the matrix L is n1×n1Order matrix, said n1The image is a natural number larger than 1, and y is edge information of pixel points of the target image corresponding to pixel points of the source image; calculating the pixel value of the pixel point of the target image according to the edge information, specifically: calculating a scaling filter coefficient F of a pixel point of the target image according to the edge information, wherein the coefficient is n3×n3Matrix of orders, said n3Is a natural number greater than 1; obtaining a matrix E, wherein n is taken by taking a pixel point q of the target image corresponding to a pixel point in the source image as a center3×n3A neighboring pixel point consisting of n3×n3The pixel values of the pixel points form the matrix E; and calculating the pixel value of the pixel point of the target image according to the scaling filter coefficient F and the matrix E.
An apparatus for image scaling, comprising: the edge information acquisition unit is used for acquiring edge information of pixel points of a target image corresponding to pixel points of a source image; a pixel value calculating unit, configured to calculate, according to the edge information, a pixel value of a pixel point of the target image, specifically: calculating a scaling filter coefficient F of a pixel point of the target image according to the edge information, wherein the coefficient is n3×n3Matrix of orders, said n3Is a natural number greater than 1; obtaining a matrix E, wherein n is taken by taking a pixel point q of the target image corresponding to a pixel point in the source image as a center3×n3A neighboring pixel point consisting of n3×n3The pixel values of the pixel points form the matrix E; calculating the pixel value of a pixel point of a target image according to the scaling filter coefficient F and the matrix E; the edge information acquiring unit specifically includes a pixel value acquiring first subunit and an edgeAn edge information calculation subunit; the pixel value acquisition first subunit is used for acquiring pixel values of all pixel points of the source image, taking n from the pixel points of the target image corresponding to the pixel points of the source image as the center1×n1Adjacent pixel points of n1×n1The pixel values of adjacent pixel points form a matrix A; the edge information calculating subunit is configured to obtain, according to the matrix a, edge information of pixels of the target image corresponding to pixels of the source image, and specifically, calculate, according to the matrix a, edge information of pixels of the target image corresponding to pixels of the source image by applying a formula y ═ L × a, where the matrix L is a preset edge extraction coefficient, and the matrix L is n1×n1Order matrix, said n1And y is the edge information of the pixel point of the target image corresponding to the pixel point of the source image, and is a natural number larger than 1.
The embodiment of the invention provides a method and a device for zooming an image, which realize zooming the image according to edge information. Therefore, the scaling amplitude of the strong edge texture, namely the pixel point with large edge information is large, and the corresponding scaled position of the position with large edge intensity of the image can be kept clear and stable. For the texture with weaker edge strength, namely the pixel point with small edge information, the zooming amplitude is smaller, so that the corresponding position of the zoomed position with small edge strength of the image is soft, and the problem of image flicker is avoided.
Drawings
FIG. 1 is a flowchart of a method for image scaling according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for image scaling according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an image scaling apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an image scaling apparatus according to another embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, the following detailed description of the invention is provided in conjunction with the accompanying drawings.
An image scaling method according to an embodiment of the present invention is shown in fig. 1, and includes:
s101: acquiring edge information of pixel points of a target image corresponding to pixel points of a source image;
s102: and calculating the pixel value of the pixel point of the target image according to the edge information.
In the embodiment of the invention, the image is zoomed according to the size of the edge information. Therefore, the scaling amplitude of the strong edge texture, namely the pixel point with large edge information is large, and the corresponding scaled position of the position with large edge intensity of the image can be kept clear and stable. For the texture with weaker edge strength, namely the pixel point with small edge information, the scaling amplitude is smaller, so that the corresponding position of the image with small edge strength appears soft after scaling.
An image scaling method according to an embodiment of the present invention is shown in fig. 2, and a possible scenario is to scale an image output from a DVD, where the scaled image will meet the resolution required by a mobile television client, and then enter an encoder for encoding, where the encoder includes: MPEG-4, H.264 encoder, etc. the code stream encoded by the encoder can be directly played for the mobile phone or sent to the wireless network for live broadcast. The image scaling method specifically comprises the following steps:
s201: according to the image scaling, acquiring edge information of pixel points of the source image corresponding to pixel points of a target image;
firstly, the pixel values of all pixel points of a source image are obtained.
Secondly, according to the image scaling, determining the pixel value of the pixel point of the scaled target image corresponding to the pixel point in the source image before scaling; for example: the source image has 3i multiplied by 3j pixel points, if the target image has i multiplied by j pixel points, the image is reducedI.e. scaled toAnd determining that each pixel point in the i multiplied by j target images corresponds to the pixel value of the pixel point of the source image. Respectively taking the pixel points of the target image corresponding to the pixel points of the source image as the center, and taking n1×n1Each adjacent pixel point (the pixel point containing the target image corresponds to the pixel point of the source image) is formed by the n1×n1The pixel values of the pixel points form a matrix AijWherein n is1Is a natural number greater than 1.
And then, acquiring edge information of pixel points in the source image corresponding to the pixel points of the target image. Edge information yijThe predetermined edge extraction coefficient L and the matrix A can be used for obtainingijPerforming a convolution operation yij=L*AijThat is, there may be many kinds of edge extraction coefficients, and only three of them are listed here:
- 1 - 1 - 1 - 1 8 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 9 - 1 - 1 - 1 - 1 - 1 - 2 - 1 - 2 4 - 2 - 1 - 2 - 1
according to the method for extracting the edge information of the image, the edge information y is extracted from the pixel points of the source image corresponding to the pixel points of all the target imagesijThis results in an i × j edge information matrix B.
For example: assuming that a pixel point of the target image corresponding to a pixel point in the source image is a pixel point p, taking 9 adjacent pixel points (including p points) of 3 × 3 with the pixel point p as the center, and the pixel values of the 9 pixel points form the following matrix, wherein the pixel value of the p point is x4
x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8
The edge extraction coefficients preferably adopted by the embodiment of the invention are as follows:
- 1 - 1 - 1 - 1 8 - 1 - 1 - 1 - 1
then the value y of the edge information of pixel point p is:
y=x0×(-1)+x1×(-1)+x2×(-1)+x3×(-1)+x4×8+x5×(-1)+x6×(-1)+x7×(-1)+x8×(-1)
by extracting the edge information of the pixel points of all the target images corresponding to the pixel points in the source image, the edge information meeting the resolution required by a user can be obtained and is used for controlling the size of the coefficient of the zoom filter taking the pixel points of the target images corresponding to the pixel points in the source image as the center.
S202: performing edge filtering on the obtained edge information;
the edge information extracted in S201 may cause the image to appear hard due to the jump of the strong edge information and the weak edge information, so that the subjective quality of the image is prevented from being deteriorated due to the sudden change of the strength of the edge information. At this time, edge filtering needs to be performed on the extracted edge information matrix, so that adjacent edge information of the edge information matrix obtains smooth transition, and the edge filtering process is similar to the process of extracting the edge information in S201: respectively with the obtained edge information yijAs a center, take n2×n2Adjacent edge information (including the edge information) from the n2×n2Edge information forming matrix CijWherein n is2Is a natural number greater than 1, using CijConvolving with the edge filter coefficient K to obtain filtered edge information y'ij. For all edge information y in the edge information matrix BijFiltering is performed so that an i × j filtered edge information matrix D is obtained. There are many kinds of edge filter coefficients, and only three of them are listed here:
1 1 1 1 4 1 1 1 1 1 1 1 1 4 1 1 1 1 1 2 1 2 4 2 1 2 1
for example: assume that the certain obtained edge information is y43 × 3 adjacent edge information and y centered on the edge information4The matrix is formed by the above-mentioned materials,
y 0 y 1 y 2 y 3 y 4 y 5 y 6 y 7 y 8
the edge filter coefficients preferably adopted by the embodiment of the invention are as follows:
1 1 1 1 4 1 1 1 1
then the value y 'of the edge information after filtering'4Comprises the following steps:
y′4=y0×1+y1×1+y2×1+y3×1+y4×4+y5×1+y6×1+y7×1+y8×1
s203: and carrying out image scaling on the source image by utilizing the edge information after edge filtering.
Obtaining edge information y 'after edge filtering by utilizing S202'ijCalculating the scaling filter coefficient F of the pixel point of the target imageij. Based on the derived scaling filter coefficients FijAnd the pixel value calculation of each pixel point after the zooming is finished through the filtering processing of the filter, so that the zooming processing of the image is realized. The method specifically comprises the following steps:
first, edge information y 'after edge filtering obtained in S202 is used'ijTo calculate the scaling filter coefficient F of the pixel point of the target imageij
The scaling filter coefficients of embodiments of the present invention may be extracted by the following sinc function,
<math> <mrow> <mi>f</mi> <mrow> <mo>(</mo> <mi>a</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open='{' close=''> <mtable> <mtr> <mtd> <mfrac> <mrow> <mi>sin</mi> <mrow> <mo>(</mo> <mi>&pi;</mi> <mfrac> <mi>a</mi> <mi>d</mi> </mfrac> <mo>)</mo> </mrow> </mrow> <mrow> <mi>&pi;</mi> <mfrac> <mi>a</mi> <mi>d</mi> </mfrac> </mrow> </mfrac> <mo>&times;</mo> <mi>sin</mi> <mo>[</mo> <mfrac> <mi>&pi;</mi> <mn>2</mn> </mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>+</mo> <mfrac> <mi>a</mi> <mrow> <mi>N</mi> <mo>&times;</mo> <mi>d</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>]</mo> <mo>,</mo> <mo>|</mo> <mi>a</mi> <mo>|</mo> <mo>&lt;</mo> <mi>N</mi> <mo>&times;</mo> <mi>d</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> <mo>,</mo> <mo>|</mo> <mi>a</mi> <mo>|</mo> <mo>&GreaterEqual;</mo> <mi>N</mi> <mo>&times;</mo> <mi>d</mi> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mn>2.1</mn> </mrow> </math>
a in the formula 2.1 represents the distance between the pixel point of the target image corresponding to the pixel point in the source image and other pixel points in the source image, for example, the distance between the pixel point of the target image corresponding to the pixel point in the source image and a certain pixel point in the source image is the distance of 2 unit pixels, and then a can be 2; n is the number of single side lobe, when N is N3Then, it means that a certain pixel point is taken as the center, where n3Is a natural number greater than 1, and n is selected3×n3Each pixel point is taken as the adjacent area of the pixel point; d is a decimation factor, which can be represented by the formula:
d=2/255*y+1 2.2
where y is edge information, which may be the edge information in S201, or the edge after filtering in S202.
Respectively calculating a pixel point q of a pixel point of a target image corresponding to a source image and a pixel point n of the source image with the pixel point q as a center3×n3The distance of each pixel point is obtained3×n3The value of a; then d corresponding to the pixel point q is obtained according to a formula 2.2, and then n is respectively added3×n3The value of a and d are substituted into a formula 2.1, and the scaling filter coefficient F of the pixel point q of the target image can be obtained, wherein the scaling filter coefficient F is n3×n3An order matrix.
Secondly, according to the pixel values of the pixel points obtained in the step S201, taking n from the pixel point q of the target image corresponding to the pixel point in the source image as a center3×n3A neighboring pixel point (including the pixel point q) from the n3×n3The pixel values of the individual pixels form a matrix E.
Then, using n obtained as described above3×n3Filter coefficient F of the order scaling filter, and the above n3×n3Matrix E, corresponding the pixel point of the target image to the pixel of the source imageThe pixel values of the points are filtered.
According to the method described in S203, the same filtering process is performed on all the pixels of the target image corresponding to the pixels of the source image, so that the pixel values of all the scaled pixels of the target image can be obtained, and image scaling is achieved.
For example: according to the above method, if n3If the value is 6, calculating a filter coefficient F of the scaling filter of the pixel point q of the source image corresponding to the pixel point of the target image as:
f ( a 11 ) f ( a 12 ) f ( a 13 ) f ( a 14 ) f ( a 15 ) f ( a 16 ) f ( a 21 ) f ( a 22 ) f ( a 23 ) f ( a 24 ) f ( a 25 ) f ( a 26 ) f ( a 31 ) f ( a 32 ) f ( a 33 ) f ( a 34 ) f ( a 35 ) f ( a 36 ) f ( a 41 ) f ( a 42 ) f ( a 43 ) f ( a 44 ) f ( a 45 ) f ( a 46 ) f ( a 51 ) f ( a 52 ) f ( a 53 ) f ( a 54 ) f ( a 55 ) f ( a 56 ) f ( z 61 ) f ( z 62 ) f ( z 63 ) f ( z 64 ) f ( z 65 ) f ( z 66 )
and obtaining the matrix E, wherein the matrix E is a 6 × 6-order matrix:
c 11 c 12 c 13 c 14 c 15 c 16 c 21 c 22 c 23 c 24 c 25 c 26 c 31 c 32 c 33 c 34 c 35 c 36 c 41 c 42 c 43 c 44 c 45 c 46 c 51 c 52 c 53 c 54 c 55 c 56 c 61 c 62 c 63 c 64 c 65 c 66
then the scaled pixel value x' of the target pixel point may be:
<math> <mrow> <msup> <mi>x</mi> <mo>&prime;</mo> </msup> <mo>=</mo> <mfrac> <mrow> <mi>f</mi> <mrow> <mo>(</mo> <msub> <mi>a</mi> <mn>11</mn> </msub> <mo>)</mo> </mrow> <mo>&times;</mo> <msub> <mi>c</mi> <mn>11</mn> </msub> <mo>+</mo> <mi>f</mi> <mrow> <mo>(</mo> <msub> <mi>a</mi> <mn>12</mn> </msub> <mo>)</mo> </mrow> <mo>&times;</mo> <msub> <mi>c</mi> <mn>12</mn> </msub> <mo>+</mo> <mo>.</mo> <mo>.</mo> <mo>.</mo> <mo>.</mo> <mo>.</mo> <mo>.</mo> <mo>+</mo> <mi>f</mi> <mrow> <mo>(</mo> <msub> <mi>a</mi> <mn>66</mn> </msub> <mo>)</mo> </mrow> <mo>&times;</mo> <msub> <mi>c</mi> <mn>66</mn> </msub> </mrow> <mrow> <mi>f</mi> <mrow> <mo>(</mo> <msub> <mi>a</mi> <mn>11</mn> </msub> <mo>)</mo> </mrow> <mo>+</mo> <mi>f</mi> <mrow> <mo>(</mo> <msub> <mi>a</mi> <mn>12</mn> </msub> <mo>)</mo> </mrow> <mo>+</mo> <mo>.</mo> <mo>.</mo> <mo>.</mo> <mo>.</mo> <mo>.</mo> <mo>.</mo> <mo>+</mo> <mi>f</mi> <mrow> <mo>(</mo> <msub> <mi>a</mi> <mn>66</mn> </msub> <mo>)</mo> </mrow> </mrow> </mfrac> </mrow> </math>
in the embodiment of the invention, each target pixel point corresponds to one scaling filter coefficient, so that the scaling filter coefficients of different target pixel points are obtained according to the size of the edge information, and the pixel value of the target pixel point is calculated by using the scaling filter coefficients. Therefore, the scaling amplitude of the strong edge texture, namely the pixel point with large edge information is large, and the corresponding scaled position of the position with large edge intensity of the image can be kept clear and stable. For the texture with weaker edge strength, namely the pixel point with small edge information, the scaling amplitude is smaller, so that the corresponding position of the scaled position with the smaller edge strength of the image is soft, and the soft texture has smoother change with the surrounding pixels, thereby improving the coding efficiency of the image in the compression process.
Fig. 3 shows a schematic structural diagram of an image scaling apparatus according to an embodiment of the present invention, including:
an edge information obtaining unit 31, configured to obtain edge information of a pixel point of the target image corresponding to a pixel point of the source image;
the specific process can be referred to the description in S201.
And the pixel value calculating unit 32 is configured to calculate pixel values of pixel points of the target image according to the edge information.
The specific process can be referred to the description in S203.
Further: the edge information acquiring unit 31 specifically includes a pixel value acquiring first sub-unit 311 and an edge information calculating sub-unit 312; a pixel value obtaining first subunit 311, configured to obtain pixel values of all pixel points of the source image, and take n from the pixel point of the target image corresponding to the pixel point of the source image as a center1×n1Adjacent pixel points of n1×n1The pixel values of adjacent pixel points form a matrix A; and the edge information calculating subunit 312 is configured to obtain, according to the obtained pixel value, edge information of a pixel point of the target image corresponding to a pixel point of the source image.
The specific process can be referred to the description in S201.
Further: the pixel value calculating unit 32 specifically includes a scaling filter coefficient calculating unit 321, a pixel value obtaining subunit 322, and a pixel value calculating subunit 323; wherein,
a scaling filter coefficient calculating unit 321, configured to calculate a scaling filter coefficient F of a pixel point of the target image according to the edge information, where the coefficient is n3×n3Matrix of orders, said n3Is a natural number greater than 1; a second sub-unit 322 for obtaining pixel values, configured to obtain a matrix E, where n is taken from a pixel point q in the source image corresponding to a pixel point of the target image as a center3×n3A neighboring pixel point consisting of n3×n3The pixel values of the pixel points form the matrix E; and the pixel value operator unit 323 is used for calculating the pixel value of the pixel point of the target image according to the scaling filter coefficient F and the matrix E.
The specific process can be referred to the description in S203.
Optionally, as shown in fig. 4, the image scaling apparatus may further include: an edge filtering unit 33, configured to perform edge filtering on the edge information, where the pixel value calculating unit 32 is further configured to calculate a pixel value of a pixel point of the target image according to the edge information after the edge filtering.
The specific process can be seen in the description in S202.
In the embodiment of the invention, the image scaling is realized according to the edge information. Therefore, the scaling amplitude of the strong edge texture, namely the pixel point with large edge information is large, and the corresponding scaled position of the position with large edge intensity of the image can be kept clear and stable. For the texture with weaker edge strength, namely the pixel point with small edge information, the scaling amplitude is smaller, so that the corresponding position of the scaled position with the smaller edge strength of the image is soft, and the soft texture has smoother change with the surrounding pixels, thereby improving the coding efficiency of the image in the compression process.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a mobile device (which may be a mobile phone, a personal computer, a media player, etc.) to execute the methods according to the embodiments of the present invention. Storage media, as referred to herein, are: ROM/RAM, magnetic disks, optical disks, and the like.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (7)

1.一种图像缩放的方法,其特征在于,包括: 1. A method for image scaling, comprising: 获取目标图像的像素点对应在源图像的像素点的边沿信息,具体为:获取源图像的全部像素点的像素值,并以目标图像的像素点对应在源图像的像素点为中心,取n1×n1个相邻像素点,由所述n1×n1个相邻像素点的像素值构成矩阵A,根据所述矩阵A,应用公式y=L*A计算所述目标图像的像素点对应在源图像的像素点的边沿信息,其中,所述矩阵L为预设的边沿提取系数,所述矩阵L为n1×n1阶矩阵,所述n1为大于1的自然数,所述y为目标图像的像素点对应在源图像的像素点的边沿信息; Obtain the edge information of the pixels of the target image corresponding to the pixels of the source image, specifically: obtain the pixel values of all the pixels of the source image, and center the pixels of the target image corresponding to the pixels of the source image, take n 1 ×n 1 adjacent pixels, a matrix A is formed by the pixel values of the n 1 ×n 1 adjacent pixels, and according to the matrix A, apply the formula y=L*A to calculate the pixels of the target image The point corresponds to the edge information of the pixel point in the source image, wherein, the matrix L is a preset edge extraction coefficient, the matrix L is an n 1 ×n 1- order matrix, and the n 1 is a natural number greater than 1, so Said y is the edge information corresponding to the pixel of the target image in the pixel of the source image; 根据所述边沿信息,计算目标图像的像素点的像素值,具体为:根据所述边沿信息,计算目标图像的像素点的缩放滤波器系数F,所述系数为n3×n3阶的矩阵,所述n3为大于1的自然数;获取矩阵E,其中以所述目标图像的像素点对应在源图像中的像素点q为中心,取n3×n3个相邻像素点,由该n3×n3个像素点的像素值构成所述矩阵E;根据所述缩放滤波器系数F和所述矩阵E,计算目标图像的像素点的像素值。 According to the edge information, calculate the pixel value of the pixel point of the target image, specifically: calculate the scaling filter coefficient F of the pixel point of the target image according to the edge information, and the coefficient is an n 3 ×n 3 -order matrix , the n 3 is a natural number greater than 1; obtain a matrix E, wherein the pixel of the target image corresponds to the pixel q in the source image as the center, and n 3 ×n 3 adjacent pixels are taken, by which The pixel values of n 3 ×n 3 pixel points form the matrix E; according to the scaling filter coefficient F and the matrix E, the pixel values of the pixel points of the target image are calculated. 2.如权利要求1所述方法,其特征在于,在所述根据所述边沿信息,计算目标图像的像素点的像素值之前,还包括:对所述边沿信息进行边沿滤波; 2. The method according to claim 1, further comprising: performing edge filtering on the edge information before calculating the pixel value of the pixel point of the target image according to the edge information; 所述根据所述边沿信息,计算目标图像的像素点的像素值具体为:根据所述滤波后的边沿信息,计算目标图像的像素点的像素值。 The calculating the pixel values of the pixel points of the target image according to the edge information specifically includes: calculating the pixel values of the pixel points of the target image according to the filtered edge information. 3.如权利要求2所述方法,其特征在于,所述根据所述边沿信息,计算目标图像的像素点的缩放滤波器系数F,所述系数为n3×n3阶的矩阵,所述n3为大于1的自然数,具体为: 3. method as claimed in claim 2, is characterized in that, described according to described edge information, calculates the scaling filter coefficient F of the pixel point of target image, and described coefficient is n 3 * n 3 order matrix, described n 3 is a natural number greater than 1, specifically: 根据下面所述公式,计算目标图像的像素点的缩放滤波器系数F:  According to the formula described below, calculate the zoom filter coefficient F of the pixel point of the target image:
Figure FSB00000666217600021
Figure FSB00000666217600021
其中a表示所述目标图像的像素点对应在源图像中的像素点与源图像中其它像素点的距离,N为单旁瓣数n3,d为抽取系数。 Wherein, a represents the distance between the pixel of the target image corresponding to the pixel in the source image and other pixels in the source image, N is the single side lobe number n 3 , and d is the extraction coefficient.
4.如权利要求2所述方法,其特征在于,所述根据所述缩放滤波器系数F和所述矩阵E,计算目标图像的像素点的像素值具体为: 4. method as claimed in claim 2, is characterized in that, described according to described scaling filter coefficient F and described matrix E, calculate the pixel value of the pixel point of target image specifically as: 根据下面所述公式,计算目标图像的像素点的缩放滤波器系数F: Calculate the scaling filter coefficient F of the pixels of the target image according to the formula described below:
Figure FSB00000666217600022
Figure FSB00000666217600022
其中所述f(a)为所述缩放滤波器系数F的元素。 Wherein the f(a) is an element of the scaling filter coefficient F.
5.一种图像缩放的装置,其特征在于,包括: 5. A device for image zooming, comprising: 边沿信息获取单元,用于获取目标图像的像素点对应在源图像的像素点的边沿信息; An edge information acquiring unit, configured to acquire edge information corresponding to pixels of the target image corresponding to pixels of the source image; 像素值计算单元,用于根据所述边沿信息,计算目标图像的像素点的像素值,具体为:根据所述边沿信息,计算目标图像的像素点的缩放滤波器系数F,所述系数为n3×n3阶的矩阵,所述n3为大于1的自然数;获取矩阵E,其中以所述目标图像的像素点对应在源图像中的像素点q为中心,取n3×n3个相邻像素点,由该n3×n3个像素点的像素值构成所述矩阵E;根据所述缩放滤波器系数F和所述矩阵E,计算目标图像的像素点的像素值; The pixel value calculation unit is used to calculate the pixel value of the pixel point of the target image according to the edge information, specifically: calculate the scaling filter coefficient F of the pixel point of the target image according to the edge information, and the coefficient is n 3 × n 3 -order matrix, the n 3 is a natural number greater than 1; obtain the matrix E, wherein the pixel point of the target image corresponds to the pixel point q in the source image as the center, and n 3 × n 3 Adjacent pixels, the matrix E is formed by the pixel values of the n 3 ×n 3 pixels; according to the scaling filter coefficient F and the matrix E, the pixel values of the pixel points of the target image are calculated; 所述边沿信息获取单元具体包括像素值获取第一子单元和边沿信息计算子单元; The edge information acquisition unit specifically includes a pixel value acquisition first subunit and an edge information calculation subunit; 其中,所述像素值获取第一子单元,用于获取源图像的全部像素点的像素值,并以目标图像的像素点对应在源图像的像素点为中心,取n1×n1个相邻像素点,由所述n1×n1个相邻像素点的像素值构成矩阵A;  Wherein, the pixel value obtaining first sub-unit is used to obtain the pixel values of all the pixels of the source image, and take n 1 ×n 1 phases centered on the pixels of the target image corresponding to the pixels of the source image Adjacent pixels, a matrix A is formed by the pixel values of the n 1 ×n 1 adjacent pixels; 所述边沿信息计算子单元,用于根据所述矩阵A,获取所述目标图像的像素点对应在源图像的像素点的边沿信息,具体为根据所述矩阵A,应用公式y=L*A计算所述目标图像的像素点对应在源图像的像素点的边沿信息,其中,所述矩阵L为预设的边沿提取系数,所述矩阵L为n1×n1阶矩阵,所述n1为大于1的自然数,所述y为目标图像的像素点对应在源图像的像素点的边沿信息。 The edge information calculation subunit is used to obtain the edge information of the pixels of the target image corresponding to the pixels of the source image according to the matrix A, specifically according to the matrix A, apply the formula y=L*A calculating the edge information corresponding to the pixels of the target image corresponding to the pixels of the source image, wherein the matrix L is a preset edge extraction coefficient, the matrix L is an n 1 ×n 1 -order matrix, and the n 1 is a natural number greater than 1, and the y is the edge information corresponding to the pixel of the target image in the pixel of the source image. 6.如权利要求5所述装置,其特征在于,还包括:边沿滤波单元,用于对所述边沿信息进行边沿滤波; 6. The device according to claim 5, further comprising: an edge filtering unit, configured to perform edge filtering on the edge information; 所述像素值计算单元,还用于根据所述滤波后的边沿信息,计算目标图像的像素点的像素值。 The pixel value calculation unit is further configured to calculate pixel values of pixels of the target image according to the filtered edge information. 7.如权利要求5所述装置,其特征在于,所述像素值计算单元具体包括缩放滤波器系数计算单元、像素值获取第二子单元和像素值计算子单元;其中, 7. The device according to claim 5, wherein the pixel value calculation unit specifically comprises a scaling filter coefficient calculation unit, a pixel value acquisition second subunit, and a pixel value calculation subunit; wherein, 所述缩放滤波器系数计算单元,用于根据所述边沿信息,计算目标图像的像素点的缩放滤波器系数F,所述系数为n3×n3阶的矩阵,所述n3为大于1的自然数; The scaling filter coefficient calculation unit is used to calculate the scaling filter coefficient F of the pixel point of the target image according to the edge information, the coefficient is a matrix of order n 3 ×n 3 , and the n 3 is greater than 1 the natural number of 所述像素值获取第二子单元,用于获取矩阵E,其中以所述目标图像的像素点对应在源图像中的像素点q为中心,取n3×n3个相邻像素点,由该n3×n3个像素点的像素值构成所述矩阵E; The pixel value obtaining second sub-unit is used to obtain a matrix E, where the pixel point of the target image corresponds to the pixel point q in the source image as the center, taking n 3 ×n 3 adjacent pixel points, by The pixel values of the n 3 ×n 3 pixel points form the matrix E; 所述像素值计算子单元,用于根据所述缩放滤波器系数F和所述矩阵E,计算目标图像的像素点的像素值。  The pixel value calculation subunit is configured to calculate pixel values of pixels of the target image according to the scaling filter coefficient F and the matrix E. the
CN2009101050990A 2009-01-17 2009-01-17 Image-scaling method and device thereof Expired - Fee Related CN101783138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101050990A CN101783138B (en) 2009-01-17 2009-01-17 Image-scaling method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101050990A CN101783138B (en) 2009-01-17 2009-01-17 Image-scaling method and device thereof

Publications (2)

Publication Number Publication Date
CN101783138A CN101783138A (en) 2010-07-21
CN101783138B true CN101783138B (en) 2012-02-15

Family

ID=42523101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101050990A Expired - Fee Related CN101783138B (en) 2009-01-17 2009-01-17 Image-scaling method and device thereof

Country Status (1)

Country Link
CN (1) CN101783138B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629366B (en) * 2012-03-05 2013-12-25 许丹 Image processing method and apparatus thereof
CN102842111B (en) * 2012-07-09 2015-03-18 许丹 Enlarged image compensation method and device
CN106651740B (en) * 2016-11-29 2019-09-27 中国科学院声学研究所 A method and system for fast imaging of ultrasound full data focusing based on FPGA

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030169941A1 (en) * 2002-03-11 2003-09-11 Sunplus Technology Co., Ltd. Edge enhancement method and apparatus in digital image scalar-up circuit
US7149369B2 (en) * 2002-04-23 2006-12-12 Hewlett-Packard Development Company, L.P. Method and system for image scaling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030169941A1 (en) * 2002-03-11 2003-09-11 Sunplus Technology Co., Ltd. Edge enhancement method and apparatus in digital image scalar-up circuit
US6876778B2 (en) * 2002-03-11 2005-04-05 Sunplus Technology Co., Ltd. Edge enhancement method and apparatus in digital image scalar-up circuit
US7149369B2 (en) * 2002-04-23 2006-12-12 Hewlett-Packard Development Company, L.P. Method and system for image scaling

Also Published As

Publication number Publication date
CN101783138A (en) 2010-07-21

Similar Documents

Publication Publication Date Title
Zhang et al. Designing a practical degradation model for deep blind image super-resolution
JP4511788B2 (en) Multi-resolution image data management system and method based on tiled wavelet transform and sparse data coding
US7136536B2 (en) Adaptive filter
JP5007228B2 (en) Image cleanup and precoding
JP6837056B2 (en) Methods and equipment for encoding and decoding light field-based images and corresponding computer program products
KR101112139B1 (en) Apparatus and method for estimating scale ratio and noise strength of coded image
JP2018530246A5 (en)
FR2826227A1 (en) Coded digital signal processing method for computer, printer, involves decoding and retrieving internal zones contained entirely in selected portion of coded digital signal
JP2012503416A5 (en)
WO2015059400A1 (en) Method for encoding and decoding images, device for encoding and decoding images and corresponding computer programs
JP2010525750A (en) Image compression and decompression using the PIXON method
JP3948619B2 (en) Image compression apparatus, image compression method, program, and recording medium
CN101783138B (en) Image-scaling method and device thereof
Kim et al. Towards the perceptual quality enhancement of low bit-rate compressed images
Xiao et al. P-bic: Ultra-high-definition image moiré patterns removal via patch bilateral compensation
JP4455364B2 (en) Resolution conversion method and apparatus
FR2963190A1 (en) METHOD AND DEVICE FOR ENCODING AN IMAGE SEQUENCE
JP4936083B2 (en) Thumbnail image generation method and apparatus
EP1574068B1 (en) Wavelet image-encoding method and corresponding decoding method
FR2816138A1 (en) DECODING OF DIGITAL DATA
WO2004077355A1 (en) Image processing method
KR101006810B1 (en) High Quality Image Acquisition Using Example-Based Super Resolution Technique
JP2006339811A (en) High speed image reduction device and method
Choi et al. Fast content-aware image resizing scheme in the compressed domain
TWI306348B (en) Device and method for image edge enhancement

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120215

Termination date: 20140117