CN105554487B - A kind of method and device of digital image format conversion - Google Patents

A kind of method and device of digital image format conversion Download PDF

Info

Publication number
CN105554487B
CN105554487B CN201410609040.6A CN201410609040A CN105554487B CN 105554487 B CN105554487 B CN 105554487B CN 201410609040 A CN201410609040 A CN 201410609040A CN 105554487 B CN105554487 B CN 105554487B
Authority
CN
China
Prior art keywords
location point
class
luminance component
point
value
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.)
Active
Application number
CN201410609040.6A
Other languages
Chinese (zh)
Other versions
CN105554487A (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.)
Actions Technology Co Ltd
Original Assignee
Juxin (zhuhai) Science & Technology 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 Juxin (zhuhai) Science & Technology Co Ltd filed Critical Juxin (zhuhai) Science & Technology Co Ltd
Priority to CN201410609040.6A priority Critical patent/CN105554487B/en
Publication of CN105554487A publication Critical patent/CN105554487A/en
Application granted granted Critical
Publication of CN105554487B publication Critical patent/CN105554487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Of Color Television Signals (AREA)
  • Color Television Systems (AREA)

Abstract

The present invention provides a kind of method and device of digital image format conversion, and the picture format to solve prior art presence is converted into after YUV444 by YUV420, the problem of producing edge blurry, the phenomenon of color diffusion, reduction picture quality.The method of the embodiment of the present invention includes:Determine chromatic component that original image each puts, the position for needing the chromatic component of Equations of The Second Kind, the 3rd class and the 4th class location point that inserts after conversion in image;The chromatic component value of Equations of The Second Kind location point is determined according to adjacent first kind location point;The chromatic component value of the 3rd class location point is determined according to adjacent point;The chromatic component value of the 4th class location point is determined according to adjacent point.Because the embodiment of the present invention selects the point on the smaller direction of luminance component relativity measurement value to determine the chromatic component value of Equations of The Second Kind, the 3rd class and the 4th class location point, so that the image after conversion is not in edge blurry, the phenomenon of color diffusion, and then improve the quality of image.

Description

A kind of method and device of digital image format conversion
Technical field
The present invention relates to digital image processing techniques field, the method and dress of more particularly to a kind of digital image format conversion Put.
Background technology
In digital image processing techniques field, the picture format of digital picture has many kinds, for example:RGB(Red、 Green, Blue, red, green, blue) 888, RGB565, YUV (Luminance, Chrominance, colourity, brightness) 420, YUV444 Deng.Wherein, in Video (video) and Camera (video camera) field, the digital picture application of YUV420 forms is widely. Generally, video file after decoding, can generate the digital image data stream of YUV420 forms, then by YUV420 forms Digital picture is converted to the digital picture of YUV444 forms, and the digital picture of YUV444 forms is then switched to the number of rgb format Word image, is finally shown the digital picture of rgb format.
As shown in Figure 1a, the digital picture of YUV420 forms is made up of tri- components of Y, U, V, and chromatic component U (or V) Quantity in the horizontal and vertical directions is all 1/2nd of luminance component Y.As shown in Figure 1 b, YUV420 forms are being carried out Digital picture is when being converted into the digital picture of YUV444 forms, and luminance component Y keeps constant, and chromatic component U (or V) is in level Expand twice with the quantity in vertical direction.
In the prior art, it is being converted into the digital picture of YUV444 forms in the digital picture for carrying out YUV420 forms When, luminance component Y keeps constant, and chromatic component U (or V) is generally by the way of direct copying, i.e., 1*1 U (or V) is directly copied Shellfish is 2*2, and as illustrated in figure 1 c, chromatic component U (or V) 4 chromatic component points M, N, O and P, each chromatic component point are direct Copy 3 times and obtain new chromatic component U (or V).Or realized using bilinear interpolation to chromatic component U (or V) in level and Quantity in vertical direction expands twice.
However, the digital picture for the YUV444 forms for by above two mode generate after image format conversion, The edge of its chromatic component (U and V) can cause to obscure, when the numeral that the digital picture of YUV444 forms is converted to rgb format When carrying out Digital Image Display after image, the marginal zone of coloury digital picture occurs that color spreads.If by digitized map During as shown again after many times of amplifications, this edge blurry, the phenomenon of color diffusion can be more obvious, reduce digital picture Quality.
The content of the invention
The present invention provides a kind of method and device of digital image format conversion, to solve number present in prior art Word picture format is converted into after YUV444 forms by YUV420 forms, digital picture can produce edge blurry, color diffusion show As the problem of reducing the quality of digital picture.
The embodiment of the present invention provides a kind of method of digital image format conversion, including:
Determine the position of the chromatic component each put in original image after conversion in image, and by the original image In the chromatic component each put as the chromatic component of the first kind location point in converted images, and determine to scheme after conversion The position of the chromatic component of the Equations of The Second Kind location point, the 3rd class location point and the 4th class location point of progress interpolation calculation is needed as in Put;
For the chromatic component of an Equations of The Second Kind location point, according to the first kind position adjacent with the Equations of The Second Kind location point The chromatic component value of point determines the chromatic component value of the Equations of The Second Kind location point, wherein the Equations of The Second Kind location point is and described the The central point of the adjacent first kind location point area defined of two class location points;
For the chromatic component of a 3rd class location point, according to the colourity minute of the point adjacent with the 3rd class location point Value determines the chromatic component value of the 3rd class location point, wherein the 3rd class location point be horizontal direction on the first kind Location point is adjacent and vertical direction on the point adjacent with Equations of The Second Kind location point;
For the chromatic component of a 4th class location point, according to the colourity minute of the point adjacent with the 4th class location point Value determines the chromatic component value of the 4th class location point, wherein the 4th class location point be horizontal direction on Equations of The Second Kind Location point is adjacent and vertical direction on the point adjacent with first kind location point.
Due to position of the embodiment of the present invention in the chromatic component each put during original image is determined after conversion image Put and using the chromatic component each put in original image as after the chromatic component of the first kind location point in converted images, It is easy to calculate the chromatic component value of Equations of The Second Kind location point, the 3rd class location point and the 4th class location point.
It is preferred that determining described according to the chromatic component value of the first kind location point adjacent with the Equations of The Second Kind location point The chromatic component value of two class location points, is specifically included:
Determine the luminance component each put in four first kind location points;
Determine the brightness point of the Equations of The Second Kind location point in four first kind location point area defined on every diagonal Measure relativity measurement value;
From four first kind location point area defined, the luminance component relativity measurement of Equations of The Second Kind location point is selected It is worth two first kind location points on minimum diagonal;
The chromatic component of the Equations of The Second Kind location point is determined according to the chromatic component value of the two of selection first kind location points Value.
The chromatic component value of two points on the less direction of selection luminance component relativity measurement value of the embodiment of the present invention To determine the chromatic component value of Equations of The Second Kind location point.Because luminance component relativity measurement value is smaller, between the corresponding point of expression Correlation it is bigger, so can so retain the local edge of chromatic component, so that the image after conversion is not in Edge blurry, the phenomenon of color diffusion, and then improve the quality of converted images.
If it is preferred that the Equations of The Second Kind location point is non-edge point, the luminance component of the Equations of The Second Kind location point is related Property metric meets following equation:
e1=| 2Y (i, j)-Y (i-2n+1, j-2n+1)-Y (i+2n-1, j+2n-1) |;
e2=| 2Y (i, j)-Y (i+2n-1, j-2n+1)-Y (i-2n+1, j+2n-1) |;
Wherein, e1Represent the luminance component relativity measurement value of Equations of The Second Kind location point on left diagonal, e2Represent right diagonal The luminance component relativity measurement value of upper Equations of The Second Kind location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of Equations of The Second Kind location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is not more than right diagonal On Equations of The Second Kind location point luminance component relativity measurement value, then the Equations of The Second Kind location point chromatic component value meet under Row formula formula:
Chroma (i, j)=[Chroma (i-2n+1, j-2n+1)+Chroma (i+2n-1, j+2n-1)]/2;
If the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is more than second on right diagonal The luminance component relativity measurement value of class location point, then the chromatic component value of the Equations of The Second Kind location point meet following equation:
Chroma (i, j)=[Chroma (i+2n-1, j-2n+1)+Chroma (i-2n+1, j+2n-1)]/2;
Wherein, i, j represent the abscissa and ordinate of Equations of The Second Kind location point respectively, and n represents preset value, and is natural number, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
It is preferred that according to the chromatic component value of the point adjacent with the 3rd class location point, determining the 3rd class position The chromatic component value of point, is specifically included:
It is determined that by two adjacent with the 3rd class location point in the horizontal direction of the 3rd class location point The luminance component of one class location point, by adjacent with the 3rd class location point in the vertical direction of the 3rd class location point Two Equations of The Second Kind location points luminance component, and the 3rd class location point luminance component;
According to by two adjacent with the 3rd class location point the in the horizontal direction of the 3rd class location point The luminance component of one class location point, and the 3rd class location point luminance component, determine in horizontal direction the 3rd class position Put luminance component relativity measurement value a little, and according to by the vertical direction of the 3rd class location point with the described 3rd The luminance component of two adjacent Equations of The Second Kind location points of class location point, and the 3rd class location point luminance component, it is determined that The luminance component relativity measurement value of the 3rd class location point in vertical direction;
If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than in vertical direction The luminance component relativity measurement value of three class location points, then according to by the 3rd class location point horizontal direction on institute The chromatic component value of two adjacent first kind location points of the 3rd class location point is stated, the colourity point of the 3rd class location point is determined Value;
If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is more than the 3rd in vertical direction The luminance component relativity measurement value of class location point, then according to by the 3rd class location point vertical direction on it is described The chromatic component value of two adjacent Equations of The Second Kind location points of 3rd class location point, determines the chromatic component of the 3rd class location point Value.
The chromatic component value of two points on the less direction of selection luminance component relativity measurement value of the embodiment of the present invention To determine the chromatic component value of the 3rd class location point.Because luminance component relativity measurement value is smaller, between the corresponding point of expression Correlation it is bigger, so can so retain the local edge of chromatic component, so that the image after conversion is not in Edge blurry, the phenomenon of color diffusion, and then improve the quality of converted images.
If it is preferred that the 3rd class location point is non-edge point, the luminance component of the 3rd class location point is related Property metric meets following equation:
e3=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e4=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e3Represent the luminance component relativity measurement value of the 3rd class location point in horizontal direction, e4Represent vertical direction The luminance component relativity measurement value of upper 3rd class location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of the 3rd class location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than vertical direction On the 3rd class location point luminance component relativity measurement value, then the chromatic component value of the 3rd class location point meet following Formula:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 3rd class location point in vertical direction is more than the 3rd in vertical direction The luminance component relativity measurement value of class location point, then the chromatic component value of the 3rd class location point meet following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, i, j represent the abscissa and ordinate of the 3rd class location point respectively, and n represents preset value, and is natural number, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
It is preferred that according to the chromatic component value of the point adjacent with the 4th class location point, determining the 4th class position The chromatic component value of point, is specifically included:
It is determined that by two adjacent with the 4th class location point in the horizontal direction of the 4th class location point The luminance component of two class location points, by adjacent with the 4th class location point in the vertical direction of the 4th class location point Two first kind location points luminance component, and the 4th class location point luminance component;
According to by two adjacent with the 4th class location point the in the horizontal direction of the 4th class location point The luminance component of two class location points, and the 4th class location point luminance component, determine in horizontal direction the 4th class position Put luminance component relativity measurement value a little, and according to by the vertical direction of the 4th class location point with the described 4th The luminance component of two adjacent first kind location points of class location point, and the 4th class location point luminance component, it is determined that The luminance component relativity measurement value of the 4th class location point in vertical direction;
If the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than in vertical direction The luminance component relativity measurement value of four class location points, then according to by the 4th class location point horizontal direction on institute The chromatic component value of two adjacent Equations of The Second Kind location points of the 4th class location point is stated, the colourity point of the 4th class location point is determined Value;
If the luminance component relativity measurement value of the 4th class location point in horizontal direction is more than the 4th in vertical direction The luminance component relativity measurement value of class location point, then according to by the 4th class location point vertical direction on it is described The chromatic component value of two adjacent first kind location points of 4th class location point, determines the chromatic component of the 4th class location point Value.
The chromatic component value of two points on the less direction of selection luminance component relativity measurement value of the embodiment of the present invention To determine the chromatic component value of the 4th class location point.Because luminance component relativity measurement value is smaller, between the corresponding point of expression Correlation it is bigger, so can so retain the local edge of chromatic component, so that the image after conversion is not in Edge blurry, the phenomenon of color diffusion, and then improve the quality of converted images.
If it is preferred that the 4th class location point is non-edge point, the luminance component of the 4th class location point is related Property metric meets following equation:
e5=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e6=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e5Represent the luminance component relativity measurement value of the 4th class location point in horizontal direction, e6Represent vertical direction The luminance component relativity measurement value of upper 4th class location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of the 4th class location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than vertical direction On the 4th class location point luminance component relativity measurement value, then the chromatic component value of the 4th class location point meet following Formula:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 4th class location point in vertical direction is more than the 4th in vertical direction The luminance component relativity measurement value of class location point, then the chromatic component value of the 4th class location point meet following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, i, j represent the abscissa and ordinate of the 4th class location point respectively, and n represents preset value, and is natural number, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
The embodiment of the present invention provides a kind of device of digital image format conversion, including:
Point position determination unit, for the position in the chromatic component that determines each to put in original image after conversion image Put, and using the chromatic component each put in the original image as the first kind location point in converted images colourity minute Amount, and determine to need Equations of The Second Kind location point, the 3rd class location point and the 4th class of progress interpolation calculation in image after conversion The position of the chromatic component of location point;
Equations of The Second Kind location point chromatic component value determining unit, for the chromatic component for an Equations of The Second Kind location point, root The colourity of the Equations of The Second Kind location point is determined according to the chromatic component value of the first kind location point adjacent with the Equations of The Second Kind location point Component value, wherein the Equations of The Second Kind location point is the first kind location point area defined adjacent with the Equations of The Second Kind location point Central point;
3rd class location point chromatic component value determining unit, for the chromatic component for a 3rd class location point, root The chromatic component value of the 3rd class location point is determined according to the chromatic component value of the point adjacent with the 3rd class location point, wherein The 3rd class location point is adjacent with Equations of The Second Kind location point in, vertical direction adjacent with first kind location point in horizontal direction Point;
4th class location point chromatic component value determining unit, for the chromatic component for a 4th class location point, root The chromatic component value of the 4th class location point is determined according to the chromatic component value of the point adjacent with the 4th class location point, wherein The 4th class location point is adjacent with first kind location point in, vertical direction adjacent with Equations of The Second Kind location point in horizontal direction Point.
It is preferred that the Equations of The Second Kind location point chromatic component value determining unit specifically for:
Determine the luminance component each put in four first kind location points;Determine that four first kind location points are surrounded Region in Equations of The Second Kind location point on every diagonal luminance component relativity measurement value;From four first kind location point institutes In the region surrounded, two first kind on the minimum diagonal of the luminance component relativity measurement value of Equations of The Second Kind location point are selected Location point;The chromatic component of the Equations of The Second Kind location point is determined according to the chromatic component value of the two of selection first kind location points Value.
If it is preferred that the Equations of The Second Kind location point is non-edge point, the luminance component of the Equations of The Second Kind location point is related Property metric meets following equation:
e1=| 2Y (i, j)-Y (i-2n+1, j-2n+1)-Y (i+2n-1, j+2n-1) |;
e2=| 2Y (i, j)-Y (i+2n-1, j-2n+1)-Y (i-2n+1, j+2n-1) |;
Wherein, e1Represent the luminance component relativity measurement value of Equations of The Second Kind location point on left diagonal, e2Represent right diagonal The luminance component relativity measurement value of upper Equations of The Second Kind location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of Equations of The Second Kind location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is not more than right diagonal On Equations of The Second Kind location point luminance component relativity measurement value, then the chromatic component value of the Equations of The Second Kind location point meet following Formula:
Chroma (i, j)=[Chroma (i-2n+1, j-2n+1)+Chroma (i+2n-1, j+2n-1)]/2;
If the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is more than second on right diagonal The luminance component relativity measurement value of class location point, then the chromatic component value of the Equations of The Second Kind location point meet following equation:
Chroma (i, j)=[Chroma (i+2n-1, j-2n+1)+Chroma (i-2n+1, j+2n-1)]/2;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
It is preferred that the 3rd class location point chromatic component value determining unit specifically for:
It is determined that by two adjacent with the 3rd class location point in the horizontal direction of the 3rd class location point The luminance component of one class location point, by adjacent with the 3rd class location point in the vertical direction of the 3rd class location point Two Equations of The Second Kind location points luminance component, and the 3rd class location point luminance component;According to by the described 3rd The luminance component of two first kind location point adjacent with the 3rd class location point in the horizontal direction of class location point, and The luminance component of the 3rd class location point, determines the luminance component relativity measurement of the 3rd class location point in horizontal direction Value, and according to by two Equations of The Second Kind adjacent with the 3rd class location point in the vertical direction of the 3rd class location point The luminance component of location point, and the 3rd class location point luminance component, determine the 3rd class location point in vertical direction Luminance component relativity measurement value;If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than The luminance component relativity measurement value of the 3rd class location point in vertical direction, then according to the water by the 3rd class location point The chromatic component value of square upward two first kind location points adjacent with the 3rd class location point, determines the 3rd class The chromatic component value of location point;If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is more than Vertical Square The luminance component relativity measurement value of the 3rd upward class location point, then according to the vertical direction by the 3rd class location point On the two Equations of The Second Kind location points adjacent with the 3rd class location point chromatic component value, determine the 3rd class location point Chromatic component value.
If it is preferred that the 3rd class location point is non-edge point, the luminance component of the 3rd class location point is related Property metric meets following equation:
e3=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e4=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e3Represent the luminance component relativity measurement value of the 3rd class location point in horizontal direction, e4Represent vertical direction The luminance component relativity measurement value of upper 3rd class location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of the 3rd class location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than vertical direction On the 3rd class location point luminance component relativity measurement value, then the chromatic component value of the 3rd class location point meet following Formula:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 3rd class location point in vertical direction is more than the 3rd in vertical direction The luminance component relativity measurement value of class location point, then the chromatic component value of the 3rd class location point meet following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
It is preferred that the 4th class location point chromatic component value determining unit specifically for:
It is determined that by two adjacent with the 4th class location point in the horizontal direction of the 4th class location point The luminance component of two class location points, by adjacent with the 4th class location point in the vertical direction of the 4th class location point Two first kind location points luminance component, and the 4th class location point luminance component;According to by the described 4th The luminance component of the two Equations of The Second Kind location point adjacent with the 4th class location point in the horizontal direction of class location point, and The luminance component of the 4th class location point, determines the luminance component relativity measurement of the 4th class location point in horizontal direction Value, and according to by two first kind adjacent with the 4th class location point in the vertical direction of the 4th class location point The luminance component of location point, and the 4th class location point luminance component, determine the 4th class location point in vertical direction Luminance component relativity measurement value;If the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than The luminance component relativity measurement value of the 4th class location point in vertical direction, then according to the water by the 4th class location point The chromatic component value of square upward two Equations of The Second Kind location points adjacent with the 4th class location point, determines the 4th class The chromatic component value of location point;If the luminance component relativity measurement value of the 4th class location point in horizontal direction is more than Vertical Square The luminance component relativity measurement value of the 4th upward class location point, then according to the Vertical Square by the 4th class location point The chromatic component value of upward two first kind location points adjacent with the 4th class location point, determines the 4th class position The chromatic component value of point.
If it is preferred that the 4th class location point is non-edge point, the luminance component of the 4th class location point is related Property metric meets following equation:
e5=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e6=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e5Represent the luminance component relativity measurement value of the 4th class location point in horizontal direction, e6Represent vertical direction The luminance component relativity measurement value of upper 4th class location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of the 4th class location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than vertical direction On the 4th class location point luminance component relativity measurement value, then the chromatic component value of the 4th class location point meet following Formula:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 4th class location point in vertical direction is more than the 4th in vertical direction The luminance component relativity measurement value of class location point, then the chromatic component value of the 4th class location point meet following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
The embodiment of the present invention is determining the chromatic component at original image midpoint, is needing to carry out the Equations of The Second Kind position of interpolation calculation Put behind the position in the image of the chromatic component of point, the 3rd class location point and the 4th class location point after conversion, selection brightness point The chromatic component value of two points on the less direction of relativity measurement value is measured to determine Equations of The Second Kind location point, the 3rd class location point With the chromatic component value of the 4th class location point.Because luminance component relativity measurement value is smaller, the phase between corresponding point is represented Guan Xingyue is big, so can so retain the local edge of chromatic component, so that the image after conversion is not in edge Fuzzy, color diffusion phenomenon, and then improve the quality of converted images.
Brief description of the drawings
Fig. 1 a are the digital picture schematic diagram of YUV420 forms in background technology;
Fig. 1 b are the signal that the digital picture of YUV420 forms in background technology is converted into the digital picture of YUV444 forms Figure;
Fig. 1 c are that the schematic diagram of chromatic component (U or V) interpolation is realized by the way of direct copying in background technology;
Fig. 2 a are the method flow schematic diagram of the image format conversion of the embodiment of the present invention one;
Fig. 2 b are the chromatic component of the embodiment of the present invention two (U or V) interpolation schematic diagram;
Fig. 2 c are the new chromatic component position view after the chromatic component of the embodiment of the present invention three (U or V) interpolation;
Fig. 2 d are chromatic component (U or V) schematic diagram of Equations of The Second Kind location point in Fig. 2 c of the embodiment of the present invention four;
Fig. 2 e are chromatic component (U or V) the point schematic diagram of the 3rd class location point in Fig. 2 c of the embodiment of the present invention five;
Fig. 2 f are chromatic component (U or V) the point schematic diagram of the 4th class location point in Fig. 2 c of the embodiment of the present invention six;
Fig. 3 is the device schematic flow sheet of the image format conversion of the embodiment of the present invention seven.
Embodiment
The embodiment of the present invention determines the position of the chromatic component each put in original image after conversion in image, and will The chromatic component each put in the original image as the first kind location point in converted images chromatic component, and really Being scheduled on needs the color of the Equations of The Second Kind location point, the 3rd class location point and the 4th class location point that carry out interpolation calculation in converted images Spend the position of component;For the chromatic component of an Equations of The Second Kind location point, according to adjacent with the Equations of The Second Kind location point first The chromatic component value of class location point determines the chromatic component value of the Equations of The Second Kind location point, wherein the Equations of The Second Kind location point is The central point of the first kind location point area defined adjacent with the Equations of The Second Kind location point;For a 3rd class location point Chromatic component, the color of the 3rd class location point is determined according to the chromatic component value of the point adjacent with the 3rd class location point Spend component value, wherein the 3rd class location point be in horizontal direction in and vertical direction adjacent with first kind location point with second The adjacent point of class location point;For the chromatic component of a 4th class location point, according to adjacent with the 4th class location point The chromatic component value of point determines the chromatic component value of the 4th class location point, wherein the 4th class location point is horizontal direction The point adjacent with first kind location point in upper and vertical direction adjacent with Equations of The Second Kind location point.The embodiment of the present invention is carrying out image When form is changed, the chromatic component value of two points on the less direction of luminance component relativity measurement value is selected to determine second The chromatic component value of class location point, the 3rd class location point and the 4th class location point.Because luminance component relativity measurement value is smaller, Represent that the correlation between corresponding point is bigger, so can so retain the local edge of chromatic component, so that conversion Image afterwards is not in edge blurry, the phenomenon of color diffusion, and then improves the quality of converted images.
Wherein, the chromatic component of the embodiment of the present invention can be:U (colourity) component, V (colourity) component.That is, this The scheme of inventive embodiments is applicable U components, is also suitable V component.
The embodiment of the present invention is described in further detail with reference to Figure of description.
As shown in Figure 2 a, the method for the image format conversion of the embodiment of the present invention one includes:
Step 200, the position of the chromatic component each put in original image after conversion in image is determined, and will be described The chromatic component each put in original image as the first kind location point in converted images chromatic component, and determine exist The colourity for carrying out the Equations of The Second Kind location point, the 3rd class location point and the 4th class location point of interpolation calculation is needed to divide in converted images The position of amount;
Step 201, the chromatic component for an Equations of The Second Kind location point, according to adjacent with the Equations of The Second Kind location point The chromatic component value of one class location point determines the chromatic component value of the Equations of The Second Kind location point, wherein the Equations of The Second Kind location point is The central point of the first kind location point area defined adjacent with the Equations of The Second Kind location point;
Step 202, the chromatic component for a 3rd class location point, according to adjacent with the 3rd class location point The chromatic component value of point determines the chromatic component value of the 3rd class location point, wherein the 3rd class location point is horizontal direction The point adjacent with Equations of The Second Kind location point in upper and vertical direction adjacent with first kind location point;
Step 203, the chromatic component for a 4th class location point, according to the point adjacent with the 4th class location point Chromatic component value determine the chromatic component value of the 4th class location point, wherein the 4th class location point is in horizontal direction The point adjacent with first kind location point in adjacent and vertical direction with Equations of The Second Kind location point.
Wide W is equal to 4 for the embodiment of the present invention as shown in Figure 2 b, the original chrominance components that high H is equal to 4 pass through interpolation operation It is as shown in Figure 2 c the new chromatic component after interpolation by its wide and high schematic diagram for expanding twice, wherein, new chromatic component Wide W is changed into 8, and high H is changed into 8, and chromatic component now has 8 rows 8 to arrange a chromatic component point.In figure 2 c, the coordinate of point be from 0th row the 0th row are started counting up, and solid black round dot represents first kind location point, and all first kind location points are in new The even number line of chromatic component, even column;White hollow square represents Equations of The Second Kind location point, and all Equations of The Second Kind location points are in new The odd-numbered line of chromatic component, odd column;White hollow round dot represents the 3rd class location point, and the 3rd all class location points is in new The even number line of chromatic component, odd column;Grey black circle represents the 4th class location point, the 4th all class location point odd numbers Row, even column.
The point adjacent with Equations of The Second Kind location point of the embodiment of the present invention is referred to:As in figure 2 c, with Equations of The Second Kind location point (1, 1) adjacent point is first kind location point (0,0), the 3rd class location point (0,1), first kind location point (0,2), the 4th class position Point (1,0), the 4th class location point (1,2), first kind location point (2,0), the 3rd class location point (2,1) and first kind location point (2,2).
The point adjacent with the 3rd class location point of the embodiment of the present invention is referred to:As in figure 2 c, with the 3rd class location point (2, 1) adjacent point is the 4th class location point (1,0), Equations of The Second Kind location point (1,1), the 4th class location point (1,2), first kind position Point (2,0), first kind location point (2,2), the 4th class location point (3,0), Equations of The Second Kind location point (3,1) and the 4th class location point (3,2).
The point adjacent with the 4th class location point of the embodiment of the present invention is referred to:As in figure 2 c, with the 4th class location point (1, 2) adjacent point is the 3rd class location point (0,1), first kind location point (0,2), the 3rd class location point (0,3), Equations of The Second Kind position Point (1,1), Equations of The Second Kind location point (1,3), the 3rd class location point (2,1), first kind location point (2,2) and the 3rd class location point (2,3).
The concrete mode that the lower embodiment of the present invention determines the chromatic component value of Equations of The Second Kind location point is described below:
It is preferred that in step 201, according to the chromatic component value of the first kind location point adjacent with the Equations of The Second Kind location point The chromatic component value of the Equations of The Second Kind location point is determined, is specifically included:
Described second is determined according to the chromatic component value of two first kind location points adjacent with the Equations of The Second Kind location point The chromatic component value of class location point, wherein the colourity of two first kind location point adjacent with the Equations of The Second Kind location point point Measure the colourity point for two first kind location points in four first kind location point area defined on diagonal Amount.
Possess 2 rows 2 for the embodiment of the present invention as shown in Figure 2 d and arrange a chromatic component for chromatic component point, the coordinate at figure midpoint Started counting up from the 0th row the 0th row, the chromatic component point one of the 0th row to the 2nd row, the 0th row in wherein Fig. 2 d to the 2nd row One the 0th row to the 2nd row corresponded in Fig. 2 c, the 0th are arranged to the chromatic component point of the 2nd row.
For example:The first of the chromatic component value of the first kind location point arranged using the 0th row the 0th in Fig. 2 d and the 2nd row the 2nd row The chromatic component value of class location point, calculates the chromatic component value of the Equations of The Second Kind location point of the 1st row the 1st row.
In another example:The chromatic component value and the 2nd row the 0th of the first kind location point arranged using the 0th row the 2nd in Fig. 2 d arrange the The chromatic component value of one class location point, calculates the chromatic component value of the Equations of The Second Kind location point of the 1st row the 1st row.
A kind of chromatic component value preferably according to two first kind location points adjacent with the Equations of The Second Kind location point is true The mode of the chromatic component value of the Equations of The Second Kind location point is calmly:The brightness of the Equations of The Second Kind location point determined according to luminance component point Amount relativity measurement value selects two first kind location points calculate the chromatic component value for obtaining Equations of The Second Kind location point, specific bag Include:
Determine the luminance component each put in four first kind location points;
Determine the brightness point of the Equations of The Second Kind location point in four first kind location point area defined on every diagonal Measure relativity measurement value;
From four first kind location point area defined, the luminance component relativity measurement of Equations of The Second Kind location point is selected It is worth two first kind location points on minimum diagonal;
The chromatic component of the Equations of The Second Kind location point is determined according to the chromatic component value of the two of selection first kind location points Value.
The luminance component relativity measurement value of Equations of The Second Kind location point of the embodiment of the present invention is smaller show a little between correlation It is bigger.
The embodiment of the present invention, left diagonal is referred to:The point area defined adjacent with Equations of The Second Kind location point (i.e. rectangle Region) left upper apex be connected with bottom right vertex formed diagonal, wherein, Equations of The Second Kind location point is the center in the region Point;Right diagonal is referred to:The right vertices of the point area defined (i.e. rectangular area) adjacent with Equations of The Second Kind location point and Connected the formed diagonal of bottom left vertex, wherein, Equations of The Second Kind location point is the central point in the region.
For example:In the chromatic component value for the Equations of The Second Kind location point that the 1st row the 1st is arranged in calculating Fig. 2 c, it is first determined four The luminance component (0,0) of first kind location point on left diagonal in the luminance component area defined of first kind location point, (1, 1), first kind position in the luminance component relativity measurement value and right diagonal of the Equations of The Second Kind location point between (2,2) three points The luminance component (0,2) of point, (1,1), the luminance component relativity measurement value of Equations of The Second Kind location point between (2,0) three points, Now the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is not more than the Equations of The Second Kind position on right diagonal Luminance component relativity measurement value a little is put, the chromatic component of the first kind location point arranged using the 0th row the 0th on left diagonal The chromatic component value for the first kind location point that value and the 2nd row the 2nd are arranged calculates the colourity point of the Equations of The Second Kind location point of the 1st row the 1st row Value.
In another example:In the chromatic component value for the Equations of The Second Kind location point that the 1st row the 1st is arranged in calculating Fig. 2 c, it is first determined four The luminance component (0,0) of first kind location point on left diagonal in the luminance component area defined of individual first kind location point, First kind position in the luminance component relativity measurement value and right diagonal of Equations of The Second Kind location point between three points in (1,1), (2,2) Put the luminance component relativity measurement of the Equations of The Second Kind location point between luminance component (0,2) a little, (1,1), (2,0) three points Value, now the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is more than the Equations of The Second Kind position on right diagonal Luminance component relativity measurement value a little is put, the chromatic component of the first kind location point arranged using the 0th row the 2nd on right diagonal The chromatic component value for the first kind location point that value and the 2nd row the 0th are arranged calculates the colourity point of the Equations of The Second Kind location point of the 1st row the 1st row Value.
If it is preferred that the Equations of The Second Kind location point is non-edge point, the luminance component of the Equations of The Second Kind location point is related Property metric meets following equation:
e1=| 2Y (i, j)-Y (i-2n+1, j-2n+1)-Y (i+2n-1, j+2n-1) | ... formula one;
e2=| 2Y (i, j)-Y (i+2n-1, j-2n+1)-Y (i-2n+1, j+2n-1) | ... formula two;
Wherein, e1Represent the luminance component relativity measurement value of Equations of The Second Kind location point on left diagonal, e2Represent right diagonal The luminance component relativity measurement value of upper Equations of The Second Kind location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of Equations of The Second Kind location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
The embodiment of the present invention takes the mode of direct copying to obtain the marginal point of converted images, for example in figure 2 c, figure The marginal point of picture is referred to:0th row, the 7th row, the 0th row and the upper all points of the 7th row in image.
For example:When calculating the chromatic component value of Equations of The Second Kind location point that coordinate in Fig. 2 c is (1,1), it is known that Equations of The Second Kind position I=1, j=1, n=0 in point (1,1), Equations of The Second Kind position on left diagonal is obtained by i=1, j=1, n=0 substitution formula one Point luminance component relativity measurement value be:
e1=| 2Y (1,1)-Y (1-2*0+1,1-2*0+1)-Y (1+2*0-1,1+2*0-1) |;
I=1, j=1, n=0 are substituted into the luminance component correlation that formula two obtains Equations of The Second Kind location point on right diagonal Metric is:
e2=| 2Y (1,1)-Y (1+2*0-1,1-2*0+1)-Y (1-2*0+1,1+2*0-1) |.
If it is preferred that the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is not more than right diagonal On Equations of The Second Kind location point luminance component relativity measurement value, then the chromatic component value of the Equations of The Second Kind location point meet following Formula formula:
Chroma (i, the j)=formula of [Chroma (i-2n+1, j-2n+1)+Chroma (i+2n-1, j+2n-1)]/2 ... Three;
If the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is more than second on right diagonal The luminance component relativity measurement value of class location point, then the chromatic component value of the Equations of The Second Kind location point meet following equation:
Chroma (i, the j)=formula of [Chroma (i+2n-1, j-2n+1)+Chroma (i-2n+1, j+2n-1)]/2 ... Four;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
For example:When calculating the chromatic component value of Equations of The Second Kind location point that coordinate in Fig. 2 c is (1,1), it is known that Equations of The Second Kind position I=1, j=1, n=0 in point (1,1), the colourity point that formula three obtains Equations of The Second Kind location point is substituted into by i=1, j=1, n=0 Value is:
Chroma (1,1)=[Chroma (1-2*0+1,1-2*0+1)+Chroma (1+2*0-1,1+2*0-1)]/2.
In another example:When calculating the chromatic component value of Equations of The Second Kind location point that coordinate in Fig. 2 c is (1,1), it is known that Equations of The Second Kind position I=1, j=1, n=0 in point (1,1) are put, i=1, j=1, n=0 are substituted into the colourity that formula four obtains Equations of The Second Kind location point Component value is:
Chroma (1,1)=[Chroma (1+2*0-1,1-2*0+1)+Chroma (1-2*0+1,1+2*0-1)]/2.
The embodiment of the present invention can according to by the 3rd class location point horizontally or vertically on the 3rd class location point The chromatic component value of two adjacent points calculates the chromatic component value of the 3rd class location point, can also be according to by the 3rd class position The left diagonal of point or the chromatic component value of two points adjacent with the 3rd class location point on right diagonal calculate the 3rd class The chromatic component value of location point.
The embodiment of the present invention, left diagonal is referred to:The point area defined adjacent with the 3rd class location point (i.e. rectangle Region) left upper apex be connected with bottom right vertex formed diagonal, wherein, the 3rd class location point is the center in the region Point;Right diagonal is referred to:The right vertices of the point area defined (i.e. rectangular area) adjacent with the 3rd class location point and Connected the formed diagonal of bottom left vertex, wherein, the 3rd class location point is the central point in the region.
A kind of mode for the chromatic component value for preferably determining the 3rd class location point:
Preferably, in step 202, the chromatic component value of the basis point adjacent with the 3rd class location point determines institute The chromatic component value of the 3rd class location point is stated, is specifically included:
According to the chromatic component value of two points adjacent with the 3rd class location point, the 3rd class location point is determined Chromatic component value, wherein two points adjacent with the 3rd class location point are the level by the 3rd class location point Or vertically adjacent point.
Possess 2 rows 2 for the embodiment of the present invention as shown in Figure 2 e and arrange a chromatic component for chromatic component point, the coordinate at figure midpoint Started counting up from the 0th row the 0th row, the chromatic component point one of the 0th row to the 2nd row, the 0th row in wherein Fig. 2 e to the 2nd row One the 1st row to the 3rd row corresponded in Fig. 2 c, the 0th are arranged to the chromatic component point of the 2nd row.
For example:The first of the chromatic component value of the first kind location point arranged using the 1st row the 0th in Fig. 2 e and the 1st row the 2nd row The chromatic component value of class location point, calculates the chromatic component value of the 3rd class location point of the 1st row the 1st row.
In another example:The chromatic component value and the 2nd row the 1st of the Equations of The Second Kind location point arranged using the 0th row the 1st in Fig. 2 e arrange the The chromatic component value of two class location points, calculates the chromatic component value of the 3rd class location point of the 1st row the 1st row.
A kind of chromatic component value preferably according to two points adjacent with the 3rd class location point, determines the described 3rd The mode of the chromatic component value of class location point is:The luminance component correlation degree of the 3rd class location point determined according to luminance component Value selects two points to be calculated the chromatic component value to the 3rd class location point, specifically includes
It is determined that by two adjacent with the 3rd class location point in the horizontal direction of the 3rd class location point The luminance component of one class location point, by adjacent with the 3rd class location point in the vertical direction of the 3rd class location point Two Equations of The Second Kind location points luminance component, and the 3rd class location point luminance component;
According to by two adjacent with the 3rd class location point the in the horizontal direction of the 3rd class location point The luminance component of one class location point, and the 3rd class location point luminance component, determine in horizontal direction the 3rd class position Put luminance component relativity measurement value a little, and according to by the vertical direction of the 3rd class location point with the described 3rd The luminance component of two adjacent Equations of The Second Kind location points of class location point, and the 3rd class location point luminance component, it is determined that The luminance component relativity measurement value of the 3rd class location point in vertical direction;
If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than in vertical direction The luminance component relativity measurement value of three class location points, then according to by the 3rd class location point horizontal direction on institute The chromatic component value of two adjacent first kind location points of the 3rd class location point is stated, the colourity point of the 3rd class location point is determined Value;
If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is more than the 3rd in vertical direction The luminance component relativity measurement value of class location point, then according to by the 3rd class location point vertical direction on it is described The chromatic component value of two adjacent Equations of The Second Kind location points of 3rd class location point, determines the chromatic component of the 3rd class location point Value.
The luminance component relativity measurement value of the class location point of the embodiment of the present invention the 3rd is smaller show a little between correlation It is bigger.
For example:In the chromatic component value for the 3rd class location point that the 2nd row the 1st is arranged in calculating Fig. 2 c, it is first determined pass through The 3rd class location point between the luminance components (2,0) of three points in the level of 3rd class location point, (2,1) (2,2) Luminance component relativity measurement value and by the 3rd class location point it is vertical on three points luminance component (1,1), (2, 1), the luminance component relativity measurement value of the 3rd class location point between (3,1), now the 3rd class location point in level is bright Degree component correlations metric is not more than in the luminance component relativity measurement value of the 3rd class location point on vertical, use level Coordinate for the 2nd row the 0th arrange first kind location point chromatic component value and the 2nd row the 2nd row first kind location point colourity Component value calculates the chromatic component value of the 3rd class location point of the 2nd row the 1st row.
In another example:In the chromatic component value for the 3rd class location point that the 2nd row the 1st is arranged in calculating Fig. 2 c, it is first determined warp The 3rd class location point crossed between the luminance components (2,0) of three points in the level of the 3rd class location point, (2,1) (2,2) Luminance component relativity measurement value and by the 3rd class location point it is vertical on three points luminance component (1,1), (2, 1), the luminance component relativity measurement value of the 3rd class location point between (3,1), now the 3rd class location point in level is bright The luminance component relativity measurement value for the 3rd class location point that component correlations metric is more than on vertical is spent, on vertical The colourity point of the Equations of The Second Kind location point of the chromatic component value for the Equations of The Second Kind location point that coordinate arranges for the 1st row the 1st and the 3rd row the 1st row The chromatic component value of 3rd class location point of the row the 1st of magnitude calculation the 2nd row.
If it is preferred that the 3rd class location point is non-edge point, the luminance component of the 3rd class location point is related Property metric meets following equation:
e3=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) | ... formula five;
e4=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) | ... formula six;
Wherein, e3Represent the luminance component relativity measurement value of the 3rd class location point in horizontal direction, e4Represent vertical direction The luminance component relativity measurement value of upper 3rd class location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of the 3rd class location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
The embodiment of the present invention takes the mode of direct copying to obtain the marginal point of converted images, for example in figure 2 c, figure The marginal point of picture is referred to:0th row, the 7th row, the 0th row and the upper all points of the 7th row in image.
For example:When calculating the chromatic component value of the 3rd class location point that coordinate in Fig. 2 c is (2,1), it is known that Equations of The Second Kind position I=2, j=1, n=0 in point (2,1), the 3rd class location point in level is obtained by i=2, j=1, n=0 substitution formula five Luminance component relativity measurement value is:
e3=| 2Y (2,1)-Y (2,1-2*0+1)-Y (2,1+2*0-1) |;
I=2, j=1, n=0 are substituted into the luminance component relativity measurement that formula six obtains vertical upper 3rd class location point It is worth and is:
e4=| 2Y (2,1)-Y (2+2*0-1,1)-Y (2-2*0+1,1) |.
If it is preferred that the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than vertical direction On the 3rd class location point luminance component relativity measurement value, then the chromatic component value of the 3rd class location point meet following Formula:
Chroma (i, the j)=formula seven of [Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2 ...;
If the luminance component relativity measurement value of the 3rd class location point in vertical direction is more than the 3rd in vertical direction The luminance component relativity measurement value of class location point, then the chromatic component value of the 3rd class location point meet following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2 ... formula eight;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
For example:When calculating the chromatic component value of the 3rd class location point that coordinate in Fig. 2 c is (2,1), it is known that Equations of The Second Kind position I=2, j=1, n=0 in point (2,1), the colourity point that formula seven obtains the 3rd class location point is substituted into by i=2, j=1, n=0 Value is:
Chroma (2,1)=[Chroma (2,1-2*0+1)+Chroma (2,1+2*0-1)]/2.
In another example:When calculating the chromatic component value of the 3rd class location point that coordinate in Fig. 2 c is (2,1), it is known that Equations of The Second Kind position I=2, j=1, n=0 in point (2,1) are put, i=2, j=1, n=0 are substituted into the colourity that formula eight obtains the 3rd class location point Component value is:
Chroma (2,1)=[Chroma (2+2*0-1,1)+Chroma (2-2*0+1,1)]/2.
The embodiment of the present invention can according to by the 4th class location point horizontally or vertically on the 4th class location point The chromatic component value of two adjacent points calculates the chromatic component value of the 4th class location point, can also be according to by the 4th class position The left diagonal of point or the chromatic component value of two points adjacent with the 4th class location point on right diagonal calculate the 4th class The chromatic component value of location point.
The embodiment of the present invention, left diagonal is referred to:The point area defined adjacent with the 4th class location point (i.e. rectangle Region) left upper apex be connected with bottom right vertex formed diagonal, wherein, the 4th class location point is the center in the region Point;Right diagonal is referred to:The right vertices of the point area defined (i.e. rectangular area) adjacent with the 4th class location point and Connected the formed diagonal of bottom left vertex, wherein, the 4th class location point is the central point in the region.
A kind of mode for the chromatic component value for preferably determining the 4th class location point:
It is preferred that in step 203, the chromatic component value of the basis point adjacent with the 4th class location point determines institute The chromatic component value of the 4th class location point is stated, is specifically included:
According to the chromatic component value of two points adjacent with the 4th class location point, the 4th class location point is determined Chromatic component value, wherein two points adjacent with the 4th class location point are the level by the 4th class location point Or vertically adjacent point.
Possess 2 rows 2 for the embodiment of the present invention as shown in figure 2f and arrange a chromatic component for chromatic component point, the seat at figure midpoint Mark is started counting up from the 0th row the 0th row, the chromatic component point of the 0th row to the 2nd row, the 0th row in wherein Fig. 2 f to the 2nd row Correspond the 0th row to the 2nd row, the chromatic component point of the 1st row to the 3rd row in Fig. 2 c.
For example:The second of the chromatic component value of the Equations of The Second Kind location point arranged using the 1st row the 0th in Fig. 2 f and the 1st row the 2nd row The chromatic component value of class location point, calculates the chromatic component value of the 4th class location point of the 1st row the 1st row.
In another example:The chromatic component value and the 2nd row the 1st of the first kind location point arranged using the 0th row the 1st in Fig. 2 f arrange the The chromatic component value of one class location point, calculates the chromatic component value of the 4th class location point of the 1st row the 1st row.
A kind of chromatic component value preferably according to two points adjacent with the 4th class location point, determines the described 4th The mode of the chromatic component value of class location point is:The luminance component correlation degree of the 4th class location point determined according to luminance component Value selects two points to be calculated the chromatic component value to the 4th class location point, including
According to the chromatic component value of two points adjacent with the 4th class location point, the 4th class location point is determined Chromatic component value, is specifically included:
It is determined that by two adjacent with the 4th class location point in the horizontal direction of the 4th class location point The luminance component of two class location points, by adjacent with the 4th class location point in the vertical direction of the 4th class location point Two first kind location points luminance component, and the 4th class location point luminance component;
According to by two adjacent with the 4th class location point the in the horizontal direction of the 4th class location point The luminance component of two class location points, and the 4th class location point luminance component, determine in horizontal direction the 4th class position Put luminance component relativity measurement value a little, and according to by the vertical direction of the 4th class location point with the described 4th The luminance component of two adjacent first kind location points of class location point, and the 4th class location point luminance component, it is determined that The luminance component relativity measurement value of the 4th class location point in vertical direction;
If the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than in vertical direction The luminance component relativity measurement value of four class location points, then according to by the 4th class location point horizontal direction on institute The chromatic component value of two adjacent Equations of The Second Kind location points of the 4th class location point is stated, the colourity point of the 4th class location point is determined Value;
If the luminance component relativity measurement value of the 4th class location point in horizontal direction is more than the 4th in vertical direction The luminance component relativity measurement value of class location point, then according to by the 4th class location point vertical direction on it is described The chromatic component value of two adjacent first kind location points of 4th class location point, determines the chromatic component of the 4th class location point Value.
The luminance component relativity measurement value of the class location point of the embodiment of the present invention the 4th is smaller show a little between correlation It is bigger.
In another example:In the chromatic component value for the 4th class location point that the 1st row the 2nd is arranged in calculating Fig. 2 c, it is first determined warp The 4th class location point crossed between the luminance components (1,1) of three points in the level of the 4th class location point, (1,2) (1,3) Luminance component relativity measurement value and by the 4th class location point it is vertical on three points luminance component (0,2), (1, 2), the luminance component relativity measurement value of the 4th class location point between (2,2), now the 4th class location point in level is bright Degree component correlations metric is not more than in the luminance component relativity measurement value of the 4th class location point on vertical, use level Coordinate for the 1st row the 1st arrange Equations of The Second Kind location point chromatic component value and the 1st row the 3rd row Equations of The Second Kind location point colourity Component value calculates the chromatic component value of the 4th class location point of the 1st row the 2nd row.
In another example:In the chromatic component value for the 4th class location point that the 1st row the 2nd is arranged in calculating Fig. 2 c, it is first determined warp Cross three luminance components (1,1) in the level of the 4th class location point, the 4th class location point between (1,2) (1,3) it is bright Spend component correlations metric and by the 4th class location point it is vertical on three luminance components (0,2), (1,2), (2,2) Between the 4th class location point luminance component relativity measurement value, now the 4th class location point in level luminance component phase Closing property metric is more than the luminance component relativity measurement value of the 4th class location point on vertical, the use of the coordinate on vertical is the The chromatic component value of the first kind location point of 0 row the 2nd row and the chromatic component value of the first kind location point of the 2nd row the 2nd row are calculated The chromatic component value of 4th class location point of the 1st row the 2nd row.
If it is preferred that the 4th class location point is non-edge point, the luminance component of the 4th class location point is related Property metric meets following equation:
e5=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) | ... formula nine;
e6=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) | ... formula ten;
Wherein, e5Represent the luminance component relativity measurement value of the 4th class location point in horizontal direction, e6Represent vertical direction The luminance component relativity measurement value of upper 4th class location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of the 4th class location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
The embodiment of the present invention takes the mode of direct copying to obtain the marginal point of converted images, for example in figure 2 c, figure The marginal point of picture is referred to:0th row, the 7th row, the 0th row and the upper all points of the 7th row in image.
For example:When calculating the chromatic component value of the 4th class location point that coordinate in Fig. 2 c is (1,2), it is known that Equations of The Second Kind position I=1, j=2, n=0 in point (1,2), the 4th class location point in level is obtained by i=1, j=2, n=0 substitution formula nine Luminance component relativity measurement value is:
e5=| 2Y (1,2)-Y (1,2-2*0+1)-Y (1,2+2*0-1) |,
I=1, j=2, n=0 are substituted into the luminance component relativity measurement that formula ten obtains vertical upper 4th class location point It is worth and is:
e6=| 2Y (1,2)-Y (1+2*0-1,2)-Y (1-2*0+1,2) |.
If it is preferred that the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than vertical direction On the 4th class location point luminance component relativity measurement value, then the chromatic component value of the 4th class location point meet following Formula:
Chroma (i, the j)=formula 11 of [Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2 ...;
If the luminance component relativity measurement value of the 4th class location point in vertical direction is more than the 4th in vertical direction The luminance component relativity measurement value of class location point, then the chromatic component value of the 4th class location point meet following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2 ... formula 12;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
For example:When calculating the chromatic component value of the 4th class location point that coordinate in Fig. 2 c is (1,2), it is known that Equations of The Second Kind position I=1, j=2, n=0 in point (1,2), the colourity that formula 11 obtains the 4th class location point is substituted into by i=1, j=2, n=0 Component value is:
Chroma (1,2)=[Chroma (1,2-2*0+1)+Chroma (1,2+2*0-1)]/2.
In another example:When calculating the chromatic component value of the 4th class location point that coordinate in Fig. 2 c is (1,2), it is known that Equations of The Second Kind position I=1, j=2, n=0 in point (1,2) are put, i=1, j=2, n=0 are substituted into the color that formula 12 obtains the 4th class location point Spending component value is:
Chroma (1,2)=[Chroma (1+2*0-1,2)+Chroma (1-2*0+1,2)]/2.
Based on same inventive concept, a kind of device of image format conversion is additionally provided in the embodiment of the present invention, due to Fig. 3 Image format conversion the corresponding method of device be a kind of method of image format conversion of the embodiment of the present invention, therefore the present invention The implementation of embodiment device may refer to the implementation of system, repeats part and repeats no more.
As shown in figure 3, the device of the image format conversion of the embodiment of the present invention seven includes:
Point position determination unit 300, the position of the chromatic component each put in original image after conversion in image is determined, And using the chromatic component each put in the original image as the first kind location point in converted images chromatic component, And determine to need Equations of The Second Kind location point, the 3rd class location point and the 4th class position of progress interpolation calculation in image after conversion The position of the chromatic component of point;
Equations of The Second Kind location point chromatic component value determining unit 301, for the chromatic component for an Equations of The Second Kind location point, The color of the Equations of The Second Kind location point is determined according to the chromatic component value of the first kind location point adjacent with the Equations of The Second Kind location point Component value is spent, wherein the area that the Equations of The Second Kind location point is surrounded for the first kind location point adjacent with the Equations of The Second Kind location point The central point in domain;
3rd class location point chromatic component value determining unit 302, for the chromatic component for a 3rd class location point, The chromatic component value of the 3rd class location point is determined according to the chromatic component value of the point adjacent with the 3rd class location point, its Described in the 3rd class location point be in horizontal direction in and vertical direction adjacent with first kind location point with Equations of The Second Kind location point phase Adjacent point;
4th class location point chromatic component value determining unit 303, for the chromatic component for a 4th class location point, The chromatic component value of the 4th class location point is determined according to the chromatic component value of the point adjacent with the 4th class location point, its Described in the 4th class location point be adjacent with first kind location point in, vertical direction adjacent with Equations of The Second Kind location point in horizontal direction Point.
It is preferred that the Equations of The Second Kind location point chromatic component value determining unit 301 specifically for:
Described second is determined according to the chromatic component value of two first kind location points adjacent with the Equations of The Second Kind location point The chromatic component value of class location point, wherein the colourity of two first kind location point adjacent with the Equations of The Second Kind location point point Measure the colourity point for two first kind location points in four first kind location point area defined on diagonal Amount.
It is preferred that the Equations of The Second Kind location point chromatic component value determining unit 301 specifically for:
Determine the luminance component each put in four first kind location points;Determine that four first kind location points are surrounded Region in Equations of The Second Kind location point on every diagonal luminance component relativity measurement value;From four first kind location point institutes In the region surrounded, two first kind on the minimum diagonal of the luminance component relativity measurement value of Equations of The Second Kind location point are selected Location point;The chromatic component of the Equations of The Second Kind location point is determined according to the chromatic component value of the two of selection first kind location points Value.
If it is preferred that the Equations of The Second Kind location point is non-edge point, the luminance component of the Equations of The Second Kind location point is related Property metric meets following equation:
e1=| 2Y (i, j)-Y (i-2n+1, j-2n+1)-Y (i+2n-1, j+2n-1) |;
e2=| 2Y (i, j)-Y (i+2n-1, j-2n+1)-Y (i-2n+1, j+2n-1) |;
Wherein, e1Represent the luminance component relativity measurement value of Equations of The Second Kind location point on left diagonal, e2Represent right diagonal The luminance component relativity measurement value of upper Equations of The Second Kind location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of Equations of The Second Kind location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is not more than right diagonal On Equations of The Second Kind location point luminance component relativity measurement value, then the chromatic component value of the Equations of The Second Kind location point meet following Formula:
Chroma (i, j)=[Chroma (i-2n+1, j-2n+1)+Chroma (i+2n-1, j+2n-1)]/2;
If the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is more than second on right diagonal The luminance component relativity measurement value of class location point, then the chromatic component value of the Equations of The Second Kind location point meet following equation:
Chroma (i, j)=[Chroma (i+2n-1, j-2n+1)+Chroma (i-2n+1, j+2n-1)]/2;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
It is preferred that the 3rd class location point chromatic component value determining unit 302 specifically for:
According to the chromatic component value of two points adjacent with the 3rd class location point, the 3rd class location point is determined Chromatic component value, wherein two points adjacent with the 3rd class location point are the level by the 3rd class location point Or vertically adjacent point.
It is preferred that the 3rd class location point chromatic component value determining unit 302 specifically for:
It is determined that by two adjacent with the 3rd class location point in the horizontal direction of the 3rd class location point The luminance component of one class location point, by adjacent with the 3rd class location point in the vertical direction of the 3rd class location point Two Equations of The Second Kind location points luminance component, and the 3rd class location point luminance component;According to by the described 3rd The luminance component of two first kind location point adjacent with the 3rd class location point in the horizontal direction of class location point, and The luminance component of the 3rd class location point, determines the luminance component relativity measurement of the 3rd class location point in horizontal direction Value, and according to by two Equations of The Second Kind adjacent with the 3rd class location point in the vertical direction of the 3rd class location point The luminance component of location point, and the 3rd class location point luminance component, determine the 3rd class location point in vertical direction Luminance component relativity measurement value;If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than The luminance component relativity measurement value of the 3rd class location point in vertical direction, then according to the water by the 3rd class location point The chromatic component value of square upward two first kind location points adjacent with the 3rd class location point, determines the 3rd class The chromatic component value of location point;If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is more than Vertical Square The luminance component relativity measurement value of the 3rd upward class location point, then according to the vertical direction by the 3rd class location point On the two Equations of The Second Kind location points adjacent with the 3rd class location point chromatic component value, determine the 3rd class location point Chromatic component value.
If it is preferred that the 3rd class location point is non-edge point, the luminance component of the 3rd class location point is related Property metric meets following equation:
e3=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e4=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e3Represent the luminance component relativity measurement value of the 3rd class location point in horizontal direction, e4Represent vertical direction The luminance component relativity measurement value of upper 3rd class location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of the 3rd class location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than vertical direction On the 3rd class location point luminance component relativity measurement value, then the chromatic component value of the 3rd class location point meet following Formula:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 3rd class location point in vertical direction is more than the 3rd in vertical direction The luminance component relativity measurement value of class location point, then the chromatic component value of the 3rd class location point meet following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
It is preferred that the 4th class location point chromatic component value determining unit 303 specifically for:
According to the chromatic component value of two points adjacent with the 4th class location point, the 4th class location point is determined Chromatic component value, wherein two points adjacent with the 4th class location point are the level by the 4th class location point Or vertically adjacent point.
It is preferred that the 4th class location point chromatic component value determining unit 303 specifically for:
It is determined that by two adjacent with the 4th class location point in the horizontal direction of the 4th class location point The luminance component of two class location points, by adjacent with the 4th class location point in the vertical direction of the 4th class location point Two first kind location points luminance component, and the 4th class location point luminance component;According to by the described 4th The luminance component of the two Equations of The Second Kind location point adjacent with the 4th class location point in the horizontal direction of class location point, and The luminance component of the 4th class location point, determines the luminance component relativity measurement of the 4th class location point in horizontal direction Value, and according to by two first kind adjacent with the 4th class location point in the vertical direction of the 4th class location point The luminance component of location point, and the 4th class location point luminance component, determine the 4th class location point in vertical direction Luminance component relativity measurement value;If the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than The luminance component relativity measurement value of the 4th class location point in vertical direction, then according to the water by the 4th class location point The chromatic component value of square upward two Equations of The Second Kind location points adjacent with the 4th class location point, determines the 4th class The chromatic component value of location point;If the luminance component relativity measurement value of the 4th class location point in horizontal direction is more than Vertical Square The luminance component relativity measurement value of the 4th upward class location point, then according to the vertical direction by the 4th class location point On two first kind location points adjacent with the 4th class location point chromatic component value, determine the 4th class location point Chromatic component value.
If it is preferred that the 4th class location point is non-edge point, the luminance component of the 4th class location point is related Property metric meets following equation:
e5=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e6=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e5Represent the luminance component relativity measurement value of the 4th class location point in horizontal direction, e6Represent vertical direction The luminance component relativity measurement value of upper 4th class location point, luminance component relativity measurement value is smaller to represent that correlation is bigger; I, j represent the abscissa and ordinate of the 4th class location point respectively, and n represents preset value, and is natural number, and Y (x, y) represents conversion Luma component values of the image on (x, y) position afterwards.
If it is preferred that the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than vertical direction On the 4th class location point luminance component relativity measurement value, then the chromatic component value of the 4th class location point meet following Formula:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 4th class location point in vertical direction is more than the 4th in vertical direction The luminance component relativity measurement value of class location point, then the chromatic component value of the 4th class location point meet following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, Chroma (x, y) represents chromatic component value (U or V) of the converted images on (x, y) position.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include Preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (20)

1. a kind of method of digital image format conversion, it is characterised in that this method includes:
The position of the chromatic component each put in original image after conversion in image is determined, and will be every in the original image The chromatic component of individual point and is determined after conversion in image as the chromatic component of the first kind location point in converted images Need the position of the chromatic component of the Equations of The Second Kind location point, the 3rd class location point and the 4th class location point of progress interpolation calculation;
For the chromatic component of an Equations of The Second Kind location point, according to the first kind location point adjacent with the Equations of The Second Kind location point Chromatic component value determines the chromatic component value of the Equations of The Second Kind location point, wherein the Equations of The Second Kind location point is and the Equations of The Second Kind The central point of the adjacent first kind location point area defined of location point;
For the chromatic component of a 3rd class location point, according to the chromatic component value of the point adjacent with the 3rd class location point Determine the chromatic component value of the 3rd class location point, wherein the 3rd class location point be horizontal direction on first kind position The point adjacent with Equations of The Second Kind location point in the adjacent, vertical direction of point;
For the chromatic component of a 4th class location point, according to the chromatic component value of the point adjacent with the 4th class location point Determine the chromatic component value of the 4th class location point, wherein the 4th class location point be horizontal direction on Equations of The Second Kind position The point adjacent with first kind location point in the adjacent, vertical direction of point.
2. the method as described in claim 1, it is characterised in that according to the first kind position adjacent with the Equations of The Second Kind location point The chromatic component value of point determines the chromatic component value of the Equations of The Second Kind location point, specifically includes:
Determine the luminance component each put in four first kind location points;
Determine the luminance component phase of the Equations of The Second Kind location point in four first kind location point area defined on every diagonal Closing property metric;
From four first kind location point area defined, the luminance component relativity measurement value of Equations of The Second Kind location point is selected most Two first kind location points on small diagonal;
The chromatic component value of the Equations of The Second Kind location point is determined according to the chromatic component value of the two of selection first kind location points.
3. method as claimed in claim 2, it is characterised in that if the Equations of The Second Kind location point is non-edge point, described the The luminance component relativity measurement value of two class location points meets following equation:
e1=| 2Y (i, j)-Y (i-2n+1, j-2n+1)-Y (i+2n-1, j+2n-1) |;
e2=| 2Y (i, j)-Y (i+2n-1, j-2n+1)-Y (i-2n+1, j+2n-1) |;
Wherein, e1Represent the luminance component relativity measurement value of Equations of The Second Kind location point on left diagonal, e2Represent on right diagonal The luminance component relativity measurement value of two class location points, luminance component relativity measurement value is smaller to represent that correlation is bigger;I, j points Not Biao Shi Equations of The Second Kind location point abscissa and ordinate, n represents preset value, and is natural number, and Y (x, y) represents to scheme after conversion As the luma component values on (x, y) position.
4. method as claimed in claim 3, it is characterised in that if the luminance component phase of the Equations of The Second Kind location point on left diagonal Closing property metric is not more than the luminance component relativity measurement value of the Equations of The Second Kind location point on right diagonal, then the Equations of The Second Kind position The chromatic component value put a little meets following equation:
Chroma (i, j)=[Chroma (i-2n+1, j-2n+1)+Chroma (i+2n-1, j+2n-1)]/2;
If the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is more than the Equations of The Second Kind position on right diagonal Luminance component relativity measurement value a little is put, then the chromatic component value of the Equations of The Second Kind location point meets following equation:
Chroma (i, j)=[Chroma (i+2n-1, j-2n+1)+Chroma (i-2n+1, j+2n-1)]/2;
Wherein, Chroma (x, y) represents chromatic component value U or V of the converted images on (x, y) position.
5. the method as described in claim 1, it is characterised in that according to the colourity minute of the point adjacent with the 3rd class location point Value, determines the chromatic component value of the 3rd class location point, specifically includes:
It is determined that by two first kind adjacent with the 3rd class location point in the horizontal direction of the 3rd class location point The luminance component of location point, by two adjacent with the 3rd class location point in the vertical direction of the 3rd class location point The luminance component of individual Equations of The Second Kind location point, and the 3rd class location point luminance component;
According to by two first kind adjacent with the 3rd class location point in the horizontal direction of the 3rd class location point The luminance component of location point, and the 3rd class location point luminance component, determine the 3rd class location point in horizontal direction Luminance component relativity measurement value, and according to by the 3rd class location point vertical direction on the 3rd class position Put the luminance component of two a little adjacent Equations of The Second Kind location points, and the 3rd class location point luminance component, it is determined that vertically The luminance component relativity measurement value of the 3rd class location point on direction;
If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than the 3rd class in vertical direction The luminance component relativity measurement value of location point, then according to by the horizontal direction of the 3rd class location point with described the The chromatic component value of two adjacent first kind location points of three class location points, determines the chromatic component of the 3rd class location point Value;
If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is more than the 3rd class position in vertical direction Put luminance component relativity measurement value a little, then according to by the vertical direction of the 3rd class location point with the described 3rd The chromatic component value of two adjacent Equations of The Second Kind location points of class location point, determines the chromatic component value of the 3rd class location point.
6. method as claimed in claim 5, it is characterised in that if the 3rd class location point is non-edge point, described the The luminance component relativity measurement value of three class location points meets following equation:
e3=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e4=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e3Represent the luminance component relativity measurement value of the 3rd class location point in horizontal direction, e4Represent the in vertical direction The luminance component relativity measurement value of three class location points, luminance component relativity measurement value is smaller to represent that correlation is bigger;I, j points Not Biao Shi the 3rd class location point abscissa and ordinate, n represents preset value, and is natural number, and Y (x, y) represents to scheme after conversion As the luma component values on (x, y) position.
7. method as claimed in claim 6, it is characterised in that if the luminance component phase of the 3rd class location point in horizontal direction Closing property metric is not more than the luminance component relativity measurement value of the 3rd class location point in vertical direction, then the 3rd class position The chromatic component value put a little meets following equation:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 3rd class location point in vertical direction is more than the 3rd class position in vertical direction Luminance component relativity measurement value a little is put, then the chromatic component value of the 3rd class location point meets following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, Chroma (x, y) represents chromatic component value U or V of the converted images on (x, y) position.
8. the method as described in claim 1, it is characterised in that according to the colourity minute of the point adjacent with the 4th class location point Value, determines the chromatic component value of the 4th class location point, specifically includes:
It is determined that by two Equations of The Second Kind adjacent with the 4th class location point in the horizontal direction of the 4th class location point The luminance component of location point, by two adjacent with the 4th class location point in the vertical direction of the 4th class location point The luminance component of individual first kind location point, and the 4th class location point luminance component;
According to by two Equations of The Second Kind adjacent with the 4th class location point in the horizontal direction of the 4th class location point The luminance component of location point, and the 4th class location point luminance component, determine the 4th class location point in horizontal direction Luminance component relativity measurement value, and according to by the 4th class location point vertical direction on the 4th class position Put the luminance component of two a little adjacent first kind location points, and the 4th class location point luminance component, it is determined that vertically The luminance component relativity measurement value of the 4th class location point on direction;
If the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than the 4th class in vertical direction The luminance component relativity measurement value of location point, then according to by the horizontal direction of the 4th class location point with described the The chromatic component value of two adjacent Equations of The Second Kind location points of four class location points, determines the chromatic component of the 4th class location point Value;
If the luminance component relativity measurement value of the 4th class location point in horizontal direction is more than the 4th class position in vertical direction Put luminance component relativity measurement value a little, then according to by the vertical direction of the 4th class location point with the described 4th The chromatic component value of two adjacent first kind location points of class location point, determines the chromatic component value of the 4th class location point.
9. method as claimed in claim 8, it is characterised in that if the 4th class location point is non-edge point, described the The luminance component relativity measurement value of four class location points meets following equation:
e5=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e6=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e5Represent the luminance component relativity measurement value of the 4th class location point in horizontal direction, e6Represent the in vertical direction The luminance component relativity measurement value of four class location points, luminance component relativity measurement value is smaller to represent that correlation is bigger;I, j points Not Biao Shi the 4th class location point abscissa and ordinate, n represents preset value, and is natural number, and Y (x, y) represents to scheme after conversion As the luma component values on (x, y) position.
10. method as claimed in claim 9, it is characterised in that if the luminance component of the 4th class location point in horizontal direction Relativity measurement value is not more than the luminance component relativity measurement value of the 4th class location point in vertical direction, then the 4th class The chromatic component value of location point meets following equation:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 4th class location point in vertical direction is more than the 4th class position in vertical direction Luminance component relativity measurement value a little is put, then the chromatic component value of the 4th class location point meets following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, Chroma (x, y) represents chromatic component value U or V of the converted images on (x, y) position.
11. a kind of device of digital image format conversion, it is characterised in that the device includes:
Point position determination unit, for the position in the chromatic component that determines each to put in original image after conversion image, and And using the chromatic component each put in the original image as the first kind location point in converted images chromatic component, with And determine to need Equations of The Second Kind location point, the 3rd class location point and the 4th class location point of progress interpolation calculation in image after conversion Chromatic component position;
Equations of The Second Kind location point chromatic component value determining unit, for the chromatic component for an Equations of The Second Kind location point, according to The chromatic component value of the adjacent first kind location point of the Equations of The Second Kind location point determines the chromatic component of the Equations of The Second Kind location point Value, wherein the Equations of The Second Kind location point is in the first kind location point area defined adjacent with the Equations of The Second Kind location point Heart point;
3rd class location point chromatic component value determining unit, for the chromatic component for a 3rd class location point, according to The chromatic component value of the adjacent point of the 3rd class location point determines the chromatic component value of the 3rd class location point, wherein described 3rd class location point is point adjacent with Equations of The Second Kind location point in, vertical direction adjacent with first kind location point in horizontal direction;
4th class location point chromatic component value determining unit, for the chromatic component for a 4th class location point, according to The chromatic component value of the adjacent point of the 4th class location point determines the chromatic component value of the 4th class location point, wherein described 4th class location point is point adjacent with first kind location point in, vertical direction adjacent with Equations of The Second Kind location point in horizontal direction.
12. device as claimed in claim 11, it is characterised in that the Equations of The Second Kind location point chromatic component value determining unit tool Body is used for:
Determine the luminance component each put in four first kind location points;Determine the area that four first kind location points are surrounded The luminance component relativity measurement value of Equations of The Second Kind location point in domain on every diagonal;Surrounded from four first kind location points Region in, select two first kind positions on the minimum diagonal of the luminance component relativity measurement value of Equations of The Second Kind location point Point;The chromatic component value of the Equations of The Second Kind location point is determined according to the chromatic component value of the two of selection first kind location points.
13. device as claimed in claim 12, it is characterised in that described if the Equations of The Second Kind location point is non-edge point The luminance component relativity measurement value of Equations of The Second Kind location point meets following equation:
e1=| 2Y (i, j)-Y (i-2n+1, j-2n+1)-Y (i+2n-1, j+2n-1) |;
e2=| 2Y (i, j)-Y (i+2n-1, j-2n+1)-Y (i-2n+1, j+2n-1) |;
Wherein, e1Represent the luminance component relativity measurement value of Equations of The Second Kind location point on left diagonal, e2Represent on right diagonal The luminance component relativity measurement value of two class location points, luminance component relativity measurement value is smaller to represent that correlation is bigger;I, j points Not Biao Shi Equations of The Second Kind location point abscissa and ordinate, n represents preset value, and is natural number, and Y (x, y) represents to scheme after conversion As the luma component values on (x, y) position.
14. device as claimed in claim 13, it is characterised in that if the luminance component of the Equations of The Second Kind location point on left diagonal Relativity measurement value is not more than the luminance component relativity measurement value of the Equations of The Second Kind location point on right diagonal, then the Equations of The Second Kind The chromatic component value of location point meets following equation:
Chroma (i, j)=[Chroma (i-2n+1, j-2n+1)+Chroma (i+2n-1, j+2n-1)]/2;
If the luminance component relativity measurement value of the Equations of The Second Kind location point on left diagonal is more than the Equations of The Second Kind position on right diagonal Luminance component relativity measurement value a little is put, then the chromatic component value of the Equations of The Second Kind location point meets following equation:
Chroma (i, j)=[Chroma (i+2n-1, j-2n+1)+Chroma (i-2n+1, j+2n-1)]/2;
Wherein, Chroma (x, y) represents chromatic component value U or V of the converted images on (x, y) position.
15. device as claimed in claim 11, it is characterised in that the 3rd class location point chromatic component value determining unit tool Body is used for:
It is determined that by two first kind adjacent with the 3rd class location point in the horizontal direction of the 3rd class location point The luminance component of location point, by two adjacent with the 3rd class location point in the vertical direction of the 3rd class location point The luminance component of individual Equations of The Second Kind location point, and the 3rd class location point luminance component;According to by the 3rd class position The luminance component of two first kind location point adjacent with the 3rd class location point in horizontal direction a little is put, and it is described The luminance component of 3rd class location point, determines the luminance component relativity measurement value of the 3rd class location point in horizontal direction, and According to by the two Equations of The Second Kind positions adjacent with the 3rd class location point in the vertical direction of the 3rd class location point Luminance component, and the 3rd class location point luminance component, determine the brightness of the 3rd class location point in vertical direction Component correlations metric;If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is not more than Vertical Square The luminance component relativity measurement value of the 3rd upward class location point, then according to the horizontal direction by the 3rd class location point On two first kind location points adjacent with the 3rd class location point chromatic component value, determine the 3rd class location point Chromatic component value;If the luminance component relativity measurement value of the 3rd class location point in horizontal direction is more than in vertical direction The luminance component relativity measurement value of 3rd class location point, then according to by the 3rd class location point vertical direction on The chromatic component value of two adjacent Equations of The Second Kind location points of the 3rd class location point, determines the colourity of the 3rd class location point Component value.
16. device as claimed in claim 15, it is characterised in that described if the 3rd class location point is non-edge point The luminance component relativity measurement value of 3rd class location point meets following equation:
e3=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e4=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e3Represent the luminance component relativity measurement value of the 3rd class location point in horizontal direction, e4Represent the in vertical direction The luminance component relativity measurement value of three class location points, luminance component relativity measurement value is smaller to represent that correlation is bigger;I, j points Not Biao Shi the 3rd class location point abscissa and ordinate, n represents preset value, and is natural number, and Y (x, y) represents to scheme after conversion As the luma component values on (x, y) position.
17. device as claimed in claim 16, it is characterised in that if the luminance component of the 3rd class location point in horizontal direction Relativity measurement value is not more than the luminance component relativity measurement value of the 3rd class location point in vertical direction, then the 3rd class The chromatic component value of location point meets following equation:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 3rd class location point in vertical direction is more than the 3rd class position in vertical direction Luminance component relativity measurement value a little is put, then the chromatic component value of the 3rd class location point meets following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, Chroma (x, y) represents chromatic component value U or V of the converted images on (x, y) position.
18. device as claimed in claim 11, it is characterised in that the 4th class location point chromatic component value determining unit tool Body is used for:
It is determined that by two Equations of The Second Kind adjacent with the 4th class location point in the horizontal direction of the 4th class location point The luminance component of location point, by two adjacent with the 4th class location point in the vertical direction of the 4th class location point The luminance component of individual first kind location point, and the 4th class location point luminance component;According to by the 4th class position The luminance component of the two Equations of The Second Kind location point adjacent with the 4th class location point in horizontal direction a little is put, and it is described The luminance component of 4th class location point, determines the luminance component relativity measurement value of the 4th class location point in horizontal direction, and According to by two first kind positions adjacent with the 4th class location point in the vertical direction of the 4th class location point The luminance component of point, and the 4th class location point luminance component, determine the bright of the 4th class location point in vertical direction Spend component correlations metric;If the luminance component relativity measurement value of the 4th class location point in horizontal direction is not more than vertically The luminance component relativity measurement value of the 4th class location point on direction, then according to the level side by the 4th class location point The chromatic component value of the upward two Equations of The Second Kind location points adjacent with the 4th class location point, determines the 4th class position The chromatic component value of point;If the luminance component relativity measurement value of the 4th class location point in horizontal direction is more than in vertical direction The 4th class location point luminance component relativity measurement value, then according to by the 4th class location point vertical direction on The chromatic component value of two first kind location points adjacent with the 4th class location point, determines the color of the 4th class location point Spend component value.
19. device as claimed in claim 18, it is characterised in that described if the 4th class location point is non-edge point The luminance component relativity measurement value of 4th class location point meets following equation:
e5=| 2Y (i, j)-Y (i, j-2n+1)-Y (i, j+2n-1) |;
e6=| 2Y (i, j)-Y (i+2n-1, j)-Y (i-2n+1, j) |;
Wherein, e5Represent the luminance component relativity measurement value of the 4th class location point in horizontal direction, e6Represent the in vertical direction The luminance component relativity measurement value of four class location points, luminance component relativity measurement value is smaller to represent that correlation is bigger;I, j points Not Biao Shi the 4th class location point abscissa and ordinate, n represents preset value, and is natural number, and Y (x, y) represents to scheme after conversion As the luma component values on (x, y) position.
20. device as claimed in claim 19, it is characterised in that if the luminance component of the 4th class location point in horizontal direction Relativity measurement value is not more than the luminance component relativity measurement value of the 4th class location point in vertical direction, then the 4th class The chromatic component value of location point meets following equation:
Chroma (i, j)=[Chroma (i, j-2n+1)+Chroma (i, j+2n-1)]/2;
If the luminance component relativity measurement value of the 4th class location point in vertical direction is more than the 4th class position in vertical direction Luminance component relativity measurement value a little is put, then the chromatic component value of the 4th class location point meets following equation:
Chroma (i, j)=[Chroma (and i+2n-1, j)+Chroma (i-2n+1, j)]/2;
Wherein, Chroma (x, y) represents chromatic component value U or V of the converted images on (x, y) position.
CN201410609040.6A 2014-10-30 2014-10-30 A kind of method and device of digital image format conversion Active CN105554487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410609040.6A CN105554487B (en) 2014-10-30 2014-10-30 A kind of method and device of digital image format conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410609040.6A CN105554487B (en) 2014-10-30 2014-10-30 A kind of method and device of digital image format conversion

Publications (2)

Publication Number Publication Date
CN105554487A CN105554487A (en) 2016-05-04
CN105554487B true CN105554487B (en) 2017-07-25

Family

ID=55833398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410609040.6A Active CN105554487B (en) 2014-10-30 2014-10-30 A kind of method and device of digital image format conversion

Country Status (1)

Country Link
CN (1) CN105554487B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631802B (en) * 2014-10-30 2018-11-30 炬芯(珠海)科技有限公司 A kind of method and device of digital image format conversion

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100374791B1 (en) * 2000-11-22 2003-03-04 삼성전자주식회사 Method and apparatus for sectioning image into a plurality of regions
CN101500066B (en) * 2008-02-03 2011-11-23 深圳艾科创新微电子有限公司 Method and system for image sampling format conversion
CN103024403B (en) * 2012-12-31 2015-06-03 Tcl集团股份有限公司 Conversion method and device for data format of video

Also Published As

Publication number Publication date
CN105554487A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
KR101175554B1 (en) 3d image reproduction device
EP2525561B1 (en) Data-generating device, data-generating method, data-generating program, and recording medium
US11030715B2 (en) Image processing method and apparatus
US7612784B2 (en) Image processor and method, computer program, and recording medium
KR101295649B1 (en) Image processing apparatus, image processing method and storage medium
KR101377733B1 (en) -up-scaling
CN103826114B (en) Stereo display method and free stereo display apparatus
US7050066B2 (en) Image processing apparatus and image processing program
CN105554487B (en) A kind of method and device of digital image format conversion
CN105631802B (en) A kind of method and device of digital image format conversion
US6744440B1 (en) Image processing apparatus, recording medium, and program
TWI356394B (en) Image data generating device, image data generatin
KR100858086B1 (en) Rendering apparatus and method
CA2674104A1 (en) Method and graphical user interface for modifying depth maps
KR100698284B1 (en) Apparatus and method for color error reduction in display of subpixel structure
JP5857606B2 (en) Depth production support apparatus, depth production support method, and program
JP5757463B2 (en) 2D color gradation display device
EP3836091A1 (en) Alpha value decision device, alpha value decision method, program, and data structure of image data
US10930185B2 (en) Information processing system, information processing apparatus, output apparatus, program, and recording medium
WO2024087088A1 (en) Image processing method based on dithering algorithm, and display device
JP2005149439A (en) Image processor and image processing method
KR101212026B1 (en) Apparatus and method for adaptively compositing image using chroma key
KR102005526B1 (en) Method and apparatus for displaying augmented reality
CN106356016B (en) Four-color pixel arrangement, corresponding display method and display device thereof
JP4734952B2 (en) Image processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee after: ACTIONS TECHNOLOGY Co.,Ltd.

Address before: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ACTIONS (ZHUHAI) TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder