CN104883552B - YUV (Luma and Chroma) coded format-based image adjusting method and system - Google Patents

YUV (Luma and Chroma) coded format-based image adjusting method and system Download PDF

Info

Publication number
CN104883552B
CN104883552B CN201510264479.4A CN201510264479A CN104883552B CN 104883552 B CN104883552 B CN 104883552B CN 201510264479 A CN201510264479 A CN 201510264479A CN 104883552 B CN104883552 B CN 104883552B
Authority
CN
China
Prior art keywords
component
regulation
pixel
yuv
yuv data
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
CN201510264479.4A
Other languages
Chinese (zh)
Other versions
CN104883552A (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.)
Shenzhen carrier Intelligent Technology Co., Ltd
Original Assignee
SHENZHEN ZAIDE OPTOELECTRICS TECHNOLOGY DEVELOPMENT 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 SHENZHEN ZAIDE OPTOELECTRICS TECHNOLOGY DEVELOPMENT Co Ltd filed Critical SHENZHEN ZAIDE OPTOELECTRICS TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201510264479.4A priority Critical patent/CN104883552B/en
Publication of CN104883552A publication Critical patent/CN104883552A/en
Application granted granted Critical
Publication of CN104883552B publication Critical patent/CN104883552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention relates to the technical field of image adjusting and particularly relates to a YUV (Luma and Chroma) coded format-based image adjusting method and system. A distorted image output by an image transmission device 1 is adjusted before being input in an image display device 5, so that distortion is eliminated or mitigated, and the display quality of the image display device 5 is improved. In the distorted image adjusting process, brightness and chroma signals of an image can be separated for independent adjustment, so that the distortion of an image signal is well solved, and method provided the invention is more accurate and more excellent in effect compared with a conventional image adjusting technology.

Description

A kind of picture adjustment methods based on YUV coded format and regulation system
Technical field
The present invention relates to image adjustment technical field, particularly relate to a kind of picture adjustment methods based on YUV coded format And regulation system.
Background technology
Along with video format, interface protocol and type are more and more, the compatibility of video equipment, complexity are continuously increased. And video frequency terminal apparatus such as display, television set etc., the interface protocol of support, limited types, give video eventually at video signal Need the signal format unmatched signal source form being converted into video terminal support can normally receive, show before end. But between unlike signal form change, the particularly conversion between digital signal and analogue signal, can cause brightness of image and There is distortion in various degree in color, has had a strong impact on Consumer's Experience, even can not use.Traditional method, can only be by regulation The relevant parameter of display apparatus or other-end equipment goes to improve, and when 1 road signal delivers to multiple video terminal, needs every Individual terminal all regulates once, and only the parameter such as brightness, contrast can regulate, it is impossible to colourity U, V are separated individually Regulation, can not well improve when causing image fault serious.Major part video frequency terminal apparatus is also had not support these parameters Regulatory function.
Display device and the almost digital signal of video terminal primary recipient at present, the color of each pixel is former by three Color (R, G, B) is constituted, and the quality of image quality then depends primarily on the brightness of its presented picture, contrast and saturated Degree.The at present process to digital picture mainly has three kinds of models:
RGB model: the color model produced by three primary colours colour mixture principle, three primary colours are red (R), green (G), blue (B), all Color can be added superposition by three primary colours by different proportion and form.
HSV model: a kind of compare the color model meeting human-eye visual characteristic, the advantage with YC separation.H, S, V divide Do not represent tone, saturation and brightness.
At present, the image attributes regulation carried out for YUV model, the general method using color model conversion realizes, I.e., first, YUV modular form is converted to RGB model, is then reconverted into HSV model, then hsv color model is carried out color Attribute regulates.Current colors countenance means mostly are based on RGB, HSV colour model, and at present in technical field of video compression, Video source form mostly is the discrete representation pattern i.e. YUV taking monochrome information with chrominance information.Even if same signal source, give not Same display device, the image effect of display also has certain deviation.
Summary of the invention
The technical problem to be solved is to provide a kind of picture adjustment methods based on YUV coded format and tune Joint system, separates brightness and carrier chrominance signal and is independently adjusted.The present invention is achieved in that
A kind of picture adjustment methods based on YUV coded format, for regulating the graphic transmission equipment output of its front end The brightness of image and colourity, comprise the steps:
Step 1: receive the image of described graphic transmission equipment output;
Step 2: described image is carried out brightness and colourity regulation;
Step 3: send the image after brightness and colourity regulation;The step of described step 2 includes:
Step A: by Y-component Y in the yuv data of each for described image pixeli, U component UiAnd V component ViSeparate;
Step B: select to be automatically adjusted in pattern or the manual adjustment mode yuv data to each pixel according to control instruction Y-component Yi, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain the yuv data of each pixel after brightness and colourity regulation In Y-component Y', U component U' and V component V';
The pattern that is automatically adjusted is to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and color The step of degree regulation includes:
Step B1: according to Y-component Y in the system deviation of described graphic transmission equipment and the yuv data of each pixeli, U divides Amount UiAnd V component ViCalculate the regulation parameter of the Y-component of each pixel of this image, U component and V component;Described system deviation includes Y Component system deviation Dy, U component system deviation D u and V component system deviation Dv;Computational methods are as follows:
The regulation parameter of Y-component is: Ay=Dy×Yi
The regulation parameter of U component is: Au=Du×Ui
The regulation parameter of V component is: Av=Dv×Vi
Step B2: according to the regulation parameter of the Y-component of each pixel calculated, U component and V component pixel each to this image Yuv data in Y-component Yi, U component UiAnd V component ViCarry out brightness and colourity regulation, each after obtaining brightness and colourity regulation Y-component Y' in the yuv data of pixel, U component U' and V component V';Control method is as follows:
Y'=Yi+Ay
U'=Ui+Au
V'=Vi+Av
Manual adjustment mode is to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and color The step of degree regulation includes:
Step B3: receive the regulation parameter of the Y-component, U component and the V component that are manually entered;
The regulation parameter of the Y-component being manually entered is By
The regulation parameter of the U component being manually entered is Bu
The regulation parameter of the V component being manually entered is Bv
Step B4: according in yuv data to each pixel of the regulation parameter of the Y-component being manually entered, U component and V component Y-component Yi, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain the YUV number of each pixel after brightness and colourity regulation Y-component Y' according to, U component U' and V component V';Control method is as follows:
Y'=Yi+By
U'=Ui+Bu
V'=Vi+Bv
Step C: Y-component Y' in the yuv data of each pixel after regulation, U component U' and V component V' are carried out anti-spilled tune Joint, Y-component Y in the yuv data of each pixel after obtaining anti-spilled regulationf, U component UfAnd V component Vf;Control method is as follows:
Y f = 255 , Y &prime; > 255 Y &prime; , 0 &le; Y &prime; &le; 255 0 , Y &prime; < 0 ;
U f = 255 , U &prime; > 255 U &prime; , 0 &le; U &prime; &le; 255 0 , U &prime; < 0 ;
V f = 255 , V &prime; > 255 V &prime; , 0 &le; V &prime; &le; 255 0 , V &prime; < 0 ;
Step D: by Y-component Y in the yuv data of each pixel after anti-spilled regulationf, U component UfAnd V component VfRestructuring shape The yuv data of each pixel after becoming anti-spilled regulation.
Further, before described image carries out brightness and colourity regulation, also include calculating described graphic transmission equipment The step of system deviation;The step of the system deviation calculating described graphic transmission equipment comprises the steps:
Transmission standard yuv data is to described graphic transmission equipment;
Obtain YUV from the outfan of described graphic transmission equipment and export data;
Export data according to described standard yuv data and described YUV and calculate the system deviation of described graphic transmission equipment, meter Calculation method is as follows:
Y-component system deviation Dy:
U component system deviation D u:
V component system deviation Dv:
Wherein, Y-component, U component and the V component during Ys, Us, Vs are respectively standard yuv data;Ya, Ua, Va are respectively Y-component, U component and V component in YUV output data.
Further, the regulation parameter of the Y-component being manually entered described in is By=-15;
The regulation parameter of the described U component being manually entered is Bu=3;
The regulation parameter of the described V component being manually entered is Bv=0.
Further, described image is YUV444 coded format.
A kind of image modification system based on YUV coded format, for regulating the graphic transmission equipment output of its front end The brightness of image and colourity, including:
Video reception chip, for receiving the image of described graphic transmission equipment output;
Image adjustment module, for carrying out brightness and colourity regulation to described image;
Video sends chip, the image after sending brightness and colourity regulation;Described image adjustment module includes: YUV Data separating module, shaping modes handover module, it is automatically adjusted module, manual adjustment module, anti-spilled adjustment module, YUV number According to recombination module;
Described yuv data separation module is used for receiving described image from described video reception chip, and by each for described image Y-component Y in the yuv data of pixeli, U component UiAnd V component ViSeparate;
Described shaping modes handover module for according to its control instruction Selection and call received be automatically adjusted module or Manual adjustment module is to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and colourity regulation, Y-component Y' in the yuv data of each pixel, U component U' and V component V' after regulating to brightness and colourity;
The described module that is automatically adjusted includes:
Regulation parameter calculating module, for the system deviation according to described graphic transmission equipment and the yuv data of each pixel In Y-component Yi, U component UiAnd V component ViCalculate the regulation parameter of the Y-component of each pixel of this image, U component and V component;Institute State system deviation and include Y-component system deviation Dy, U component system deviation D u and V component system deviation Dv;Computational methods are as follows:
The regulation parameter of Y-component is: Ay=Dy×Yi
The regulation parameter of U component is: Au=Du×Ui
The regulation parameter of V component is: Av=Dv×Vi
First brightness and colourity adjustment module, for according to the Y-component of each pixel, U component and the tune of V component calculated Y-component Y in the yuv data of JIESHEN number pixel each to this imagei, U component UiAnd V component ViCarry out brightness and colourity regulation, Y-component Y' in the yuv data of each pixel, U component U' and V component V' after regulating to brightness and colourity;Control method is as follows:
Y'=Yi+Ay
U'=Ui+Au
V'=Vi+Av
Described manual adjustment module includes:
Regulation parameter receiver module, for receiving the regulation parameter of the Y-component, U component and the V component that are manually entered;
The regulation parameter of the Y-component being manually entered is By
The regulation parameter of the U component being manually entered is Bu
The regulation parameter of the V component being manually entered is Bv
Second brightness and colourity adjustment module, for the regulation parameter according to Y-component, U component and the V component being manually entered To Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain brightness and colourity Y-component Y' in the yuv data of each pixel, U component U' and V component V' after regulation;Control method is as follows:
Y'=Yi+By
U'=Ui+Bu
V'=Vi+Bv
Described anti-spilled adjustment module is for dividing Y-component Y' in the yuv data of each pixel after regulation, U component U' and V Amount V' carries out anti-spilled regulation, Y-component Y in the yuv data of each pixel after obtaining anti-spilled regulationf, U component UfAnd V component Vf;Control method is as follows:
Y f = 255 , Y &prime; > 255 Y &prime; , 0 &le; Y &prime; &le; 255 0 , Y &prime; < 0 ;
U f = 255 , U &prime; > 255 U &prime; , 0 &le; U &prime; &le; 255 0 , U &prime; < 0 ;
V f = 255 , V &prime; > 255 V &prime; , 0 &le; V &prime; &le; 255 0 , V &prime; < 0 ;
Described yuv data recombination module is for by Y-component Y in the yuv data of each pixel after anti-spilled regulationf, U component UfAnd V component VfThe yuv data of each pixel after the restructuring anti-spilled regulation of formation.
Further, it is automatically adjusted module described in and also includes system deviation computing module;
Described system deviation computing module is for calculating described image before described image carries out brightness and colourity regulation The system deviation of transmission equipment, comprising:
Standard yuv data sending module, is used for sending standard yuv data to described graphic transmission equipment;
Yuv data output acquisition module, exports data for obtaining YUV from the outfan of described graphic transmission equipment;
System deviation calculating sub module, calculates described figure for exporting data according to described standard yuv data and described YUV As the system deviation of transmission equipment, computational methods are as follows:
Y-component system deviation Dy:
U component system deviation D u:
V component system deviation Dv:
Wherein, Y-component, U component and the V component during Ys, Us, Vs are respectively standard yuv data;Ya, Ua, Va are respectively Y-component, U component and V component in YUV output data.
Further, the regulation parameter of the Y-component being manually entered described in is By=-15;
The regulation parameter of the described U component being manually entered is Bu=3;
The regulation parameter of the described V component being manually entered is Bv=0.
Further, described image is YUV444 coded format.
Compared with prior art, the picture adjustment methods based on YUV coded format of present invention offer and regulation system, can Brightness and the carrier chrominance signal of image are separated and carried out independent regulation, the problem of dtmf distortion DTMF of picture signal can be solved well, than Existing image adjustment technology is more accurate, better.
Accompanying drawing explanation
Fig. 1: image transmitting process schematic diagram in prior art;
Fig. 2: present invention picture adjustment methods based on YUV coded format schematic flow sheet;
Fig. 3: present invention image modification system based on YUV coded format composition and working principle schematic diagram.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, right The present invention is further elaborated.
Due to the variation of video format, interface protocol and type, image is transmitting to image display 5 (such as display Device) front, generally require and first image is changed, form that image display 5 supported could be by image to make image meet Display device 5 receives.Fig. 1 show image transmitting process schematic diagram of the prior art, and graphic transmission equipment 1 is directly by image Output is to image display 5, and wherein graphic transmission equipment 1 is for changing image.Graphic transmission equipment 1 is to image Image fault being caused during changing, if distorted image to be directly output to image display 5, figure can be caused As display device 5 display distortion.Therefore, it is necessary at the distorted image input picture display device 5 of graphic transmission equipment 1 output This distorted image is adjusted before, to eliminate as much as or to reduce its distortion, thus improves the display of image display 5 Quality.
Based on above-mentioned consideration, the present invention proposes a kind of picture adjustment methods based on YUV coded format, is used for regulating figure The brightness of the image of picture transmission equipment 1 output and colourity.As in figure 2 it is shown, this control method comprises the steps:
Step 1: receive the image of described graphic transmission equipment 1 output;
Step 2: described image is carried out brightness and colourity regulation;
Step 3: send the image after brightness and colourity regulation.In the present invention, image is YUV444 coded format, the most also Other kinds of YUV coded format can be used.
The step of described step 2 includes:
Step A: by Y-component Y in the yuv data of each for described image pixeli, U component UiAnd V component ViSeparate.
Step B: select to be automatically adjusted in pattern or the manual adjustment mode yuv data to each pixel according to control instruction Y-component Yi, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain the yuv data of each pixel after brightness and colourity regulation In Y-component Y', U component U' and V component V'.
The pattern that is automatically adjusted is to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and color The step of degree regulation includes:
Step B1: according to Y-component Y in the system deviation of described graphic transmission equipment 1 and the yuv data of each pixeli、U Component UiAnd V component ViCalculate the regulation parameter of the Y-component of each pixel of this image, U component and V component;Described system deviation includes Y-component system deviation Dy, U component system deviation D u and V component system deviation Dv;Computational methods are as follows:
The regulation parameter of Y-component is: Ay=Dy×Yi
The regulation parameter of U component is: Au=Du×Ui
The regulation parameter of V component is: Av=Dv×Vi
Step B2: according to the regulation parameter of the Y-component of each pixel calculated, U component and V component pixel each to this image Yuv data in Y-component Yi, U component UiAnd V component ViCarry out brightness and colourity regulation, each after obtaining brightness and colourity regulation Y-component Y' in the yuv data of pixel, U component U' and V component V';Control method is as follows:
Y'=Yi+Ay
U'=Ui+Au
V'=Vi+Av
Manual adjustment mode is to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and color The step of degree regulation includes:
Step B3: receive the regulation parameter of the Y-component, U component and the V component that are manually entered;
The regulation parameter of the Y-component being manually entered is By
The regulation parameter of the U component being manually entered is Bu
The regulation parameter of the V component being manually entered is Bv
Step B4: according in yuv data to each pixel of the regulation parameter of the Y-component being manually entered, U component and V component Y-component Yi, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain the YUV number of each pixel after brightness and colourity regulation Y-component Y' according to, U component U' and V component V';Control method is as follows:
Y'=Yi+By
U'=Ui+Bu
V'=Vi+Bv.Based on experience value, it is B when the regulation parameter of the described Y-component being manually enteredy=-15, described manually The regulation parameter of the U component of input is Bu=3, described in the regulation parameter of V component that is manually entered be BvWhen=0, it is possible to obtain Preferably distortion regulating effect.
Step C: Y-component Y' in the yuv data of each pixel after regulation, U component U' and V component V' are carried out anti-spilled tune Joint, Y-component Y in the yuv data of each pixel after obtaining anti-spilled regulationf, U component UfAnd V component Vf;Control method is as follows:
Y f = 255 , Y &prime; > 255 Y &prime; , 0 &le; Y &prime; &le; 255 0 , Y &prime; < 0 ;
U f = 255 , U &prime; > 255 U &prime; , 0 &le; U &prime; &le; 255 0 , U &prime; < 0 ;
V f = 255 , V &prime; > 255 V &prime; , 0 &le; V &prime; &le; 255 0 , V &prime; < 0 ;
Step D: by Y-component Y in the yuv data of each pixel after anti-spilled regulationf, U component UfAnd V component VfRestructuring shape The yuv data of each pixel after becoming anti-spilled regulation.
Before described image is carried out brightness and colourity regulation, may also include the system calculating described graphic transmission equipment 1 The step of deviation;The step of the system deviation calculating described graphic transmission equipment 1 comprises the steps:
Transmission standard yuv data is to described graphic transmission equipment 1;
Obtain YUV from the outfan of described graphic transmission equipment 1 and export data;
Export data according to described standard yuv data and described YUV and calculate the system deviation of described graphic transmission equipment 1, Computational methods are as follows:
Y-component system deviation Dy:
U component system deviation D u:
V component system deviation Dv:
Wherein, Y-component, U component and the V component during Ys, Us, Vs are respectively standard yuv data;Ya, Ua, Va are respectively Y-component, U component and V component in YUV output data.
Based on above-mentioned picture adjustment methods based on YUV coded format, the invention allows for a kind of based on YUV coding lattice The image modification system of formula.As it is shown on figure 3, this system includes that video reception chip 2, image adjustment module and video send chip 4.Wherein, video reception chip 2 is for receiving the image of described graphic transmission equipment 1 output, and image adjustment module is for institute Stating image and carry out brightness and colourity regulation, video sends the chip 4 image after sending brightness and colourity regulation.The present invention In, image is YUV444 coded format, certainly may be used without other kinds of YUV coded format.
Described image adjustment module includes yuv data separation module 301, shaping modes handover module 302, is automatically adjusted mould Block 304, manual adjustment module 303, anti-spilled adjustment module 305, yuv data recombination module 306.
Described yuv data separation module 301 is used for receiving described image from described video reception chip 2, and by described figure As Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViSeparate.
Described shaping modes handover module 302 is for being automatically adjusted module according to its control instruction Selection and call received 304 or manual adjustment modules 303 are to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and color Degree regulation, obtain brightness and colourity regulation after each pixel yuv data in Y-component Y', U component U' and V component V'.
The described module 304 that is automatically adjusted includes regulating parameter calculating module and the first brightness and colourity adjustment module.Regulation Parameter calculating module is for according to Y-component Y in the system deviation of described graphic transmission equipment 1 and the yuv data of each pixeli、U Component UiAnd V component ViCalculate the regulation parameter of the Y-component of each pixel of this image, U component and V component.Described system deviation includes Y-component system deviation Dy, U component system deviation D u and V component system deviation Dv.Computational methods are as follows:
The regulation parameter of Y-component is: Ay=Dy×Yi
The regulation parameter of U component is: Au=Du×Ui
The regulation parameter of V component is: Av=Dv×Vi
First brightness and colourity adjustment module are for according to the Y-component of each pixel, U component and the tune of V component calculated Y-component Y in the yuv data of JIESHEN number pixel each to this imagei, U component UiAnd V component ViCarry out brightness and colourity regulation, Y-component Y' in the yuv data of each pixel, U component U' and V component V' after regulating to brightness and colourity.Control method is as follows:
Y'=Yi+Ay
U'=Ui+Au
V'=Vi+Av
Described manual adjustment module 303 includes regulating parameter receiver module and the second brightness and colourity adjustment module.Regulation Parameter receiver module, for receiving the regulation parameter of the Y-component, U component and the V component that are manually entered.Wherein, the Y being manually entered The regulation parameter of component is By
The regulation parameter of the U component being manually entered is Bu
The regulation parameter of the V component being manually entered is Bv
Second brightness and colourity adjustment module are for the regulation parameter according to Y-component, U component and the V component being manually entered To Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain brightness and colourity Y-component Y' in the yuv data of each pixel, U component U' and V component V' after regulation.Control method is as follows:
Y'=Yi+By
U'=Ui+Bu
V'=Vi+Bv.Based on experience value, it is B when the regulation parameter of the described Y-component being manually enteredy=-15, described manually The regulation parameter of the U component of input is Bu=3, described in the regulation parameter of V component that is manually entered be BvWhen=0, it is possible to obtain Preferably effect.
According to the above-mentioned regulation formula being automatically adjusted module 304 and manual adjustment module 303, each pixel after regulation The value of each component in yuv data may overflow (i.e. beyond 255 or less than 0).Described anti-spilled adjustment module 305 can be to regulation Y-component Y', U component U' and V component V' in the yuv data of rear each pixel carry out anti-spilled regulation, after obtaining anti-spilled regulation Y-component Y in the yuv data of each pixelf, U component UfAnd V component Vf.Control method is as follows:
Y f = 255 , Y &prime; > 255 Y &prime; , 0 &le; Y &prime; &le; 255 0 , Y &prime; < 0 ;
U f = 255 , U &prime; > 255 U &prime; , 0 &le; U &prime; &le; 255 0 , U &prime; < 0 ;
V f = 255 , V &prime; > 255 V &prime; , 0 &le; V &prime; &le; 255 0 , V &prime; < 0 ;
Described yuv data recombination module 306 is for by Y-component Y in the yuv data of each pixel after anti-spilled regulationf、U Component UfAnd V component VfThe yuv data of each pixel after the restructuring anti-spilled regulation of formation.
It is automatically adjusted module 304 and may also include system deviation computing module.Described system deviation computing module is for right Described image calculates the system deviation of described graphic transmission equipment 1 before carrying out brightness and colourity regulation.System deviation computing module Including standard yuv data sending module, yuv data output acquisition module and system deviation calculating sub module.Standard yuv data is sent out Module is sent to be used for from described figure to described graphic transmission equipment 1, yuv data output acquisition module for sending standard yuv data Exporting data as the outfan of transmission equipment 1 obtains YUV, system deviation calculating sub module is for according to described standard yuv data And described YUV output data calculate the system deviation of described graphic transmission equipment 1.System deviation computational methods are as follows:
Y-component system deviation Dy:
U component system deviation D u:
V component system deviation Dv:
Wherein, Ys, Us, Vs are respectively the Y-component in standard yuv data, U component and V component, and Ya, Ua, Va are respectively Y-component, U component and V component in YUV output data.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Any amendment, equivalent and the improvement etc. made within god and principle, should be included within the scope of the present invention.

Claims (8)

1. a picture adjustment methods based on YUV coded format, for regulating the figure of the graphic transmission equipment output of its front end The brightness of picture and colourity, comprise the steps:
Step 1: receive the image of described graphic transmission equipment output;
Step 2: described image is carried out brightness and colourity regulation;
Step 3: send the image after brightness and colourity regulation;It is characterized in that, the step of described step 2 includes:
Step A: by Y-component Y in the yuv data of each for described image pixeli, U component UiAnd V component ViSeparate;
Step B: select the Y being automatically adjusted in pattern or the manual adjustment mode yuv data to each pixel to divide according to control instruction Amount Yi, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain brightness and colourity regulation after each pixel yuv data in Y-component Y', U component U' and V component V';
The pattern that is automatically adjusted is to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and colourity is adjusted The step of joint includes:
Step B1: according to Y-component Y in the system deviation of described graphic transmission equipment and the yuv data of each pixeli, U component Ui And V component ViCalculate the regulation parameter of the Y-component of each pixel of this image, U component and V component;Described system deviation includes Y-component System deviation Dy, U component system deviation D u and V component system deviation Dv;Computational methods are as follows:
The regulation parameter of Y-component is: Ay=Dy×Yi
The regulation parameter of U component is: Au=Du×Ui
The regulation parameter of V component is: Av=Dv×Vi
Step B2: according to the regulation parameter of the Y-component of each pixel calculated, U component and V component pixel each to this image Y-component Y in yuv datai, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain each picture after brightness and colourity regulation Y-component Y' in the yuv data of element, U component U' and V component V';Control method is as follows:
Y'=Yi+Ay
U'=Ui+Au
V'=Vi+Av
Manual adjustment mode is to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and colourity is adjusted The step of joint includes:
Step B3: receive the regulation parameter of the Y-component, U component and the V component that are manually entered;
The regulation parameter of the Y-component being manually entered is By
The regulation parameter of the U component being manually entered is Bu
The regulation parameter of the V component being manually entered is Bv
Step B4: divide according to the Y in yuv data to each pixel of the regulation parameter of the Y-component being manually entered, U component and V component Amount Yi, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain brightness and colourity regulation after each pixel yuv data in Y-component Y', U component U' and V component V';Control method is as follows:
Y'=Yi+By
U'=Ui+Bu
V'=Vi+Bv
Step C: Y-component Y' in the yuv data of each pixel after regulation, U component U' and V component V' are carried out anti-spilled regulation, Y-component Y in the yuv data of each pixel after obtaining anti-spilled regulationf, U component UfAnd V component Vf;Control method is as follows:
Y f = 255 , Y &prime; > 255 Y &prime; , 0 &le; Y &prime; &le; 255 0 , Y &prime; < 0 ;
U f = 255 , U &prime; > 255 U &prime; , 0 &le; U &prime; &le; 255 0 , U &prime; < 0 ;
V f = 255 , V &prime; > 255 V &prime; , 0 &le; V &prime; &le; 255 0 , V &prime; < 0 ;
Step D: by Y-component Y in the yuv data of each pixel after anti-spilled regulationf, U component UfAnd V component VfRestructuring is formed anti- Overflow the yuv data of each pixel after regulating.
2. picture adjustment methods based on YUV coded format as claimed in claim 1, it is characterised in that to described image Before carrying out brightness and colourity regulation, also include the step calculating the system deviation of described graphic transmission equipment;Calculate described image The step of the system deviation of transmission equipment comprises the steps:
Transmission standard yuv data is to described graphic transmission equipment;
Obtain YUV from the outfan of described graphic transmission equipment and export data;
Export data according to described standard yuv data and described YUV and calculate the system deviation of described graphic transmission equipment, calculating side Method is as follows:
Y-component system deviation Dy:
U component system deviation D u:
V component system deviation Dv:
Wherein, Y-component, U component and the V component during Ys, Us, Vs are respectively standard yuv data;It is defeated that Ya, Ua, Va are respectively YUV Go out the Y-component in data, U component and V component.
3. picture adjustment methods based on YUV coded format as claimed in claim 1, it is characterised in that:
The regulation parameter of the described Y-component being manually entered is By=-15;
The regulation parameter of the described U component being manually entered is Bu=3;
The regulation parameter of the described V component being manually entered is Bv=0.
4. picture adjustment methods based on YUV coded format as claimed in claim 1, it is characterised in that described image is YUV444 coded format.
5. an image modification system based on YUV coded format, for regulating the figure of the graphic transmission equipment output of its front end The brightness of picture and colourity, including:
Video reception chip, for receiving the image of described graphic transmission equipment output;
Image adjustment module, for carrying out brightness and colourity regulation to described image;
Video sends chip, the image after sending brightness and colourity regulation;It is characterized in that, described image adjustment module bag Include: yuv data separation module, shaping modes handover module, be automatically adjusted module, manual adjustment module, anti-spilled adjustment module, Yuv data recombination module;
Described yuv data separation module is used for receiving described image from described video reception chip, and by each for described image pixel Yuv data in Y-component Yi, U component UiAnd V component ViSeparate;
Described shaping modes handover module is for being automatically adjusted module or manual according to its control instruction Selection and call received Adjustment module is to Y-component Y in the yuv data of each pixeli, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain bright Y-component Y' in the yuv data of each pixel, U component U' and V component V' after degree and colourity regulation;
The described module that is automatically adjusted includes:
Regulation parameter calculating module, for according to the Y in the system deviation of described graphic transmission equipment and the yuv data of each pixel Component Yi, U component UiAnd V component ViCalculate the regulation parameter of the Y-component of each pixel of this image, U component and V component;Described system Deviation includes Y-component system deviation Dy, U component system deviation D u and V component system deviation Dv;Computational methods are as follows:
The regulation parameter of Y-component is: Ay=Dy×Yi
The regulation parameter of U component is: Au=Du×Ui
The regulation parameter of V component is: Av=Dv×Vi
First brightness and colourity adjustment module, for the regulation ginseng according to the Y-component of each pixel, U component and the V component calculated Y-component Y in the yuv data of several pixels each to this imagei, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain bright Y-component Y' in the yuv data of each pixel, U component U' and V component V' after degree and colourity regulation;Control method is as follows:
Y'=Yi+Ay
U'=Ui+Au
V'=Vi+Av
Described manual adjustment module includes:
Regulation parameter receiver module, for receiving the regulation parameter of the Y-component, U component and the V component that are manually entered;
The regulation parameter of the Y-component being manually entered is By
The regulation parameter of the U component being manually entered is Bu
The regulation parameter of the V component being manually entered is Bv
Second brightness and colourity adjustment module, be used for the regulation parameter according to Y-component, U component and the V component being manually entered to respectively Y-component Y in the yuv data of pixeli, U component UiAnd V component ViCarry out brightness and colourity regulation, obtain brightness and colourity regulation Y-component Y' in the yuv data of rear each pixel, U component U' and V component V';Control method is as follows:
Y'=Yi+By
U'=Ui+Bu
V'=Vi+Bv
Described anti-spilled adjustment module is for Y-component Y' in the yuv data of each pixel after regulation, U component U' and V component V' Carry out anti-spilled regulation, Y-component Y in the yuv data of each pixel after obtaining anti-spilled regulationf, U component UfAnd V component Vf;Adjust Joint method is as follows:
Y f = 255 , Y &prime; > 255 Y &prime; , 0 &le; Y &prime; &le; 255 0 , Y &prime; < 0 ;
U f = 255 , U &prime; > 255 U &prime; , 0 &le; U &prime; &le; 255 0 , U &prime; < 0 ;
V f = 255 , V &prime; > 255 V &prime; , 0 &le; V &prime; &le; 255 0 , V &prime; < 0 ;
Described yuv data recombination module is for by Y-component Y in the yuv data of each pixel after anti-spilled regulationf, U component UfAnd V Component VfThe yuv data of each pixel after the restructuring anti-spilled regulation of formation.
6. image modification system based on YUV coded format as claimed in claim 5, it is characterised in that described in be automatically adjusted Module also includes system deviation computing module;
Described system deviation computing module is for calculating described image transmitting before described image carries out brightness and colourity regulation The system deviation of equipment, comprising:
Standard yuv data sending module, is used for sending standard yuv data to described graphic transmission equipment;
Yuv data output acquisition module, exports data for obtaining YUV from the outfan of described graphic transmission equipment;
System deviation calculating sub module, calculates described image biography for exporting data according to described standard yuv data and described YUV The system deviation of transfer device, computational methods are as follows:
Y-component system deviation Dy:
U component system deviation D u:
V component system deviation Dv:
Wherein, Y-component, U component and the V component during Ys, Us, Vs are respectively standard yuv data;It is defeated that Ya, Ua, Va are respectively YUV Go out the Y-component in data, U component and V component.
7. image modification system based on YUV coded format as claimed in claim 5, it is characterised in that:
The regulation parameter of the described Y-component being manually entered is By=-15;
The regulation parameter of the described U component being manually entered is Bu=3;
The regulation parameter of the described V component being manually entered is Bv=0.
8. image modification system based on YUV coded format as claimed in claim 5, it is characterised in that described image is YUV444 coded format.
CN201510264479.4A 2015-05-22 2015-05-22 YUV (Luma and Chroma) coded format-based image adjusting method and system Active CN104883552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510264479.4A CN104883552B (en) 2015-05-22 2015-05-22 YUV (Luma and Chroma) coded format-based image adjusting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510264479.4A CN104883552B (en) 2015-05-22 2015-05-22 YUV (Luma and Chroma) coded format-based image adjusting method and system

Publications (2)

Publication Number Publication Date
CN104883552A CN104883552A (en) 2015-09-02
CN104883552B true CN104883552B (en) 2017-01-11

Family

ID=53950873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510264479.4A Active CN104883552B (en) 2015-05-22 2015-05-22 YUV (Luma and Chroma) coded format-based image adjusting method and system

Country Status (1)

Country Link
CN (1) CN104883552B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105115801B (en) * 2015-09-11 2019-01-22 贵州省分析测试研究院 A kind of Analysis of Metallic Materials front processor
CN115278190A (en) * 2021-04-30 2022-11-01 卡莱特云科技股份有限公司 Calibration method, calibration equipment and calibration system for video data display colors

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4967454B2 (en) * 2006-05-23 2012-07-04 ソニー株式会社 Image correction circuit, image correction method, and image display apparatus
EP2126682A1 (en) * 2007-03-26 2009-12-02 Record4Free.TV AG Video data transmission via usb interface
CN101355634B (en) * 2008-08-26 2013-06-05 北京中星微电子有限公司 Method and system for regulating image chromaticity
CN101621702B (en) * 2009-07-30 2011-08-24 北京海尔集成电路设计有限公司 Method and device for automatically adjusting chroma and saturation
CN101873503B (en) * 2009-12-09 2013-02-13 杭州海康威视数字技术股份有限公司 Method and device for adjusting image property
CN102780889B (en) * 2011-05-13 2015-04-01 中兴通讯股份有限公司 Video image processing method, device and equipment

Also Published As

Publication number Publication date
CN104883552A (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN102209179B (en) Image-color-gamut-based adaptive color gamut matching method
CN105632398B (en) The adaptive color conditioning method and system of a kind of LED display device
CN107154059A (en) A kind of high dynamic range video processing method
US7443453B2 (en) Dynamic image saturation enhancement apparatus
CN101478687B (en) Correcting method for pseudo color pixel in digital image
TWI486053B (en) Method and circuit for transmitting 3d image
US8064693B2 (en) Methods of and apparatus for adjusting colour saturation in an input image
CN105898252A (en) Television color adjustment method and device
CN106506900A (en) For black and white conversion image processing apparatus and possess its image processing system
CN104883552B (en) YUV (Luma and Chroma) coded format-based image adjusting method and system
JP2000224607A (en) Image processor
US7405771B2 (en) Method and device for independent color management
US4236172A (en) Stereoscopic color television
US6873730B2 (en) Color conversion method for preferred color tones
CN104811587A (en) Image brightness chrominance adjustment method, device and system
CN106981277B (en) The method of adjustment of tone for display, apparatus and system
JP2002152536A (en) Apparatus and method for processing image
US20070076014A1 (en) Universal color decoder an method for decoding input signal for a multiple primary color display system
CN101316370B (en) Image color regulation method and device
Gofaizen et al. Adaptation to observation conditions in television systems by means of signal correction
CN102800061A (en) High-illuminance digital image fast adaptive optimization method
US8553154B2 (en) Method and/or apparatus for implementing a color management module
CN109348202A (en) A kind of image saturation method of adjustment and device
CN105654520A (en) Image processing method and electronic equipment
CN105340269A (en) Method for correcting color using rgb data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200515

Address after: 308 / 310, 3 / F, building 2, Zhuguang Innovation Technology Park, Zhuguang community, Taoyuan Street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen carrier Intelligent Technology Co., Ltd

Address before: 518000, Guangdong, Shenzhen province Nanshan District Taoyuan Street pearl innovation science and Technology Park 1, 202

Patentee before: SHENZHEN ZAIDE OPTOELECTRICS TECHNOLOGY DEVELOPMENT Co.,Ltd.