Summary of the invention
The object of the present invention is to provide a kind of display characteristic of display to adjust circuit, the average data that it obtains a plurality of view data respectively provides the quantized data of correct images.And, as long as adjusting to table look-up just can carry out needed extension pattern easily, make picture present best corresponding state for different pictures.
Another object of the present invention is to provide a kind of display characteristic method of adjustment of display, it utilizes the linear logic algorithm to carry out the dynamic contrast expansion, reduce computational complexity required when adjusting display characteristic with this, the display characteristic that improves existing picture also makes it can apply to dynamic menu easily to show.
The display characteristic that the invention provides a kind of display is adjusted circuit, and it comprises processing unit, searches the unit, characteristic curve processing unit and converting unit.Processing unit receives a plurality of view data and asks for and these view data corresponding characteristic mean value.Search the unit and couple processing unit, receive aforementioned characteristic mean value, and differentiate the corresponding suitable transformation curve prototype of characteristic mean value therewith according to the view data conversion table.The characteristic curve processing unit couples searches the unit accepting the transformation curve prototype, and the transformation curve prototype is converted to the display characteristic curve that is applicable to aforementioned characteristic mean value according to preset rules.Converting unit receives the display characteristic curve, and according to this display characteristic curve conversion image data.
In one embodiment of the invention, aforesaid processing unit includes an image signal conversion cell and average calculation unit.Wherein, image signal conversion cell receives view data, and view data is converted to the corresponding a plurality of picture characteristics data that will handle.Average calculation unit then receives these picture characteristics data, and the average image performance data is to obtain aforementioned characteristic mean value.
In another embodiment of the present invention, the display characteristic of aforesaid display adjustment circuit more comprises a judgement unit.This judgement unit is electrically coupled to processing unit and searches between the unit, and judges by characteristic mean value whether these view data form particular image.
The present invention proposes a kind of display characteristic method of adjustment of display in addition, and it is carried out the following step: a. and obtains and a plurality of view data corresponding characteristic mean values; B. according to the view data conversion table to differentiate the corresponding suitable transformation curve prototype of characteristic mean value therewith; C. this transformation curve prototype is converted to the display characteristic curve that is applicable to afore-mentioned characteristics mean value according to preset rules; And d. utilizes the display characteristic curve conversion image data of being tried to achieve.
In one embodiment of the invention, aforesaid step b. at first must obtain the view data conversion table that is divided into a plurality of zones, afterwards when the characteristic average bits is in a certain (a bit) specific region wherein, be the transformation curve prototype with one of corresponding bar curve; And in the zone of characteristic average bits outside this (a bit) specific region the time, be the transformation curve prototype with at least two curves then.In addition, step c when the transformation curve prototype only comprises a curve, is the display characteristic curve with this transformation curve prototype promptly then; And, then be combined into the display characteristic curve with these curves if the transformation curve prototype comprises curve more than two.
In another embodiment of the present invention, step b. at first must obtain the view data conversion table with the corresponding curve of breakover point, obtaining corresponding breakover point numerical value according to characteristic mean value from the view data conversion table more afterwards, is the transformation curve prototype with obtained breakover point numerical value at last again.In addition, the step c of this moment then obtains predefined function earlier, is the center afterwards and with aforementioned breakover point numerical value, and with pairing each numerical value of the characteristic value that calculates possibility, the numerical value that last combination is again calculated is with as the display characteristic curve in conjunction with predefined function.
In one embodiment of the invention, aforesaid predefined function can be the sin multinomial.
In another embodiment of the present invention, between aforesaid step a. and step b., more need obtain at least two characteristic mean values, and, judge whether view data represents particular image according to obtained characteristic mean value.And judge when whether view data represents particular image, then horizontal range between the estimated performance mean value and vertical range, and in horizontal range greater than first default value, and vertical range is during less than second default value, process decision chart is as data represented particular image.
In sum, the dynamic process that utilization the present invention can carry out automation at different pictures, and in the process of handling, the average data that only need obtain a plurality of view data respectively can provide the quantized data of correct images.And, as long as adjusting to table look-up just can carry out needed extension pattern easily, not only reduce complexity of calculation, and can shorten the time of development technique for different pictures.
State with other purpose, feature and advantage and can become apparent on the present invention for allowing, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below.
Description of drawings
Figure 1 shows that the circuit block diagram of adjusting circuit according to the display characteristic of one embodiment of the invention.
Figure 2 shows that content schematic diagram according to the view data conversion table of one embodiment of the invention.
Figure 3 shows that according to one embodiment of the invention and when using the view data conversion table of Fig. 2, searching the operational flowchart that is carried out in the unit
Figure 4 shows that the operational flowchart that when using the view data conversion table of Fig. 2, in the characteristic curve processing unit, is carried out according to one embodiment of the invention.
Figure 5 shows that the operational flowchart that another embodiment according to the present invention is carried out in searching the unit.
Figure 6 shows that the schematic diagram of one of view data conversion table that searching of Fig. 5 used unit embodiment.
Figure 7 shows that the operational flowchart that another embodiment according to the present invention is carried out in the characteristic curve processing unit when using embodiment shown in Figure 5.
Figure 8 shows that the display characteristic curve of another embodiment gained according to the present invention.
Figure 9 shows that the circuit block diagram of the display characteristic adjustment circuit of another preferred embodiment according to the present invention.
Figure 10 shows that a kind of schematic diagram of particular image.
The main element symbol description
10,90: display characteristic is adjusted circuit
100,900: processing unit
110,910: search the unit
120,920: the characteristic curve processing unit
130,930: converting unit
902: image signal conversion cell
904: average calculation unit
940: judgement unit
S300: obtain the view data conversion table
Does S302: characteristic mean value fall within the fringe region?
S304: with a corresponding curve is the transformation curve prototype
S306: with corresponding two curves is the transformation curve prototype
S400: receive the transformation curve prototype
Is S402: the transformation curve prototype only wrapped a curve?
S404: directly send the transformation curve prototype as the display characteristic curve
S406: it is existing as the display characteristic curve to merge the Duo Tiao district
S500: obtain the view data conversion table
S502: obtain and the corresponding breakover point numerical value of characteristic mean value
S504: output breakover point numerical value
S700: receive breakover point numerical value and obtain predefined function
Does does might S702: institute characteristic value all calculate and finish?
S704: is the characteristic value of required calculating greater than breakover point numerical value?
S706: make breakover point numerical value add the value of gained behind the characteristic value substitution predefined function that will will calculate
S708: make breakover point numerical value deduct the value of gained behind the characteristic value substitution predefined function that will will calculate
S710: in conjunction with all values that calculates, to form the display characteristic curve
Embodiment
The quality of the quality of an image frame is involving many factors, all can the quality of image frame be exerted an influence as the resolution of image display feature such as brightness, contrast or pixel.In addition, some the time also must carry out different image processing for input image data, so could export clear and bright image.
For making display can export the image with good image display feature, the display characteristic that the invention provides a kind of display is adjusted circuit.See also Fig. 1, its expression is adjusted circuit according to the display characteristic of one embodiment of the invention.This display characteristic adjusts that circuit 10 comprises processing unit 100, searches unit 110, characteristic curve processing unit 120 and converting unit 130.Wherein, processing unit 100 is in order to receive view data.After processing unit 100 receives view data, these view data will be converted to corresponding display characteristic, and obtain the characteristic mean value of these display characteristics.
Though in one embodiment of the invention, the characteristic of
processing unit 100 application image statistic histograms (Histogram) handle, the ordinary skill of technical field that the present invention belongs to is carried out different handling procedures when border situation factually.And the general practice of so-called characteristic mean value is similar to the center of gravity place of asking for view data.For example, characteristic mean value can by
Try to achieve, wherein, max, min: be respectively maximum, the minimum value of the characteristic value of input picture,
Be characteristic value and sum of products with view data number of this characteristic value,
It then is the number of all images data.
Referring again to Fig. 1, searching unit 110 couples processing unit 100 and receives the characteristic mean value that is transmitted by processing unit 100, and a view data conversion table of foundation (do not express among the figure, it can be the electronic data that is stored in the Nonvolatile memory) is differentiated the corresponding and suitable transformation curve prototype of characteristic mean value therewith.
In one embodiment of the invention, search that employed view data conversion table can be a zone list and a corresponding curve data (as shown in Figure 2) that is divided into the polylith zone in the unit 110.Wherein, for example, the relevant information between each zone and its response curve can be as described below:
1.0≤Gray
Ave≤ 64 trade-off curves _ I
2. as 64<Gray
Ave≤ 96 trade-off curves _ I, curve _ II
3. as 96<Gray
Ave≤ 128 trade-off curves _ II, curve _ III
4. as 128<Gray
Ave≤ 160 trade-off curves _ III, curve _ IV
5. as 160<Gray
Ave≤ 192 trade-off curves _ IV, curve _ V
6. as 192<Gray
Ave≤ 255 trade-off curves _ V
Wherein, Gray
AveBe the mean value of gradation data, just aforesaid characteristic mean value a kind of.Should be noted that, for the convenience on illustrating, later embodiment will be that example is narrated with the gray scale, but adjust in circuit that the ordinary skill of technical field that the present invention belongs to is worked as to such an extent that other the picture characteristics substitution that need adjust is provided by the present invention or the method.In other words, the present invention's the scope of application is not limited in the adjustment of gray scale because of the explanation of embodiment.
One of them embodiment of the processing method of being carried out in searching unit 110 is shown among Fig. 3.Please refer to Fig. 3, obtaining foregoing view data conversion table (step S300) afterwards, at first must judge from processing unit 100 received characteristic mean values and whether drop on some specific zone (step S302).In present embodiment, these specific zones are called fringe region, just earlier figures as in the data conversion table by 0≤Gray
Ave≤ 64 and 192<Gray
Ave≤ 255 two zones that define respectively.In these two zones, because the relation of picture characteristics, so only use single curve (to be respectively curve _ I and curve _ V) for changing reference; Relative, the curve that will adopt two or more in other zone is as the conversion reference.Therefore, in case in step S302, judge and learn characteristic mean value Gray
AveBe to drop in the specific region, just must adopt a corresponding curve as transformation curve prototype (step S304); Opposite, in case characteristic mean value Gray is learnt in judgement in step S302
AveNot to drop in the specific region, just must adopt corresponding many curves as transformation curve prototype (step S306).
Refer again to Fig. 1.Can be transmitted to characteristic curve processing unit 120 by searching the transformation curve prototype of being exported unit 110.Characteristic curve processing unit 120 can be converted to a display characteristic curve according to some preset rules with received transformation curve prototype, obtained characteristic mean value Gray before this display characteristic curve will be applicable to
AveFor instance, searching that unit 110 carries out step shown in Figure 3 and after exporting the transformation curve prototype, in one embodiment of the invention, the operation of characteristic curve processing unit 120 can adopt mode as described in Figure 4 to carry out.Please refer to Fig. 4, receiving transformation curve prototype (step S400) afterwards, characteristic curve processing unit 120 can decide follow-up flow process (step S402) according to the curve quantity that is comprised in the transformation curve prototype.If only comprise a curve in the transformation curve prototype, just, if characteristic mean value Gray
AveBe when dropping in the aforesaid fringe region, characteristic curve processing unit 120 will be display characteristic curve (step S404) with the curve that is comprised in the transformation curve prototype directly; Relative, if comprised many curves in the transformation curve prototype, then characteristic curve processing unit 120 will merge these curves to achieve a display characteristic curve (step S406).
Adopt interpolation method to form the display characteristic curve in the present embodiment to merge many curves.For instance, suppose characteristic mean value Gray
Ave=80, and the display characteristic curve of desiring to try to achieve (that is grey scale curve) is curve _ 80 (Curve_80), and can find that in aforesaid judgment mode characteristic mean value 80 drops between characteristic mean value 96 and characteristic mean value 64, so curve _ I (Curve_I) and curve _ II (Curve_II) have just been comprised in the transformation curve prototype.Wherein, curve _ I (0 ~ 255) and curve _ II (0 ~ 255) have 256 stroke count values respectively, and the method for asking of the gray scale S in curve _ 80 is:
S with 1~256 substitution following formula, then can be obtained one by curve _ 80 that curve _ I and curve _ II were merged into, that is aforesaid display characteristic curve.Next this display characteristic curve can be output to converting unit 130, and converting unit 130 just can be come the view data of conversion script input according to this display characteristic curve.
In another embodiment of the present invention, proposed to search the another kind of fit system of 120 of unit 110 and characteristic curve processing units.Please refer to Fig. 5, its expression be the mode of operation of searching the unit of another preferred embodiment according to the present invention.In the present embodiment, at first search unit 110 and must obtain a view data conversion table (step S500).Different with previous embodiment is, the view data conversion table of this moment does not need to be divided into a plurality of zones, and is relative, and the view data conversion table of this moment can provide a characteristic mean value (average gray Gray as shown in Figure 6
Ave) to the curve of breakover point position.According to this curve, just can obtain a characteristic mean value corresponding breakover point numerical value (step S502) received, and this breakover point numerical value will be exported (step S504) as aforesaid transformation curve prototype with searching unit 110.
Next please refer to Fig. 7, it has represented the operational flowchart of an embodiment of the processing carried out according to the embodiment of Fig. 5 in the characteristic curve processing unit.In the present embodiment, characteristic curve processing unit 120 also must be obtained a follow-up predefined function (step S700) that is used for calculating the display characteristic curve except receiving by searching the transformation curve prototype of being exported unit 110.This predefined function is visual wants the picture characteristics of adjusting, result or the computational complexity of wanting to adjust to select.In the present embodiment, this predefined function adopts the three rank Taylor expansions of sinusoidal wave (sin).After obtaining breakover point numerical value and predefined function, characteristic curve processing unit 120 just must be with all in addition computings of all possible characteristic value (that is, continued untreated characteristic value is still carried out computing before not satisfying step S702 as yet) in the hope of last display characteristic curve.
If with curve shown in Figure 6 is example, is gray scales 96 if search unit 110 received characteristic mean values, can learn via tabling look-up that then its breakover point numerical value is exactly 64.And characteristic curve processing unit 120 just begins the pairing numerical value of each possible characteristic value of double counting (for example can be gray value 0~255 herein) after receiving breakover point numerical value.And in calculating, the size (step S706) between characteristic value that at first necessary judgement is this time calculated and the before obtained breakover point numerical value.If the characteristic value that calculates greater than breakover point numerical value, then carries out step S706; Otherwise, if the characteristic value that will calculate then carries out step S708 less than breakover point numerical value.
For instance, because the sin curve is what be difficult to realize do computing on circuit, so adopt the 3 rank Taylor expansions of sin
Substitute, when
Be maximum
The time,
Therefore the scope of setting x is 0~1.414.And be example with Fig. 6, as characteristic mean value Gray
Ave=96 o'clock through tabling look-up to such an extent that breakover point is 64, then in curve _ 96 (Curve_96, representing characteristic mean value are 96 o'clock display characteristic curve) the display characteristic curve of 0~255 gray scale ask method as follows:
When gray scale S>64, then
Order
At this moment
When gray scale S<64, then
Order
At this moment
As have the knack of known to this operator, this multinomial is not limited to the Taylor expansion of sin, and available arbitrary multinomial replaces.For example, if with multinomial
Curve, then the scope of x is 0~1,
Scope 0~2/3 therefore be:
When gray scale S>64, then
Order
At this moment
When gray scale S<64, then
Order
At this moment
By above-mentioned mode, after having calculated all possible characteristic value, just can obtain the pairing numerical value of each characteristic value respectively.And, just can obtain a display characteristic curve (step S710) as shown in Figure 8 by in conjunction with these numerical value that calculates gained, and wherein, X-axis is the characteristic value size of input, Y-axis is the characteristic value size for exporting then.
Except above-mentioned apparatus and method,, can also on the basis of previous embodiment, add a judgement unit, as shown in Figure 9 in order to judge whether to need to adjust the display characteristic of picture more accurately.Please refer to Fig. 9, it has represented the circuit block diagram of the display characteristic adjustment circuit of another preferred embodiment according to the present invention.In the present embodiment, judgement unit 940 receives a plurality of characteristic mean values that transmitted from processing unit 900, and judges by the difference between these characteristic mean values whether view data to display forms a particular image.And if these view data form a particular image really, then judgement unit 940 military orders are follow-up, and to search the display characteristic curve that unit 910 and characteristic curve processing unit 920 exported after running be immovable kenel, that is, the view data that converting unit 930 will be imported is not originally done the output of any change.And if these view data do not form particular image, then searching unit 910 will operate according to received characteristic mean value.
Please refer to Figure 10, its signifier is a kind of schematic diagram of particular image.In this kind particular image, the gray value of view data clearly concentrate on two parts, then be easy to lose the sharp contrast picture that originally will present if view data is done above-mentioned adjustment this moment.Therefore, under this kind situation, selecting not adjust picture is a kind of feasible mode.In order to determine of this sort special frame, processing unit 900 is with the characteristic of segmentation computed image data.In the present embodiment, view data simply is divided into two sections, wherein one section is gray value between 0~127 part, another section then is gray value between 128~255 part, and processing unit 900 has also further calculated the average gray G1 and the G2 of these two sections view data except the average gray that calculates all images data.
Average gray (characteristic mean value) G1 and G2 can be output to judgement unit 940, and judgement unit 940 will judge with vertical, horizontal range between the G2 whether to display be particular image according to G1.Its basis for estimation is: when | (G2x-G1x) |>A and | (G2y-G1y) | during<B, judge that then view data to display is a particular image, wherein A, B are adjustable parameter.Average gray as for all images data then has several processing modes: wherein a kind of is directly to export to search unit 910, and determines to search unit 910 again according to the judged result of judgement unit 940 and whether adopt this average gray; Whether another kind is also to give judgement unit 940 in the lump with the average gray of all images data as rule, its commentaries on classics will be passed to by judgement unit 940 decisions more at last and search unit 910.
In addition, owing to the characteristic value of some view data can not directly be obtained from image, so processing unit 900 can also comprise an image signal conversion cell 902 and an average calculation unit 904.Wherein, image signal conversion cell 902 receives view data, and view data is converted to the corresponding picture characteristics data that will handle.904 of average calculation unit receive these picture characteristics data, and the average image performance data is to obtain aforementioned characteristic mean value.For instance, the view data of general input may comprise R, G, the trichromatic data of B, and the characteristic value that institute wants to handle may be the gray value of view data, therefore at this moment just R, G, the trichromatic brightness value of B must be converted to gray value.Generally can adopt following formula:
Wherein G is the gradation data after changing, M
11M
12M
13Be arbitrary matrix, for example [0.33 0.33 0.33].
Moreover, because whole the view data that picture comprised is too huge sometimes,, consider calculating in another embodiment of the present invention with mode value of averaging of choosing some specified point therefore in order to save the time of calculating.For instance, can from whole picture data, get coordinate points and be the pixel of 7 multiple and add up, can significantly reduce the data volume of processing thus and speed speed.Because a pixel comprises 3 primary colors, and the coloured image of a 852*480 resolution becomes 852*480 resolution monochrome image through after the conversion of signals, if take the mode of sample to handle again, then only need handle 127*68 data number altogether and get final product.
And the principle that converting unit 930 is handled is as follows, raw image data color data (R_in, G_in, B_in) wherein can get one through matrix operation (as [0.33,0.33,0.33]) and represent data G, substitution characteristic curve processing unit 920 can be tried to achieve characteristic curve, can find the data variation of Input data Output after the characteristic curve conversion, both are divided by try to achieve the forward and backward difference multiple of data transaction, can obtain the numerical value of R_out, G_out, B_out output again with raw image data R_in, G_in, B_in mutually at convenience.For example raw image data color data (R_in, G_in, B_in)=(100,100,100) wherein get G=100 after [0.33,0.33,0.33] conversion of signals, suppose to become Output=120 after characteristic curve that substitution is tried to achieve can get the Input=100 conversion, then changing forward and backward difference multiple is 120/100=1.2, then can get (R_out, G_out, B_out)=(R_in, G_in, B_in) * 1.2=(120,120,120) after converting unit 930 computings.
In sum, the dynamic process that utilization the present invention can carry out automation at different pictures, and in the process of handling, utilize the average data of obtaining a plurality of view data in the image statistics histogram respectively, the quantized data of correct images is provided.And, just can carry out needed extension pattern easily for different pictures as long as adjust table look-up (LUT), shorten the time of development technique.
Though the present invention with preferred embodiment openly as above; right its is not in order to limit the present invention; the ordinary skill of any technical field that the present invention belongs to; in thought that does not break away from the present invention and scope; when can doing a little change and improvement, so the present invention's protection range is as the criterion when looking claims person of defining.