[go: up one dir, main page]

CN109547761A - A kind of form and aspect conversion circuit and color space converting circuit - Google Patents

A kind of form and aspect conversion circuit and color space converting circuit Download PDF

Info

Publication number
CN109547761A
CN109547761A CN201811353073.3A CN201811353073A CN109547761A CN 109547761 A CN109547761 A CN 109547761A CN 201811353073 A CN201811353073 A CN 201811353073A CN 109547761 A CN109547761 A CN 109547761A
Authority
CN
China
Prior art keywords
value
input
circuit
hue value
hue
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
CN201811353073.3A
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.)
Xinshijia Science And Technology (beijing) Co Ltd
Original Assignee
Xinshijia Science And Technology (beijing) 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 Xinshijia Science And Technology (beijing) Co Ltd filed Critical Xinshijia Science And Technology (beijing) Co Ltd
Priority to CN201811353073.3A priority Critical patent/CN109547761A/en
Publication of CN109547761A publication Critical patent/CN109547761A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/44Colour synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)

Abstract

The present embodiments relate to color space conversion art, a kind of form and aspect conversion circuit and color space converting circuit are disclosed.Form and aspect conversion circuit includes being sequentially connected electrically address generating circuit, searching circuit and data synchronization circuit;The address of hue value corresponding first form and aspect range lookup table of the address generating circuit for determining input, wherein the first form and aspect section refers to the value range of hue value for 0 degree of corresponding hue value to the form and aspect section of 90 degree of corresponding hue values;Circuit is searched for searching the first form and aspect range lookup table, obtains the corresponding trigonometric function value in address that address generating circuit determines, wherein trigonometric function value includes sine value and/or cosine value;The trigonometric function value that first data synchronization circuit is determined for the hue value and lookup circuit of synchronization gain input;According to the hue value of input, form and aspect section belonging to the hue value of the trigonometric function value that circuit determines and input is searched, obtains the corresponding trigonometric function value of hue value of input.

Description

A kind of form and aspect conversion circuit and color space converting circuit
Technical field
The present embodiments relate to color space conversion art, in particular to a kind of form and aspect conversion circuit and color space turn Change circuit.
Background technique
Color space is the theoretical basis for carrying out colouring information research, and color is quantified as having by it from the subjective feeling of people The expression of body, to be provided a strong basis to record with apparent color with computer.Piece image can use different colors Space representation, visual effect are identical.But whether the selection of color space effectively has very the color transfer algorithm of image Big influence selects a suitable color space that can guarantee the accuracy of color transfer result.In scan picture system In system, the conversion of digital circuit color space can be used.When from color space LCH (Lightness Chroma Hue) When being transformed into color space LAB (Lightness A B), need using to trigonometric function.
At least there are the following problems in the prior art for inventor's discovery: usually there are two types of sides for digital circuit trigonometric function Method: one is using coordinates rotating algorithm, which can be difficult to triangle be directly realized by with hardware circuit, complicated for a variety of Function decomposition is unified plus-minus, shifting function, is easy to use digital circuit, but usually require many iteration cycles, Need to consume many hardware logic resources;Another method be using look-up tables'implementation, but when input data bit wide is larger, To guarantee that output accuracy is higher, biggish memory space is needed, also needs to consume more hardware resource.
Summary of the invention
Embodiment of the present invention is designed to provide a kind of form and aspect conversion circuit and color space converting circuit, Neng Goutong It crosses simple digital circuit and obtains trigonometric function value corresponding to the hue value of input, reduce memory space, and save hardware money Source.
Embodiments of the present invention provide a kind of form and aspect conversion circuit, comprising: are sequentially connected electrically address generating circuit, look into Look for circuit and the first data synchronization circuit;Address generating circuit, for determining the hue value corresponding first form and aspect section of input The address of look-up table, wherein the first form and aspect section refers to that the value range of hue value is that 0 degree of corresponding hue value is corresponded to 90 degree Hue value form and aspect section;Circuit is searched, for searching the first form and aspect range lookup table, obtains what address generating circuit determined The corresponding trigonometric function value in address, wherein trigonometric function value includes sine value and/or cosine value;First data synchronization circuit is used In the trigonometric function value that the hue value and lookup circuit of synchronization gain input determine;It is true according to the hue value of input, lookup circuit Form and aspect section belonging to the hue value of fixed trigonometric function value and input obtains the corresponding trigonometric function value of hue value of input.
Embodiments of the present invention additionally provide a kind of color space converting circuit, including above-mentioned form and aspect conversion circuit.
Embodiment of the present invention in terms of existing technologies, according to the hue value of input, by searching for the first form and aspect area Between look-up table, obtain address generating circuit determine the corresponding trigonometric function value in address, and according to the hue value of synchronous input, Form and aspect section belonging to the hue value of the trigonometric function value that circuit determines and input is searched, the hue value corresponding three of input is obtained Angle function value.By using the first form and aspect range lookup table in above-mentioned form and aspect conversion circuit, so that need to only store the first form and aspect Range lookup table, so that it may obtain the corresponding practical trigonometric function value of hue value of input, wherein the hue value of input can be fallen in Any form and aspect section, and then realize and use lesser memory space, the precision to guarantee output is higher, avoids unnecessary hard The part wasting of resources.And by color space converting circuit, realizes and turn from a kind of color space to another color space It changes, ensure that the accuracy of color transfer result, and then improving image quality.
In addition, address generating circuit includes: the form and aspect section determining module and address calculation module being sequentially connected electrically;Form and aspect Section determining module determines form and aspect section belonging to the hue value of input for the hue value according to input;Address calculation mould Block obtains the hue value of input for the form and aspect section according to belonging to the hue value of the determining input of form and aspect section determining module The address of corresponding first form and aspect range lookup table.
In addition, address calculation module is used for: if the hue value of input belongs to the first form and aspect section, by the form and aspect of input Value, the address of the corresponding first form and aspect range lookup table of hue value as input;If the hue value of input belongs to the second form and aspect Section then calculates the difference of the hue value of the corresponding hue value of 180 degree and input, by resulting difference hue value as input The address of corresponding first form and aspect range lookup table, wherein the second form and aspect section refers to that the value range of hue value is 90 degree pairs The hue value answered is to the form and aspect section of the corresponding hue value of 180 degree;If the hue value of input belongs to third form and aspect section, calculate The difference of the hue value of input hue value corresponding with 180 degree, by resulting difference hue value as input corresponding first The address of form and aspect range lookup table, wherein third form and aspect section refers to that the value range of hue value is the corresponding hue value of 180 degree To the form and aspect section of 270 degree of corresponding hue values;If the hue value of input belongs to the 4th form and aspect section, 360 degree of correspondences are calculated Hue value and input hue value difference, resulting difference hue value as input corresponding first form and aspect section is looked into Look for the address of table, wherein the 4th form and aspect section refers to that the value range of hue value is 270 degree of corresponding hue values to 360 degree pairs The form and aspect section for the hue value answered.
In which, only pass through the first form and aspect range lookup table, so that it may determine input hue value it is corresponding this first The address of form and aspect range lookup table, has saved memory space, and then has saved the hardware resource of actual use.
In addition, searching circuit includes: sine lookup module and/or cosine lookup module;Sine lookup module, for obtaining The corresponding sine value in address that address generating circuit determines, and export to the first data synchronization circuit;Cosine lookup module, is used for The corresponding cosine value in address that address generating circuit determines is obtained, and is exported to the first data synchronization circuit.
In which, only pass through sine lookup module and cosine lookup module, so that it may obtain address generating circuit and determine Address it is corresponding just and/or cosine value, do not need successive ignition, reduce the complexity of circuit, saved hardware resource.
In addition, the first data synchronization circuit is used for: if it is determined that the hue value of input belongs to the first form and aspect section, and/or, the Two form and aspect sections will then search the sine value that circuit determines, the corresponding sine value of hue value as input;If it is determined that input Hue value belongs to third form and aspect section, and/or, the 4th form and aspect section then calculates 1 and subtracts obtained by the sine value that lookup circuit determines Difference, by the corresponding sine value of resulting difference hue value as input.
In addition, the first data synchronization circuit is used for: if it is determined that the hue value of input belongs to the first form and aspect section, or, the 4th Form and aspect section will then search the cosine value that circuit determines, the corresponding cosine value of hue value as input;If it is determined that the color of input Mutually value belongs to the second form and aspect section, and/or, third form and aspect section calculates 1 and subtracts the resulting difference of cosine value that lookup circuit determines Value, by the corresponding cosine value of resulting difference hue value as input.
In addition, color space converting circuit further include: the first mlultiplying circuit and the second mlultiplying circuit;First mlultiplying circuit, Sine value for being exported according to the intensity value and form and aspect conversion circuit of input obtains the first color opposition dimension;Second multiplies Method circuit, the cosine value for being exported according to the intensity value and form and aspect conversion circuit of input obtain the second color opposition dimension.
In which, by the first and second mlultiplying circuits, turning for the plane coordinates between different color space is realized It changes, ensure that the accuracy of color transfer result, and then improving image quality.
In addition, color space converting circuit further include: the second data synchronization circuit;Second data synchronization circuit is used for root According to the brightness value of input, the first color opposition dimension and the second color opposition dimension, the coordinate points in cylindricality coordinate are obtained.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the form and aspect conversion circuit block diagram in first embodiment according to the present invention;
Fig. 2 is the address generating circuit block diagram in first embodiment according to the present invention;
Fig. 3 is the address product process figure of the first form and aspect range lookup table in first embodiment according to the present invention;
Fig. 4 is the sine value process flow diagram in first embodiment according to the present invention;
Fig. 5 is the cosine value process flow diagram in first embodiment according to the present invention;
Fig. 6 is the lookup circuit block diagram in second embodiment according to the present invention;
Fig. 7 is the color space converting circuit block diagram in third embodiment according to the present invention;
Fig. 8 is the color space converting circuit block diagram in the 4th embodiment according to the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of form and aspect conversion circuits, defeated for being obtained by the form and aspect conversion circuit Trigonometric function value corresponding to the hue value entered reduces memory space, and saves hardware resource.Below in present embodiment The realization details of form and aspect conversion circuit is specifically described, and the following contents only understands the realization details of this programme for convenience, and It is non-to implement the necessary of this programme.
Fig. 1 show the structure chart of the form and aspect conversion circuit in present embodiment, specifically includes: the address being sequentially connected electrically Generative circuit 101 searches circuit 102 and the first data synchronization circuit 103;Address generating circuit 101 is for determining the color of input Mutually it is worth the address of corresponding first form and aspect range lookup table, wherein the first form and aspect section refers to that the value range of hue value is 0 degree Corresponding hue value is to the form and aspect section of 90 degree of corresponding hue values;Circuit 102 is searched for searching the first form and aspect range lookup Table, obtain address generating circuit 101 determine the corresponding trigonometric function value in address, wherein trigonometric function value include sine value and/ Or cosine value;The trigonometric function that first data synchronization circuit 103 is determined for the hue value and lookup circuit of synchronization gain input Value;According to the hue value of input, form and aspect section belonging to the hue value of the trigonometric function value that circuit 102 determines and input is searched, Obtain the corresponding trigonometric function value of hue value of input.
In a specific implementation, the hue value of input is set as H, first passes through address generation module 101, determines input The first form and aspect range lookup table is inquired by the address in the address of the corresponding first form and aspect range lookup table of hue value H, obtains The hue value of input corresponding sinusoidal (sin), cosine (cos) 0 degree to 90 degree section value sin (H) and cos (H), using First data synchronization circuit 103, the value by sin (H), cos (H) in 0 degree to 90 degree section are mapped to 0 degree to 360 degree section.
It is related with the processing mode of system entirety in the range of LCH color space, the hue value of input, in present embodiment Interval division is described in a manner of 0 degree to 360 degree, interval division can also indicate that the hue value of input is according to system with radian The case where hardware resource and required precision select suitable range, the hue value of input and value pair in 0 degree to 360 degree of section It answers, size can be different, and specifically, the maximum value of the hue value of input is 360 multiplied by a coefficient, this coefficient and color The required precision of color space converting system is related, and coefficient is bigger, and precision is higher, and occupancy hardware resource is more, and coefficient is smaller, precision It is lower, it is fewer to occupy hardware resource.Such as: the minimum unit of integer arithmetic is 1, if coefficient is 1, the hue value of input can only Divide 360 sections, if coefficient is 2, the hue value of input can be divided into 720 sections.
Wherein, the concrete structure diagram of address generating circuit 101 is as shown in Figure 2, comprising: the form and aspect section being sequentially connected electrically is true Cover half block 201 and address calculation module 202;Form and aspect section determining module 201 is used for the hue value according to input, determines input Form and aspect section belonging to hue value;The color for the input that address calculation module 202 is used to be determined according to form and aspect section determining module 201 Form and aspect section belonging to being mutually worth, obtains the address of the corresponding first form and aspect range lookup table of hue value of input.
Wherein, address calculation module 202 is used for: if the hue value of input belongs to the first form and aspect section, by the color of input Mutually it is worth, the address of the corresponding first form and aspect range lookup table of hue value as input;If the hue value of input belongs to the second color Phase section then calculates the difference of the hue value of the corresponding hue value of 180 degree and input, by resulting difference form and aspect as input It is worth the address of corresponding first form and aspect range lookup table, wherein the second form and aspect section refers to that the value range of hue value is 90 degree Corresponding hue value is to the form and aspect section of the corresponding hue value of 180 degree;If the hue value of input belongs to third form and aspect section, count The difference for calculating the hue value hue value corresponding with 180 degree of input, by resulting difference hue value as input corresponding the The address of phase section of the same colour look-up table, wherein third form and aspect section refers to that the value range of hue value is the corresponding form and aspect of 180 degree It is worth the form and aspect section of 270 degree of corresponding hue values;If the hue value of input belongs to the 4th form and aspect section, 360 degree pairs are calculated The difference of the hue value of the hue value and input answered, by resulting difference hue value as input corresponding first form and aspect section The address of look-up table, wherein the 4th form and aspect section refers to that the value range of hue value is 270 degree of corresponding hue values to 360 degree The form and aspect section of corresponding hue value.
At one in the specific implementation, obtaining corresponding first color of hue value of input using address above mentioned computing module 202 The method flow diagram of the address of phase section look-up table, as shown in Figure 3.
In step 301, judge whether the hue value of input belongs to the first form and aspect section, i.e., corresponding 0 degree to 90 degree of color Mutually it is worth, if so, entering step in 302;Otherwise it enters step in 303.
In step 302, because determining that the hue value of input belongs to the first form and aspect section, by the hue value of input, as defeated The address of the corresponding first form and aspect range lookup table of the hue value entered.
In step 303, judge whether the hue value of input belongs to the second form and aspect section, i.e., corresponding 90 degree are arrived 180 degree Hue value, if so, entering step in 304;Otherwise it enters step in 305.
In step 304, the difference for calculating the hue value of the corresponding hue value of 180 degree and input, resulting difference is made For the address of the corresponding first form and aspect range lookup table of hue value of input.
In step 305, judge whether the hue value of input belongs to third form and aspect section, that is, correspond to 180 degree to 270 degree Hue value, if so, entering step in 306;Otherwise it enters step in 307.
Within step 306, the difference for calculating the hue value hue value corresponding with 180 degree of input, resulting difference is made For the address of the corresponding first form and aspect range lookup table of hue value of input.
In step 307, judge whether the hue value of input belongs to the 4th form and aspect section, i.e., corresponding 270 degree to 360 degree Hue value, if so, entering step in 308;Otherwise terminate to judge.
In step 308, the difference for calculating the hue value of 360 degree of corresponding hue values and input, resulting difference is made For the address of the corresponding first form and aspect range lookup table of hue value of input.
Wherein, the first data synchronization circuit 103 is used for: if it is determined that the hue value of input belongs to the first form and aspect section, and/ Or, the second form and aspect section, then the sine value that circuit 102 determines will be searched, the corresponding sine value of hue value as input;If really Surely the hue value inputted belongs to third form and aspect section, and/or, the 4th form and aspect section, then calculating 1 subtracts lookup circuit 102 and determines The resulting difference of sine value, by the corresponding sine value of resulting difference hue value as input.
It is at one in the specific implementation, corresponding just using the hue value of above-mentioned first data synchronization circuit 103 acquisition input The method flow diagram of string value, as shown in Figure 4.
In step 401, judge whether the hue value of input belongs to the first form and aspect section, and/or, the second form and aspect section, I.e. corresponding 0 degree to 90 degree of hue value, and/or, corresponding 90 degree of hue values to 180 degree, if so, entering step in 402;Otherwise It enters step in 403.
In step 402, the sine value that circuit 102 determines, the corresponding sine value of hue value as input will be searched.
In step 403, judge whether the hue value of input belongs to third form and aspect section, and/or, the 4th form and aspect section, 180 degree is corresponded to 270 degree of hue value, and/or, corresponding 270 degree to 360 degree of hue value, if so, entering step in 404; Otherwise terminate to judge.
In step 404, it calculates 1 and subtracts the resulting difference of sine value that lookup circuit 102 determines, resulting difference is made For the corresponding sine value of hue value of input.
Wherein, the first data synchronization circuit 103 is used for: if it is determined that the hue value of input belongs to the first form and aspect section, or, the Four form and aspect sections will then search the cosine value that circuit 102 determines, the corresponding cosine value of hue value as input;If it is determined that defeated The hue value entered belongs to the second form and aspect section, and/or, third form and aspect section calculates 1 and subtracts the cosine that lookup circuit 102 determines It is worth resulting difference, by the corresponding cosine value of resulting difference hue value as input.
It is at one in the specific implementation, corresponding remaining using the hue value of above-mentioned first data synchronization circuit 103 acquisition input The method flow diagram of string value, as shown in Figure 5.
In step 501, judge whether the hue value of input belongs to the first form and aspect section, or, the 4th form and aspect section, i.e., pair 0 degree to 90 degree of hue value is answered, or, corresponding 270 degree to 360 degree of hue value, if so, entering step in 502;Otherwise enter step In rapid 503.
In step 502, the cosine value that circuit 102 determines, the corresponding cosine value of hue value as input will be searched.
In step 503, judge whether the hue value of input belongs to the second form and aspect section, and/or, third form and aspect section, I.e. corresponding 90 degree of hue values to 180 degree, and/or, 180 degree is corresponded to 270 degree of hue value, if so, entering step in 504; Otherwise terminate to judge.
In step 504, it calculates 1 and subtracts the resulting difference of cosine value that lookup circuit 102 determines, resulting difference is made For the corresponding cosine value of hue value of input.
In present implementation, it is raw to be obtained by searching for the first form and aspect range lookup table according to the hue value of input for address At the corresponding trigonometric function value in address that circuit determines, and the triangle determined according to the hue value of synchronous input, lookup circuit Form and aspect section belonging to functional value and the hue value of input obtains the corresponding trigonometric function value of hue value of input.By using The first form and aspect range lookup table in above-mentioned form and aspect conversion circuit is, it can be achieved that using lesser memory space, to guarantee output Precision is higher, avoids unnecessary hardware resource waste.And it by color space converting circuit, realizes from a kind of color Space ensure that the accuracy of color transfer result, and then improving image quality to the conversion of another color space.
Second embodiment of the present invention is related to a kind of form and aspect conversion circuit.Second embodiment is big with first embodiment Cause identical, be in place of the main distinction: searching circuit 102 includes: sine lookup module 301 and/or cosine lookup module 302.
Wherein, the specific structure for searching circuit 102 is as shown in Figure 6, comprising: sine lookup module 601 and/or cosine lookup Module 602;Sine lookup module 601 is used to obtain the corresponding sine value in address that address generating circuit 101 determines, and exports extremely First data synchronization circuit 103;It is corresponding remaining that cosine lookup module 602 is used to obtain the address that address generating circuit 101 determines String value, and export to the first data synchronization circuit 103.
At one in the specific implementation, the lookup circuit 102 can only include sine lookup module 601, can also only include Cosine lookup module 602 can also include sine lookup module 601 and cosine lookup module 602 simultaneously.It should be noted that The lookup circuit 102 is not limited to specific implementation form, can obtain address generating circuit 101 really using any can be realized The corresponding sine value in fixed address, and/or, the electronic component of the function of cosine value is realized, it is not limited to the present embodiment In specific implementation, be just not listed one by one herein.
Third embodiment of the invention is related to a kind of color space converting circuit, including above-mentioned first or second embodiment In form and aspect conversion circuit.
Wherein, the specific structure of color space converting circuit 701 is as shown in Figure 7, further includes: 802 He of the first mlultiplying circuit Second mlultiplying circuit 803;What the first mlultiplying circuit 802 was used to be exported according to the intensity value and form and aspect conversion circuit 801 of input Sine value obtains the first color opposition dimension;Second mlultiplying circuit 803 is used to convert electricity according to the intensity value and form and aspect of input The cosine value that road 801 exports obtains the second color opposition dimension.
At one in the specific implementation, the coordinate data of one group of LCH color space of input, the corresponding coordinate data is to differentiate Rate is the single pixel of every frame image of the moving image of 4K*2K@60HZ, wherein 4K and 2K indicates resolution ratio, and 60Hz indicates brush New rate.The coordinate data of the LCH color space of the input includes hue value and intensity value, and hue value first passes through form and aspect conversion electricity Road 801 obtains the corresponding sine value of the hue value and/or cosine value;Then, the intensity value of input and form and aspect conversion circuit The sine value of 801 outputs obtains the first color opposition dimension by the first mlultiplying circuit 802;The intensity value and form and aspect of input The cosine value that conversion circuit 801 exports obtains the second color opposition dimension by the second mlultiplying circuit 803.And then it realizes and differentiates Rate is the single pixel of every frame image of 4K*2K@60HZ moving image, is sat from LCH color space to the plane of LAB color space The conversion of scale value.
It should be noted that at one in the specific implementation, the first color opposition dimension indicates the model from carmetta to green It encloses, the second color opposes dimension expression from yellow to the range of blue.
5th embodiment of the invention is related to a kind of color space converting circuit.4th embodiment and third embodiment party Formula is roughly the same, and be in place of the main distinction: color space converting circuit further includes the second data synchronization circuit.
Wherein, the specific structure of color space converting circuit 701 is as shown in Figure 8 further include: the second data synchronization circuit 804;Dimension that second data synchronization circuit 804 is used for the brightness value according to input, the first color opposes and the second color opposition dimension Degree obtains the coordinate points in cylindricality coordinate.
At one in the specific implementation, by the first color obtained in third embodiment opposition dimension, the second color opposition The brightness value of dimension and input carries out data by the second data synchronization circuit 804 and synchronizes, and it is 4K*2K@that resolution ratio, which can be realized, The single pixel of every frame image of 60HZ moving image turns from LCH color space to the three dimensional space coordinate of LAB color space It changes.
It is worth noting that the form and aspect conversion circuit 801 and color space converting circuit in above-mentioned each embodiment can To realize on programmable gate array at the scene (Field-Programmable Gate Array, FPGA), spy also can be used Determine purposes integrated circuit (Application Specific Integrated Circuit, ASIC) realization.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention, And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (9)

1. a kind of form and aspect conversion circuit characterized by comprising the address generating circuit that is sequentially connected electrically searches circuit and the One data synchronization circuit;
The address generating circuit, the address of the corresponding first form and aspect range lookup table of hue value for determining input, wherein First form and aspect section refers to that the value range of hue value is form and aspect of 0 degree of corresponding hue value to 90 degree of corresponding hue values Section;
The lookup circuit obtains the ground that the address generating circuit determines for searching the first form and aspect range lookup table The corresponding trigonometric function value in location, wherein the trigonometric function value includes sine value and/or cosine value;
First data synchronization circuit, hue value and the triangle searching circuit and determining for input described in synchronization gain Functional value;According to the hue value of the input, the hue value institute for searching the trigonometric function value that circuit determines and the input The form and aspect section of category obtains the corresponding trigonometric function value of hue value of the input.
2. form and aspect conversion circuit according to claim 1, which is characterized in that the address generating circuit, comprising: successively electric The form and aspect section determining module and address calculation module of connection;
Form and aspect section determining module, for the hue value according to the input, belonging to the hue value for determining the input Form and aspect section;
The address calculation module, for according to belonging to the hue value of the determining input of form and aspect section determining module Form and aspect section obtains the address of the corresponding first form and aspect range lookup table of hue value of the input.
3. form and aspect conversion circuit according to claim 2, which is characterized in that the address calculation module is used for:
If the hue value of the input belongs to first form and aspect section, by the hue value of the input, as the input The corresponding first form and aspect range lookup table of hue value address;
If the hue value of the input belongs to the second form and aspect section, the color of 180 degree corresponding hue value and the input is calculated The mutually difference of value, using resulting difference as the ground of the corresponding first form and aspect range lookup table of the hue value of the input Location, wherein second form and aspect section refers to the value range of hue value for 90 degree of corresponding hue values to the corresponding color of 180 degree The mutually form and aspect section of value;
If the hue value of the input belongs to third form and aspect section, the hue value for calculating the input is corresponding with the 180 degree Hue value difference, using resulting difference as the corresponding first form and aspect range lookup table of the hue value of the input Address, wherein third form and aspect section refers to that the value range of hue value is that the corresponding hue value of 180 degree is corresponded to 270 degree Hue value form and aspect section;
If the hue value of the input belongs to the 4th form and aspect section, the color of 360 degree of corresponding hue values and the input is calculated The mutually difference of value, using resulting difference as the ground of the corresponding first form and aspect range lookup table of the hue value of the input Location, wherein the 4th form and aspect section refers to that the value range of hue value is that 270 degree of corresponding hue values are corresponding to 360 degree The form and aspect section of hue value.
4. form and aspect conversion circuit according to claim 1, which is characterized in that the lookup circuit, comprising: sine lookup mould Block and/or cosine lookup module;
The sine lookup module, the corresponding sine value in address determined for obtaining the address generating circuit, and export extremely First data synchronization circuit;
The cosine lookup module, the corresponding cosine value in address determined for obtaining the address generating circuit, and export extremely First data synchronization circuit.
5. form and aspect conversion circuit according to claim 3, which is characterized in that first data synchronization circuit is used for:
If it is determined that the hue value of the input belongs to first form and aspect section, and/or, the second form and aspect section is then looked into described The sine value for looking for circuit to determine, the corresponding sine value of hue value as the input;
If it is determined that the hue value of the input belongs to third form and aspect section, and/or, the 4th form and aspect section, then calculating 1 subtracts described The resulting difference of sine value that circuit determines is searched, using resulting difference as the corresponding sine value of the hue value of the input.
6. form and aspect conversion circuit according to claim 3, which is characterized in that first data synchronization circuit is used for:
If it is determined that the hue value of the input belongs to first form and aspect section, or, the 4th form and aspect section, then by the lookup electricity The cosine value that road determines, the corresponding cosine value of hue value as the input;
If it is determined that the hue value of the input belongs to the second form and aspect section, and/or, third form and aspect section calculates 1 and subtracts described look into The resulting difference of cosine value for looking for circuit to determine, using resulting difference as the corresponding cosine value of the hue value of the input.
7. a kind of color space converting circuit, which is characterized in that convert electricity including form and aspect as claimed in any one of claims 1 to 6 Road.
8. color space converting circuit according to claim 7, which is characterized in that the color space converting circuit also wraps It includes: the first mlultiplying circuit and the second mlultiplying circuit;
First mlultiplying circuit is obtained for the sine value according to the intensity value of input and form and aspect conversion circuit output Obtain the first color opposition dimension;
Second mlultiplying circuit, for the cosine according to the intensity value of the input and form and aspect conversion circuit output Value obtains the second color opposition dimension.
9. color space converting circuit according to claim 7, which is characterized in that the color space converting circuit also wraps It includes: the second data synchronization circuit;
Second data synchronization circuit, for the brightness value according to input, first color opposition dimension and described second Color opposition dimension, obtains the coordinate points in cylindricality coordinate.
CN201811353073.3A 2018-11-14 2018-11-14 A kind of form and aspect conversion circuit and color space converting circuit Pending CN109547761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811353073.3A CN109547761A (en) 2018-11-14 2018-11-14 A kind of form and aspect conversion circuit and color space converting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811353073.3A CN109547761A (en) 2018-11-14 2018-11-14 A kind of form and aspect conversion circuit and color space converting circuit

Publications (1)

Publication Number Publication Date
CN109547761A true CN109547761A (en) 2019-03-29

Family

ID=65847171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811353073.3A Pending CN109547761A (en) 2018-11-14 2018-11-14 A kind of form and aspect conversion circuit and color space converting circuit

Country Status (1)

Country Link
CN (1) CN109547761A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5533173A (en) * 1991-10-21 1996-07-02 Polaroid Corporation Method and apparatus for processing a color map using discrete cosine transforms
CN107783756A (en) * 2016-08-31 2018-03-09 深圳市中兴微电子技术有限公司 A kind of method and apparatus for obtaining angle correlation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5533173A (en) * 1991-10-21 1996-07-02 Polaroid Corporation Method and apparatus for processing a color map using discrete cosine transforms
CN107783756A (en) * 2016-08-31 2018-03-09 深圳市中兴微电子技术有限公司 A kind of method and apparatus for obtaining angle correlation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘冬林: "LAB与LCH颜色空间及应用", 《今日印刷杂志》 *

Similar Documents

Publication Publication Date Title
CN104486606B (en) The method and its device of adjustment brightness of image and contrast
US4602285A (en) System and method for transforming and filtering a video image
CN101123080A (en) A color gamut mapping real-time processing method and real-time processing circuit
CN105493497A (en) Method and processor for efficient video processing in a streaming environment
Burgeth et al. Morphology for color images via Loewner order for matrix fields
Jain et al. An efficient and adaptable multimedia system for converting PAL to VGA in real-time video processing
CN105979174B (en) A kind of filter network system and image processing system
CN108307162A (en) The color processor of high efficient and flexible
CN109547761A (en) A kind of form and aspect conversion circuit and color space converting circuit
JPH05508752A (en) Real-time conversion between color spaces
CN108282643A (en) Image processing method, image processing apparatus and electronic equipment
Nnolim Design and implementation of novel, fast, pipelined HSI2RGB and log-hybrid RGB2HSI colour converter architectures for image enhancement
US7023585B1 (en) Multi-dimensional edge interpolation
Zeyen et al. Color interpolation for non-Euclidean color spaces
JP4429626B2 (en) Method and system for calculating function value of input node based on function value of known node
CN104637034A (en) Method and device for regulating image saturation degree
Hanumantharaju et al. A novel FPGA based reconfigurable architecture for image color space conversion
Huang et al. System and VLSI implementation of phase-based view synthesis
Alsam et al. Fast colour2grey
Jiang et al. A fast method for RGB to YCrCb conversion based on FPGA
Zhao et al. A new algorithm of shape boundaries based on chain coding
Kumar et al. Optimization of Memory Usage in High-Speed Cameras using FPGA
Lambers Interactive Creation of Perceptually Uniform Color Maps.
Leonidovna Software Calculation and Research Optical Transfer Functions of Matrix Photodetectors
Hoang et al. An efficient ASIC implementation of logarithm approximation for HDR image processing

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: 20190329

RJ01 Rejection of invention patent application after publication