CN107547885A - The conversion method and device of a kind of linear color space - Google Patents

The conversion method and device of a kind of linear color space Download PDF

Info

Publication number
CN107547885A
CN107547885A CN201610471609.6A CN201610471609A CN107547885A CN 107547885 A CN107547885 A CN 107547885A CN 201610471609 A CN201610471609 A CN 201610471609A CN 107547885 A CN107547885 A CN 107547885A
Authority
CN
China
Prior art keywords
color space
linear color
signal
conversion
linear
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.)
Pending
Application number
CN201610471609.6A
Other languages
Chinese (zh)
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.)
Shanghai Advanced Research Institute of CAS
Original Assignee
Shanghai Advanced Research Institute of CAS
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 Shanghai Advanced Research Institute of CAS filed Critical Shanghai Advanced Research Institute of CAS
Priority to CN201610471609.6A priority Critical patent/CN107547885A/en
Publication of CN107547885A publication Critical patent/CN107547885A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The present invention provides a kind of conversion method and device of linear color space, and methods described includes determining conversion accuracy;According to the conversion accuracy, linear color space conversion coefficient is calculated;According to the linear color space conversion coefficient, it is determined that the public function of the linear color space related to RGB rgb signal;According to the public function of the linear color space, the linear color space conversion coefficient, rgb signal is converted to the signal of linear color space.The conversion equipment of the linear color space of the present invention can be converted to the image video signal of rgb format the image video signal of linear color space form, image/video process chip is allowd to improve the treatment effeciency of image video signal to the image video signal of linear color space form.

Description

The conversion method and device of a kind of linear color space
Technical field
The present invention relates to a kind of technical field of image processing, a kind of conversion method more particularly to linear color space and Device.
Background technology
It is a kind of image and video signal format being widely used to simulate three colors (RGB) signal, present image/video Process chip is all handled data signal, so carrying out before processing to analog rgb vision signal, need to first pass through mould Analog rgb signal is converted into digital RGB signal by number conversion chip equipment, and digital rgb is carried out by image/video process chip Further processing.But digital RGB signal is not particularly suited for image video signal processing, therefore analog rgb is converted into number The treatment effeciency that word RGB carries out corresponding image video signal is not high.
The content of the invention
It is existing for solving it is an object of the invention to provide a kind of and device in view of the above the shortcomings that prior art There is the problem for the treatment of effeciency of image video signal in technology is low.
In order to achieve the above objects and other related objects, the present invention provides a kind of conversion method of linear color space, bag Include following steps:Determine conversion accuracy;According to the conversion accuracy, linear color space conversion coefficient is calculated;According to described Linear color space conversion coefficient, it is determined that the public function of the linear color space related to RGB rgb signal;According to described The public function of linear color space, the linear color space conversion coefficient, linear color space is converted to by rgb signal Signal.
In one embodiment of the invention, the public function according to the linear color space, the linear color Space conversion coefficient, rgb signal is converted to the signal of linear color space to be included:According to the public of the linear color space Function, the linear color space conversion coefficient, using adder figure RAG algorithms are simplified, rgb signal is converted into linear color The signal in space.
In one embodiment of the invention, the public function according to the linear color space, the linear color Space conversion coefficient, rgb signal is converted to the signal of linear color space to be included:According to the public of the linear color space Function, the linear color space conversion coefficient, rgb signal is converted to the signal to be used of linear color space;According to institute The signal to be used of linear color space is stated, the signal of linear color space is determined by shifting processing.
In one embodiment of the invention, in the signal to be used according to the linear color space, pass through displacement Before processing determines the signal of linear color space, in addition to:Obtain compensation space conversion coefficient;Turned according to the compensation space Coefficient is changed, the rgb signal is converted to the thermal compensation signal of linear color space;It is described to be treated according to the linear color space Using signal, the signal for determining linear color space by shifting processing includes:According to the to be used of the linear color space The thermal compensation signal of signal and the linear color space, the signal of linear color space is determined by shifting processing.
In one embodiment of the invention, the signal of linear color space includes:Brightness blue colourity red color YCBCR The signal of color space;Wherein, the Y represents luminance component, and the CB represents chroma blue component, and the CR represents red color Spend component.
It is described according to the conversion accuracy in one embodiment of the invention, calculate linear color space conversion coefficient Including:According to the conversion accuracy, conversion formula is utilizedAt displacement Reason, calculate the conversion coefficient of linear color space.
Further, the present invention provides a kind of conversion equipment of linear color space, including:Determining unit, for determining Conversion accuracy;Computing unit, for the conversion accuracy determined according to the determining unit, calculate linear color space and turn Change coefficient;The determining unit, the linear color space conversion coefficient calculated according to the computing unit is additionally operable to, really The public function of the fixed linear color space related to RGB rgb signal;Processing unit, for true according to the determining unit The public function of the fixed linear color space, the linear color space conversion coefficient that the computing unit calculates, Rgb signal is converted to the signal of linear color space.
In one embodiment of the invention, the processing unit, specifically for according to the public of the linear color space Function, the linear color space conversion coefficient, using adder figure RAG algorithms are simplified, rgb signal is converted into linear color The signal in space.
In one embodiment of the invention, the processing unit, specifically for according to the public of the linear color space Function, the linear color space conversion coefficient, rgb signal is converted to the signal to be used of linear color space;According to institute The signal to be used of linear color space is stated, the signal of linear color space is determined by shifting processing.
In one embodiment of the invention, the conversion equipment of the linear color space also includes:Acquiring unit, for obtaining Take compensation space conversion coefficient;The processing unit, the compensation space for being additionally operable to be obtained according to the acquiring unit are changed Coefficient, the rgb signal is converted to the thermal compensation signal of linear color space;The processing unit is empty according to the linear color Between signal to be used, the signal for determining linear color space by shifting processing is specially:The processing unit, is specifically used for According to the thermal compensation signal of the signal to be used of the linear color space and the linear color space, determined by shifting processing The signal of linear color space.
In one embodiment of the invention, the signal of linear color space includes:Brightness blue colourity red color YCBCR The signal of color space;Wherein, the Y represents luminance component, and the CB represents chroma blue component, and the CR represents red color Spend component.
In one embodiment of the invention, the computing unit, specifically for according to the conversion accuracy, utilizing conversion public affairs FormulaBy shifting processing, the conversion coefficient of linear color space is calculated.
As described above, the conversion method and device of a kind of linear color space of the present invention, have the advantages that:It is logical Determination conversion accuracy is crossed, according to this conversion accuracy, determines linear color space conversion coefficient, and turn according to this linear color space Coefficient is changed, it is determined that the public function of the linear color space related to RGB parameters;According to the public function of linear color space, Linear space converting system, and RGB parameters, calculate the parameter of linear color space.So, the converting means of linear color space The image video signal of rgb format can be converted to the image video signal of linear color space form by putting so that image regards Frequency process chip to the image video signal of linear color space form, can improve the treatment effeciency of image video signal.
Brief description of the drawings
Fig. 1 is shown as a kind of method signal of the conversion method of linear color space provided by the invention in an embodiment Figure.
Fig. 2 is shown as method of the conversion method of another linear color space provided by the invention in an embodiment and shown It is intended to.
Fig. 3 is shown as a kind of structural representation of the conversion equipment of linear color space provided by the invention in an embodiment Figure.
Fig. 4 is shown as structure of the conversion equipment of another linear color space provided by the invention in an embodiment and shown It is intended to.
Component label instructions
301 determining units
302 computing units
303 processing units
304 acquiring units
S101~S104 steps
S201~S207 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the case where not conflicting, following examples and implementation Feature in example can be mutually combined.
It refer to Fig. 1~Fig. 4.It should be noted that the diagram provided in following examples only illustrates in a schematic way The basic conception of the present invention, the component relevant with the present invention is only shown in schema then rather than according to package count during actual implement Mesh, shape and size are drawn, and kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its Assembly layout kenel may also be increasingly complex.
Conventionally, as RGB (Red, Green, Blue, red, green, blue) signal is analog signal, and image regards The signal of frequency process chip processing is data signal, it is therefore desirable to rgb signal is converted into digital RGB signal, and digital rgb is believed Number it is not particularly suited for image video signal processing, and linear color space signal, such as YCBCR (Luminance, Blue- Difference chroma, Red-difference chroma, brightness, chroma blue, red color) signal for numeral believe Number, and handled suitable for image video signal, therefore in order to improve the processing of the image video signal of image/video process chip Efficiency, digital RGB signal can be converted to linear color space signal.
Referring to Fig. 1, the present invention provides a kind of conversion method of linear color space, comprise the following steps:
Step S101:Determine conversion accuracy.
Specifically, when progress rgb signal is changed to the signal of linear color space, the precision of space conversion coefficient is posted The limitation of the number of bits of representation space conversion coefficient fractional part in storage, accurate floating number is realized to hardware, into This is excessive, thus in order to reduce the deviation in transfer process, it is general using space conversion coefficient is moved to left into n positions, it is converted into Integer, carrying out other processing.Generally, as n becomes big, the conversion of the signal of rgb signal to linear color space is just More accurate, therefore, n is conversion accuracy.User can determine n value according to the actual requirements, as determine conversion accuracy, and can So that conversion accuracy is sent to the conversion equipment of linear color space.
Further, the signal of linear color space includes:The signal of YCBCR color spaces.Wherein, Y represents brightness point Amount, CB represent chroma blue component, and CR represents red chrominance component.As, rgb signal need to be converted to YCBCR color spaces Signal.
It should be noted that in present aspect embodiment, the signal of linear color space can also be other color spaces Signal, for example, the signal of YUV color spaces, can now use the signal that rgb signal is converted to YUV color spaces, or The signal of YIQ color spaces, it is, of course, also possible to be the signal of other color spaces, the invention is not limited in this regard.
Exemplarily, if the signal of linear space is the signal of YCBCR color spaces, the conversion equipment of linear color space Rgb signal need to be converted to the signal of YCBCR color spaces.It is determined that during conversion accuracy, user wishes the more accurate of conversion, Digit will be moved to left and be arranged to 12, as n=12.Now, the conversion equipment of linear color space can determine that conversion accuracy is 12。
Step S102:According to conversion accuracy, linear color space conversion coefficient is calculated.
Specifically, the conversion equipment of linear color space can utilize conversion accuracy by RGB after conversion accuracy is determined Conversion coefficient moves to left n positions and calculates linear color space conversion coefficient between signal and linear color space, wherein, n is conversion Precision.
Further, when the signal of linear color space is the signal of YCBCR color spaces, according to conversion accuracy, meter Calculating linear color space conversion coefficient includes:
According to conversion accuracy, conversion formula is utilizedBy shifting processing, Calculate the conversion coefficient of linear color space.
As, when the signal of linear color space is the signal of YCBCR color spaces, rgb signal is converted to YCBCR colors The conversion formula of the signal of color space isNow, by rgb signal and YCBCR Conversion coefficient between the signal of color spaceThis conversion coefficient is moved to left into n positions, calculated Linear color space conversion coefficient.
As above described in example, after the conversion equipment of linear color space determines that conversion accuracy is 12, Ke Yili With this conversion accuracy, according to the conversion formula between the signal of rgb signal and YCBCR color spacesGet conversion coefficient between the signal of rgb signal and YCBCR color spacesThis conversion coefficient is moved to left into 12 is, as by conversion coefficientIt is multiplied by 212, round and calculate linear color space conversion coefficient and beNow, the signal of YCBCR color spaces and the transformational relation of rgb signal are:
It should be noted that in this step, after conversion coefficient is moved to left into conversion accuracy position, it need to round to obtain color space Conversion coefficient.
Step S103:According to linear color space conversion coefficient, it is determined that the public affairs of the linear color space related to rgb signal Function altogether.
Specifically, the conversion equipment of linear color space, can be by line after linear color space conversion coefficient is calculated Property color space conversion coefficient is encoded, such as binary coding, or (Canonic Signed Digit, canonical have CSD Symbol coefficient) coding, and then according to the data after coding, determine the public letter of the linear color space related to rgb signal Number.
As above described in example, linear color space conversion coefficient is being calculated in the conversion equipment of linear color spaceAfterwards, this linear color space conversion coefficient is subjected to CSD codings, the data such as table 1 after coding, Table 2, shown in table 3.
Table 1
1224 1 0 0 1 1 0 0 1 0 0 0
2404 1 0 0 1 0 1 1 0 0 1 0 0
466 1 0 0 -1 0 1 0 0 1 0
Table 2
-692 -1 0 -1 0 -1 -1 0 -1 0 0
-1355 -1 0 -1 0 -1 0 0 -1 0 -1 -1
2048 1 0 0 0 0 0 0 0 0 0 0 0
Table 3
2048 1 0 0 0 0 0 0 0 0 0 0 0
-1716 -1 0 0 1 0 1 0 1 0 -1 0 0
-331 -1 0 -1 0 0 -1 0 -1 -1
By table 1, table 2, can basis after each linear color space conversion coefficient is converted into CSD codings in table 3 CSD codings determine that public function is:C1=R+G < < 1, C2=R < < 1+G, C3=G-B.Public function is rgb signal Function.
Step S104:According to the public function of linear color space, linear color space conversion coefficient, rgb signal is turned It is changed to the signal of linear color space.
Specifically, after the conversion equipment of linear color space determines the public function of linear color space, by linear color Color space conversion coefficient is represented by public function and rgb signal, and then rgb signal is converted to the letter of linear color space Number.
Further, according to the public function of linear color space, linear color space conversion coefficient, rgb signal is turned Being changed to the signal of linear color space includes:According to the public function of linear color space, linear color space conversion coefficient, profit With RAG (Reduced Adder Graph, simplify adder figure) algorithm, rgb signal is converted to the letter of linear color space Number.
As, the conversion equipment of linear color space, can be by RGB after the public function of linear color space is determined The signal for the linear color space that signal is converted into is represented by the public function and rgb signal of linear color space.Also, Represented in the signal for the linear color space for being converted into rgb signal by the public function and rgb signal of linear color space After going out, to the public function and rgb signal of the linear color space of the signal of each linear color space, for each linear color The public function of the linear color space of the signal of color space can utilize RAG algorithms, find out optimal intermediate quantity, and then utilize Optimal intermediate quantity further shows that the public function of the linear color space of the signal of each linear color space, such one Come, rgb signal can be converted to the signal of linear color space, and cause the linear color space that rgb signal represents Required adder negligible amounts, cost are low during signal.
Further, according to the public function of linear color space, linear color space conversion coefficient, rgb signal is turned Being changed to the signal of linear color space includes:According to the public function of linear color space, linear color space conversion coefficient will Rgb signal is converted to the signal to be used of linear color space;According to the signal to be used of linear color space, at displacement Reason determines the signal of linear color space.
That is, because in step s 102, the conversion equipment of linear color space is calculating linear color space turn When changing coefficient, each conversion coefficient has been moved to left into conversion accuracy position, now, rgb signal has been converted into linear color space During signal, in order to the signal of linear color space accuracy, it is necessary to after conversion signal carry out shifting processing, as move to right Processing, obtains the signal of linear color space.Now, the conversion equipment of linear color space is according to the public of linear color space Function, linear color space conversion coefficient is represented by the public function and rgb signal of linear color space, realized RGB Signal is converted to the signal to be used of linear color space, does not carry out the signal of shifting processing as, is calculating linear color After the signal to be used in space, after the signal to be used of linear color space being carried out into shifting processing, that is to say, that can be with The signal to be used of linear color space is moved to right into n positions, and the signal using the signal after moving to right as linear color space, its In, n is conversion accuracy.
As above described in example, the conversion equipment of linear color space is determining the public function C1 of linear color space After=R+G < < 1, C2=R < < 1+G, C3=G-B, because rgb signal is converted to the letter of YCBCR color spaces Number the formula that is converted to beAs linear color space conversion coefficientNow, the conversion equipment of linear color space determines Y '=1152C1+36C2+63C3+ 530B, CB '=2048B-676C1-16R-3G, CR '=2048R-2036G+32C3-11B.Now, turn of linear color space Changing device, can be by YCBCR in order to reduce the adder quantity used in the signal of the YCBCR color spaces of rgb signal conversion Further changed using RAG algorithms the part represented in the signal of color space by public function.Now, utilize RAG algorithms can find optimal intermediate variable 5C1=C1+C1<<2 and 9C1=C1+C1<<3, so, in Y ' signals 1152C1=(9C1)<<7, CB ' 676C1=in signal (9C1)<<2+(5C1)<<7, so as to reduce rgb signal conversion YCBCR color spaces signal in the adder quantity that uses.
As, the specific conversion formula of signal for the YCBCR color spaces that the conversion equipment of linear color space is determined is such as Shown in table 4 below.
Table 4
Because in step s 102, the conversion equipment of linear color space is to carry out linear color space conversion coefficient 12 acquisitions are moved to left, when rgb signal to be converted to the signal of final YCBCR color spaces, the Y ' that will need to calculate, CB ', CR ' signal carries out moving to right processing, obtain the signal of YCBCR color spaces to the end.Now, the Y ' calculated, CB ', CR ' Signal is the signal to be used of linear color space, the Y ' that will be calculated, CB ', CR ' signal moves to right 12, obtains final The signal of YCBCR color spaces.
So, the image video signal of rgb format can be converted to linear color by the conversion equipment of linear color space The image video signal of Space format so that image/video process chip can be believed the image/video of linear color space form Number, improve the treatment effeciency of image video signal.Further, adder can be reduced by the above method of the present invention Quantity, it is cost-effective.
As shown in Fig. 2 the invention provides a kind of conversion method of linear color space, the linear color space turns The method of changing comprises the following steps:
Step S201:Determine conversion accuracy.
Specifically, step S101 is referred to.It will not be repeated here.
Step S202:According to conversion accuracy, linear color space conversion coefficient is calculated.
Specifically, step S102 is referred to.It will not be repeated here.
Step S203:According to linear color space conversion coefficient, it is determined that the linear color related to RGB rgb signal is empty Between public function.
Specifically, step S103 is referred to.It will not be repeated here.
Step S204:According to the public function of linear color space, linear color space conversion coefficient, rgb signal is turned It is changed to the signal to be used of linear color space.
Specifically, due to being that conversion coefficient is left when calculating linear color space conversion coefficient in above-mentioned steps S202 After moving conversion accuracy position, it need to round to obtain color space conversion coefficient, therefore, the conversion equipment of linear color space is according to linear The public function of color space, linear color space conversion coefficient, rgb signal is converted to the letter to be used of linear color space Number obtained by the color space conversion coefficient after rounding.How the conversion equipment of linear color space is according to linear color The public function in space, linear color space conversion coefficient, the signal to be used that rgb signal is converted to linear color space can With reference to step S104, will not be repeated here.
Step S205:Obtain compensation space conversion coefficient.
Specifically, due to being that conversion coefficient is left when calculating linear color space conversion coefficient in above-mentioned steps S202 After moving conversion accuracy position, it need to round to obtain color space conversion coefficient, so have lost fractional part, reduce rgb signal and turn Shift to the accuracy of the signal of linear color space.In order to improve rgb signal change it is accurate to the signal of linear color space Property, the conversion equipment of linear color space can obtain the conversion equipment of compensation space conversion coefficient, as linear color space According to conversion accuracy in step S202, it is necessary to which conversion coefficient is moved to left into conversion when calculating linear color space conversion coefficient Precision position, can be using the integer part in the data after moving to left as linear after conversion coefficient now is moved to left into conversion accuracy position Color space conversion coefficient, using the fractional part after moving to left as compensation space conversion coefficient, so, in the present invention, Rgb signal can be rationally converted to the signal of linear color space using the data after moving to left, ensure that the accuracy of conversion.
Exemplarily, it is assumed that the signal of linear color space is the signal of YCBCR color spaces, if conversion accuracy is 12. Now, in above-mentioned steps S202, the conversion formula that rgb signal is converted to the signal of YCBCR color spaces isThe conversion equipment of linear color space can be according to the conversion in this formula meter Coefficient, which is moved to left 12 and calculates linear color space conversion coefficient, isIt is empty to calculate compensation Between conversion coefficient beNow, the conversion equipment of linear color space can be known when n takes During value 12, when rgb signal is converted to the signal of YCBCR color spaces, the fractional part Y " of the signal of YCBCR color spaces, CB ", CR " conversion formula is:
Step S206:According to the compensation space conversion coefficient, the compensation that rgb signal is converted to linear color space is believed Number.
Specifically, the conversion equipment of linear color space, can be according to compensation after compensation space conversion coefficient is obtained Space conversion coefficient, utilize the thermal compensation signal for compensating the method for approximation by rgb signal and being converted to linear color space.
As above described in example, after compensation space conversion coefficient is obtained, the conversion equipment of linear color space can utilize The method for compensating approximation, rgb signal is converted to the thermal compensation signal of linear color space, is:
Y "=0.7R+0.35G+0.944 ≈ 0.5R+0.25R+0.25G+0.125G+B ≈ R>>1+R>>2+G>>2+G>>3+ B;
CB "=- 0.224R-0.776G ≈ -0.25R-0.5G-0.25G ≈-R>>2-G>>1-G>>2;
CR "=- 0.224G-0.776B ≈ -0.25G-0.5G-0.25B ≈-G>>2-B>>1-B>>2.
It should be noted that the present invention to the order between step S203- step S204, with step S205- steps S206 not It is limited.Step S203- step S204 can be first carried out, then perform step S205- steps S206;Step can also be first carried out S205- step S206, then perform step S203- steps S204;Step S203- step S204, and step can also be performed simultaneously S205- steps S206.A kind of situation is only represented in the example shown.
Step S207:According to the thermal compensation signal of the signal and linear color space to be used of linear color space, pass through shifting Position processing determines the signal of linear color space.
Specifically, the device of linear color space is obtaining the signal to be used of linear color space and linear color sky Between thermal compensation signal after, the thermal compensation signal of the signal and linear color space to be used of linear color space can be combined into one Individual signal, and this signal carried out to move to right processing, obtain the signal of final linear color space.Wherein, the digit that moves to right with The digit moved to left in step S202 is identical, as moves to right conversion accuracy position.
As above described in example, the device of linear color space is obtaining signal Y ', the CB ' to be used of linear color space, After the thermal compensation signal Y ", CB ", CR " of CR ' and linear color space, integer part signal and fractional part signal can be combined, i.e., To integrate the signal Y ', CB ', CR to be used of linear color space ' and linear color space thermal compensation signal Y ", CB ", CR ", it is logical Cross the signal Y, CB, CR for the linear color space for shifting to the end.As:Y=(Y '+Y ")>>12;CB=(CB '+CB ")>> 12;CR=(CR '+CR ")>>12.
The invention provides a kind of conversion method of linear color space, including by determining conversion accuracy, according to this turn Change precision, determine linear color space conversion coefficient, and according to this linear color space conversion coefficient, it is determined that with RGB parameter phases The public function of the linear color space of pass;According to the public function of linear color space, linear space converting system, and RGB Parameter, calculate the parameter of linear color space.So, the conversion equipment of linear color space can be by the image of rgb format Vision signal is converted to the image video signal of linear color space form so that image/video process chip can be to linear color The image video signal of color space form, improve the treatment effeciency of image video signal.Further, the upper of the present invention is passed through The method of stating can reduce the quantity of adder, cost-effective.And carrying out turn of the rgb signal to the signal of linear color space When changing, do not give up the fractional part of conversion coefficient, ensure that the conversion accuracy of the present invention.
As shown in figure 3, the invention provides a kind of conversion equipment of linear color space, including:
Determining unit 301, for determining conversion accuracy.
Computing unit 302, for the conversion accuracy determined according to determining unit 301, calculate linear color space conversion Coefficient.
Determining unit 301, the linear color space conversion coefficient calculated according to computing unit 302 is additionally operable to, it is determined that with The public function of the related linear color space of RGB rgb signal.
Processing unit 303, for the public function of the linear color space determined according to determining unit 301, computing unit The 302 linear color space conversion coefficients calculated, rgb signal is converted to the signal of linear color space.
Specifically, processing unit 303, specifically for the public function according to linear color space, linear color space turns Coefficient is changed, using adder figure RAG algorithms are simplified, rgb signal is converted to the signal of linear color space.
Further, processing unit 303, specifically for the public function according to linear color space, linear color space Conversion coefficient, rgb signal is converted to the signal to be used of linear color space;According to the letter to be used of linear color space Number, the signal of linear color space is determined by shifting processing.
Further, as shown in figure 4, the conversion equipment of above-mentioned linear color space also includes:
Acquiring unit 304, for obtaining compensation space conversion coefficient.
Processing unit 303, the compensation space conversion coefficient obtained according to acquiring unit 304 is additionally operable to, rgb signal is changed For the thermal compensation signal of linear color space.
Now, processing unit 303 determines linear color according to the signal to be used of linear color space by shifting processing The signal in space is specially:Processing unit 303, it is empty specifically for the signal to be used and linear color according to linear color space Between thermal compensation signal, the signal of linear color space is determined by shifting processing.
Further, the signal of linear color space includes:The letter of brightness blue colourity red color YCBCR color spaces Number.
Wherein, Y represents luminance component, and CB represents chroma blue component, and CR represents red chrominance component.
Now, when the signal of linear color space is the signal of YCBCR color spaces, computing unit 302, it is specifically used for The conversion accuracy determined according to determining unit 301, utilizes conversion formulaPass through Shifting processing, calculate the conversion coefficient of linear color space.
The invention provides a kind of conversion equipment of linear color space, including:By determining conversion accuracy, according to this turn Change precision, determine linear color space conversion coefficient, and according to this linear color space conversion coefficient, it is determined that with RGB parameter phases The public function of the linear color space of pass;According to the public function of linear color space, linear space converting system, and RGB Parameter, calculate the parameter of linear color space.So, the conversion equipment of linear color space can be by the image of rgb format Vision signal is converted to the image video signal of linear color space form so that image/video process chip can be to linear color The image video signal of color space form, improve the treatment effeciency of image video signal.Further, the upper of the present invention is passed through The method of stating can reduce the quantity of adder, cost-effective.And carrying out turn of the rgb signal to the signal of linear color space When changing, do not give up the fractional part of conversion coefficient, ensure that the conversion accuracy of the present invention.So the present invention effectively overcomes Various shortcoming of the prior art and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as Into all equivalent modifications or change, should by the present invention claim be covered.

Claims (12)

1. a kind of conversion method of linear color space, it is characterised in that comprise the following steps:
Determine conversion accuracy;
According to the conversion accuracy, linear color space conversion coefficient is calculated;
According to the linear color space conversion coefficient, it is determined that the linear color space related to RGB rgb signal is public Function;
According to the public function of the linear color space, the linear color space conversion coefficient, rgb signal is converted into line The signal of property color space.
2. the conversion method of linear color space according to claim 1, it is characterised in that described according to the linear color The public function of color space, the linear color space conversion coefficient, rgb signal is converted to the signal bag of linear color space Include:
According to the public function of the linear color space, the linear color space conversion coefficient, simplified adder figure is utilized RAG algorithms, rgb signal is converted to the signal of linear color space.
3. the conversion method of linear color space according to claim 1 or 2, it is characterised in that described according to the line The public function of property color space, the linear color space conversion coefficient, rgb signal is converted to the letter of linear color space Number include:
According to the public function of the linear color space, the linear color space conversion coefficient, rgb signal is converted into line The signal to be used of property color space;
According to the signal to be used of the linear color space, the signal of linear color space is determined by shifting processing.
4. the conversion method of linear color space according to claim 3, it is characterised in that described according to described linear The signal to be used of color space, before the signal that linear color space is determined by shifting processing, in addition to:
Obtain compensation space conversion coefficient;
According to the compensation space conversion coefficient, the rgb signal is converted to the thermal compensation signal of linear color space;
The signal to be used according to the linear color space, the signal bag of linear color space is determined by shifting processing Include:
According to the thermal compensation signal of the signal to be used of the linear color space and the linear color space, pass through shifting processing Determine the signal of linear color space.
5. the conversion method of linear color space according to claim 1, it is characterised in that the signal of linear color space Including:The signal of brightness blue colourity red color YCBCR color spaces;Wherein, the Y represents luminance component, the CB tables Show chroma blue component, the CR represents red chrominance component.
6. the conversion method of linear color space according to claim 5, it is characterised in that described according to the conversion essence Degree, calculating linear color space conversion coefficient includes:
According to the conversion accuracy, conversion formula is utilizedBy shifting processing, Calculate the conversion coefficient of linear color space.
A kind of 7. conversion equipment of linear color space, it is characterised in that including:
Determining unit, for determining conversion accuracy;
Computing unit, for the conversion accuracy determined according to the determining unit, calculate linear color space conversion system Number;
The determining unit, the linear color space conversion coefficient calculated according to the computing unit is additionally operable to, it is determined that The public function of the linear color space related to RGB rgb signal;
Processing unit, it is described to calculate list for the public function of the linear color space determined according to the determining unit The linear color space conversion coefficient that member calculates, rgb signal is converted to the signal of linear color space.
8. the conversion equipment of linear color space according to claim 7, it is characterised in that:
The processing unit, specifically for the public function according to the linear color space, the linear color space conversion Coefficient, using adder figure RAG algorithms are simplified, rgb signal is converted to the signal of linear color space.
9. the conversion equipment of the linear color space according to claim 7 or 8, it is characterised in that:
The processing unit, specifically for the public function according to the linear color space, the linear color space conversion Coefficient, rgb signal is converted to the signal to be used of linear color space;
According to the signal to be used of the linear color space, the signal of linear color space is determined by shifting processing.
10. the conversion equipment of linear color space according to claim 9, it is characterised in that:The linear color space Conversion equipment also include:
Acquiring unit, for obtaining compensation space conversion coefficient;
The processing unit, the compensation space conversion coefficient obtained according to the acquiring unit is additionally operable to, the RGB is believed Number be converted to the thermal compensation signal of linear color space;
The processing unit determines linear color space according to the signal to be used of the linear color space by shifting processing Signal be specially:
The processing unit, specifically for the signal to be used according to the linear color space and the linear color space Thermal compensation signal, the signal of linear color space is determined by shifting processing.
11. the conversion equipment of linear color space according to claim 7, it is characterised in that:
The signal of linear color space includes:The signal of brightness blue colourity red color YCBCR color spaces;Wherein, the Y Luminance component is represented, the CB represents chroma blue component, and the CR represents red chrominance component.
12. the conversion equipment of linear color space according to claim 11, it is characterised in that:
The computing unit, specifically for according to the conversion accuracy, utilizing conversion formula
By shifting processing, the conversion coefficient of linear color space is calculated.
CN201610471609.6A 2016-06-24 2016-06-24 The conversion method and device of a kind of linear color space Pending CN107547885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610471609.6A CN107547885A (en) 2016-06-24 2016-06-24 The conversion method and device of a kind of linear color space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610471609.6A CN107547885A (en) 2016-06-24 2016-06-24 The conversion method and device of a kind of linear color space

Publications (1)

Publication Number Publication Date
CN107547885A true CN107547885A (en) 2018-01-05

Family

ID=60960057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610471609.6A Pending CN107547885A (en) 2016-06-24 2016-06-24 The conversion method and device of a kind of linear color space

Country Status (1)

Country Link
CN (1) CN107547885A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587467A (en) * 2018-12-03 2019-04-05 新视家科技(北京)有限公司 A kind of color space converting circuit
CN112102455A (en) * 2020-08-18 2020-12-18 绍兴聚量数据技术有限公司 Method for converting PRT file of 3D printer into RGB color model

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1249630A (en) * 1998-09-29 2000-04-05 华邦电子股份有限公司 Signal switching device and method in colour space
CN1581280A (en) * 2003-08-03 2005-02-16 瑞昱半导体股份有限公司 Apparatus for color conversion and method thereof
US20060092440A1 (en) * 2004-11-01 2006-05-04 Bagai Farhan A Human visual system based design of color signal transformation in a color imaging system
CN101178643A (en) * 2006-11-09 2008-05-14 普诚科技股份有限公司 Data conversion method and data conversion circuit capable of saving digital operation
CN101819638A (en) * 2010-04-12 2010-09-01 中国科学院计算技术研究所 Establishment method of pornographic detection model and pornographic detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1249630A (en) * 1998-09-29 2000-04-05 华邦电子股份有限公司 Signal switching device and method in colour space
CN1581280A (en) * 2003-08-03 2005-02-16 瑞昱半导体股份有限公司 Apparatus for color conversion and method thereof
US20060092440A1 (en) * 2004-11-01 2006-05-04 Bagai Farhan A Human visual system based design of color signal transformation in a color imaging system
CN101178643A (en) * 2006-11-09 2008-05-14 普诚科技股份有限公司 Data conversion method and data conversion circuit capable of saving digital operation
CN101819638A (en) * 2010-04-12 2010-09-01 中国科学院计算技术研究所 Establishment method of pornographic detection model and pornographic detection method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
沈斌.张多利.何亚军: "《一种低功耗色彩空间转换模块的FPGA实现》", 《计算机工程与应用》 *
程星,吴金,陆生礼,姚建楠: "《色彩空间RGB与YUV转换的硬件设计》", 《电子器件》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587467A (en) * 2018-12-03 2019-04-05 新视家科技(北京)有限公司 A kind of color space converting circuit
CN112102455A (en) * 2020-08-18 2020-12-18 绍兴聚量数据技术有限公司 Method for converting PRT file of 3D printer into RGB color model
CN112102455B (en) * 2020-08-18 2024-02-02 绍兴聚量数据技术有限公司 Method for converting PRT file of 3D printer into RGB color model

Similar Documents

Publication Publication Date Title
US20240153470A1 (en) Gamut mapping using luminance parameters
WO2016206183A1 (en) Gamut mapping method based on source image gamut
CN107918928B (en) Color reduction method
US20140119650A1 (en) Image processing device, image processing method, and image processing program
CN107547885A (en) The conversion method and device of a kind of linear color space
CN108282647A (en) Color correcting method and device, computer readable storage medium, terminal
CN106228581A (en) By GPU, pixel format is converted to by ARGB the method and system of NV12
CN108090924A (en) Image processing method and device, robot
CN109429050B (en) Luminance normalized color space
CN101277369B (en) Image forming apparatus and control method thereof
KR100871816B1 (en) Apparatus, method, and computer readable medium for color correction
CN104077794B (en) Picture staining method and device
CN110728647A (en) Underwater image enhancement method and device, storage medium and terminal
CN108564633B (en) Gray scale image compression method and device and computer equipment
CN106408617B (en) Interactive single image material obtaining system and method based on YUV color space
CN105354843B (en) A kind of image boundary extraction method and system
CN102903091B (en) Method for stitching image in digital image processing apparatus
CN104967840B (en) Video image standard exceeding detection method and device
Kao et al. Color reproduction for digital imaging systems
CN113989137B (en) Method for extracting pigmentation of facial skin image and forming brown region spectrum
JP5103580B2 (en) Image processing apparatus and digital camera
CN104505053A (en) Display signal conversion method and display signal conversion device
CN109509218B (en) The method, apparatus of disparity map is obtained based on FPGA
CN104899833B (en) A kind of image defogging method and device
Li et al. A Novel Adaptable Sonar Image Pseudo-color Enhancement Method Using CIELab Space

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180105

RJ01 Rejection of invention patent application after publication