Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is that a kind of image provided in an embodiment of the present invention shows bearing calibration flow diagram, as shown in Figure 1, described
Method, comprising:
Step 101: obtaining image to be corrected and show the present intensity value that terminal is shown, according to the present intensity value and survey in advance
The fisrt feature Gamma list of amount is calculated, and current second feature Gamma list is obtained;
Specifically, when need to treat correcting image show terminal be corrected when, obtain image display terminal to be corrected first
Present intensity value, can be measured by color analysis instrument to obtaining present intensity value, then according to present intensity
Value and the fisrt feature Gamma list measured in advance are calculated, and current Gamma list is obtained.It should be noted that second
It include that number (No), red channel (R) value, green channel (G) value, blue channel (B) value and first are special in feature Gamma list
It levies Gamma value (Lum), table 1 is second feature Gamma list provided in an embodiment of the present invention, as shown in table 1, it is possible to understand that
It is that the data in table 1 are a part, can be the value under image display initial conditions to be corrected.
Table 1
No. |
R |
G |
B |
Lum |
1 |
0 |
0 |
0 |
0.312 |
2 |
1 |
1 |
1 |
0.315 |
3 |
2 |
2 |
2 |
0.322 |
4 |
3 |
3 |
3 |
0.327 |
5 |
4 |
4 |
4 |
0.335 |
6 |
5 |
5 |
5 |
0.353 |
7 |
6 |
6 |
6 |
0.377 |
8 |
7 |
7 |
7 |
0.407 |
9 |
8 |
8 |
8 |
0.436 |
10 |
9 |
9 |
9 |
0.491 |
…… |
…… |
…… |
…… |
…… |
256 |
255 |
255 |
255 |
345.231 |
It is understood that it is present intensity value that number, which is 256 corresponding Lum, in table 1, and terminal is shown in image to be corrected
In operational process, with the increase of operation duration, brightness value can change, therefore, according to present intensity value and initial bright
The comparison of angle value can obtain brightness change coefficient, and then according to brightness change coefficient, therefore, the Lum in table 1 is by first
What beginning brightness value and brightness variation system were calculated.
Step 102: interpolation calculation being carried out using preset rules according to the second feature Gamma list, it is special to obtain third
Levy Gamma list;
Specifically, interpolation calculation is carried out according to preset rules, by interpolation after getting second feature Gamma list
Afterwards, data third feature Gamma list more abundant, and the number of the Lum in third feature Gamma list can be acquired
Value growth is gentler, help to obtain more accurately calculating Gamma look-up table.
Step 103: being calculated and obtained according to pre-set Gamma type and the second feature Gamma list
Gamma standard value calculates according to the Gamma standard value and the third feature Gamma list and obtains Gamma look-up table, benefit
The image display terminal to be corrected is corrected with the Gamma look-up table.
Specifically, user can show in image to be corrected in advance according to actual needs is arranged Gamma type in terminal,
Such as the dicom standard that medical image is shown, pre-set Gamma type is obtained, and arrange using second feature Gamma
Meter, which is calculated, obtains Gamma standard value, it should be noted that is calculated using second feature Gamma list and obtains Gamma standard value
Method is consistent with calculation method in the prior art, and the present invention is not especially limit this, according to what is be calculated
Gamma standard value obtains corresponding data from third feature Gamma list, and constitutes Gamma look-up table.Table 2 is the present invention
The third feature Gamma list that embodiment provides, as shown in table 2:
Table 2 shows partial data, likewise, including number (No), R value, G value, B in third feature Gamma list
Value and Lum amount to 766 Gamma map informations.Gamma standard value is also 256 values, it is assumed that calculates the part Gamma of acquisition
Standard value is 0.312,0.317,0.32,0.33,0.335,0.353,0.369 ..., 345.231, then from table 2 it can be seen that
It is 1,5,6,11,13,16,18 that the above Gamma standard value, which respectively corresponds number, ..., 766, therefore can be corresponding from above-mentioned number
R value, G value, B value can calculate Gamma look-up table, may be implemented to treat correcting image display eventually by Gamma look-up table
End is corrected.
The embodiment of the present invention obtains the by carrying out interpolation calculation using preset rules according to second feature Gamma list
Three feature Gamma lists calculate according to the Gamma standard value being calculated and the third feature Gamma list and obtain Gamma
Look-up table is corrected the image display terminal to be corrected using the Gamma look-up table, passes through more reasonable interpolation
It calculates the third feature Gamma list acquired and improves the calibration accuracy rate that correcting image is shown for the treatment of.
On the basis of the above embodiments, the second feature Gamma list includes n Gamma map information, each
The Gamma map information includes red color channel value R=i, green channel value G=i, blue channel value B=i and feature Gamma
Value, wherein 0≤i≤n-1, and i and n are integer;Correspondingly,
It is described that interpolation calculation is carried out using preset rules according to the second feature Gamma list, obtain third feature
Gamma list, comprising:
It is inserted into the first Gamma map information and the 2nd Gamma respectively between two articles of adjacent Gamma map informations
Map information;
The first Gamma map information includes: red color channel value R=i+1, green channel value G=i, blue channel value B
=i+1 and corresponding feature Gamma value;
The 2nd Gamma map information includes: red color channel value R=i, green channel value G=i+1, blue channel value B
=i and corresponding feature Gamma value.
Specifically, as can be known from Table 1, second feature Gamma list includes 256 Gamma map informations, each
Gamma map information includes R value, G value, B value and fisrt feature Gamma value, R value=G value=B value, and for since 0 to 255
Continuous integral number.R value, G value and B value can be regarded as to a combination, the corresponding different fisrt feature Gamma of different combinations
Value.During carrying out interpolation, the first Gamma map information and second is inserted between adjacent two articles of Gamma map informations
Gamma map information, therefore, the first Gamma map information include: red color channel value R=i+1, green channel value G=i, blue
Channel value B=i+1 and corresponding second feature Gamma value, the 2nd Gamma map information include: red color channel value R=i, green
Channel value G=i+1, blue channel value B=i and corresponding third feature Gamma value.Such as: number 1 and number 2 in table 1
Between be inserted into the first Gamma map information and the 2nd Gamma map information, at this point, i=0, then the first Gamma map information
In R value be i+1=1, G value is i=0, and B value is i+1=1, and different RGB combinations identifies different brightness values.2nd Gamma
R value in map information is i=0, and G value is i+1=1, and B value is therefore i=0 can pass through interpolation according to R value, G value and B value
It calculates and obtains third feature Gamma value.
The embodiment of the present invention is by being inserted into the first Gamma map information and second in adjacent two articles of Gamma map informations
Gamma map information, and be respectively i+1, i, i+1, the 2nd Gamma mapping letter by the rgb value of the first Gamma map information
The rgb value of breath is respectively i, i+1, i, and the more stable feature Gamma value of variation can be obtained by carrying out interpolation by this rule,
So that obtaining more accurate Gamma look-up table according to Gamma value to be corrected, the accuracy of correction is improved.
On the basis of the above embodiments, the method, further includes:
Obtain the corresponding original luminance value of current brightness level and operation duration of the image display terminal to be corrected, root
The present intensity value is calculated using brightness value attenuation characteristic according to the original luminance value and the operation duration.
Specifically, since the brightness value of image display terminal to be corrected is worked as operation duration is changed
Preceding brightness value needs not be equal to original luminance value, by obtaining the corresponding original luminance value of current brightness level and operation duration,
It is calculated in conjunction with the corresponding brightness value attenuation characteristic of current brightness level and obtains present intensity value.It is understood that different bright
Degree grade corresponds to different brightness value attenuation characteristics, and brightness value attenuation characteristic can be in advance from display screen producer or according to display
Screen characteristics obtain.
The embodiment of the present invention obtains the by carrying out interpolation calculation using preset rules according to second feature Gamma list
Three feature Gamma lists calculate according to the Gamma standard value being calculated and the third feature Gamma list and obtain Gamma
Look-up table is corrected the image display terminal to be corrected using the Gamma look-up table, passes through more reasonable interpolation
It calculates the third feature Gamma list acquired and improves the calibration accuracy rate that correcting image is shown for the treatment of.
On the basis of the above embodiments, the fisrt feature Gamma measured according to the present intensity value and in advance
List is calculated, and current second feature Gamma list is obtained, comprising:
Corresponding original luminance value is obtained according to the fisrt feature Gamma list, according to the present intensity value and institute
It states original luminance value and calculates acquisition luminance factor, according to the luminance factor to initial in the fisrt feature Gamma list
Feature Gamma value converts, and obtains the current second feature Gamma list.
Specifically, table 3 is fisrt feature Gamma list provided in an embodiment of the present invention, as shown in table 3, number is 256 pairs
The Lum=34.5231 answered is initial luma values, is calculated according to present intensity value and original luminance value and obtains luminance factor, it is assumed that
Present intensity value is 345.231, then luminance factor is 10, at this point, using luminance factor in fisrt feature Gamma list
Lum converts, i.e., each Lum value finally obtains second feature Gamma list, as shown in table 2 multiplied by 10.
Table 3
The embodiment of the present invention obtains the by carrying out interpolation calculation using preset rules according to second feature Gamma list
Three feature Gamma lists calculate according to the Gamma standard value being calculated and the third feature Gamma list and obtain Gamma
Look-up table is corrected the image display terminal to be corrected using the Gamma look-up table, passes through more reasonable interpolation
It calculates the third feature Gamma list acquired and improves the calibration accuracy rate that correcting image is shown for the treatment of.
On the basis of the above embodiments, the method, further includes:
It is periodically detected the first brightness degree and corresponding first brightness value of the image display terminal to be corrected, if sentencing
The disconnected difference for knowing first brightness value original luminance value corresponding with first brightness degree greater than preset threshold, then into
The display correction of row image.
Specifically, in order to improve the accuracy that image is shown, need periodically to detect image to be corrected shows terminal the
One brightness degree, so-called first brightness degree is exactly the brightness degree of image display terminal current period to be corrected, by current
Brightness degree and brightness decay characteristic calculate corresponding first brightness value of current period, by the first brightness value and the first brightness degree
Under original luminance value be compared, if the two difference be greater than preset threshold if illustrate the first brightness value needs be corrected,
Just start to correct at this time.It should be noted that school can also be carried out after restarting the image display terminal to be corrected every time
Just.
The embodiment of the present invention passes through periodically by the first brightness value original brightness corresponding with first brightness degree
Value is compared, and judges whether to need to be corrected, on the other hand being on the one hand not necessarily to manual intervention ensure that image was shown
Accuracy.
On the basis of the various embodiments described above, the method, further includes:
Grade brightness value file, middle value tag Gamma value file and brightness decay characteristic file are stored to described in advance
In image display terminal to be corrected;Wherein,
The grade brightness value file includes the corresponding initial luma values of each brightness degree;
The middle value tag Gamma value file includes that brightness degree is 50% corresponding middle value tag Gamma value;
The brightness decay characteristic file includes from the display screen producer of the image display terminal to be corrected or according to aobvious
The brightness decay characteristic that display screen characteristic obtains.
Specifically, grade brightness value file, middle value tag Gamma value file and brightness decay characteristic file are stored in advance
To in the image display terminal to be corrected.Wherein, the original intensity grade of image display terminal to be corrected is successively adjusted to
0%, 1%, 2%...100% and the corresponding initial luma values of each original intensity grade are measured, or measurement part is initial etc.
Interpolation calculation goes out the initial luma values of other initial grades to grade brightness value again, is recorded as grade brightness value file, and by this document
Image display terminal to be corrected is written.The brightness degree of image display terminal to be corrected is adjusted to 50%, measures tablet computer
Middle value tag Gamma value, and be recorded as middle value tag Gamma value file, and image to be corrected is written into this document and is shown eventually
End.Brightness of display screen decay characteristics are obtained from display screen producer or according to the characteristic of display screen, are recorded as brightness decay characteristic text
Part, and image display terminal to be corrected is written into this document.
The embodiment of the present invention obtains the by carrying out interpolation calculation using preset rules according to second feature Gamma list
Three feature Gamma lists calculate according to the Gamma standard value being calculated and the third feature Gamma list and obtain Gamma
Look-up table is corrected the image display terminal to be corrected using the Gamma look-up table, passes through more reasonable interpolation
It calculates the third feature Gamma list acquired and improves the calibration accuracy rate for treating correcting image display terminal.
Fig. 2 is a kind of image display correction device structural schematic diagram provided in an embodiment of the present invention, as shown in Fig. 2, described
Device, comprising: computing module 201, interpolating module 202 and correction module 203, wherein
Computing module 201 is used to obtain the present intensity value of image display terminal to be corrected, according to the present intensity value
The fisrt feature Gamma list measured in advance is calculated, and current second feature Gamma list is obtained;Interpolating module 202
For carrying out interpolation calculation using preset rules according to the second feature Gamma list, third feature Gamma list is obtained;
Correction module 203 is used to be calculated according to pre-set Gamma type and the second feature Gamma list and obtain
Gamma standard value calculates according to the Gamma standard value and the third feature Gamma list and obtains Gamma look-up table, benefit
The image to be corrected is shown with the Gamma look-up table and is corrected.
Specifically, obtaining image display to be corrected first eventually when needing to treat correcting image display terminal and being corrected
The present intensity value at end can measure to obtain present intensity value, 201 basis of computing module by color analysis instrument
Present intensity value and the fisrt feature Gamma list measured in advance are calculated, and current Gamma list is obtained.It is getting
After second feature Gamma list, interpolating module 202 carries out interpolation calculation according to preset rules can acquire after interpolation
Data third feature Gamma list more abundant, and the nominal growth of the Lum in third feature Gamma list is more flat
It is slow, it help to obtain more accurate Gamma look-up table.User can show eventually in image to be corrected in advance according to actual needs
Gamma type is set on end, such as the dicom standard that medical image is shown, correction module 203 obtain pre-set
Gamma type, and calculated using second feature Gamma list and obtain Gamma standard value, it should be noted that using working as
The method that preceding brightness value calculates acquisition Gamma standard value is consistent with calculation method in the prior art, and the embodiment of the present invention is to this
It is not especially limited, corresponding data is obtained from third feature Gamma list according to the Gamma standard value being calculated, and
Gamma look-up table is calculated, may be implemented to treat correcting image display terminal by Gamma look-up table and be corrected.
The embodiment of device provided by the invention specifically can be used for executing the process flow of above-mentioned each method embodiment,
Details are not described herein for function, is referred to the detailed description of above method embodiment.
The embodiment of the present invention obtains the by carrying out interpolation calculation using preset rules according to second feature Gamma list
Three feature Gamma lists calculate according to the Gamma standard value being calculated and the third feature Gamma list and obtain Gamma
Look-up table shows the image to be corrected using the Gamma look-up table and is corrected, passes through more reasonable interpolation calculation
The third feature Gamma list of acquisition improves the calibration accuracy rate for treating correcting image display terminal.
On the basis of the above embodiments, the second feature Gamma list includes n Gamma map information, each
The Gamma map information includes red color channel value R=i, green channel value G=i, blue channel value B=i and fisrt feature
Gamma value, wherein 0≤i≤n-1, and i and n are integer;Correspondingly,
The interpolating module, is specifically used for:
It is inserted into the first Gamma map information and the 2nd Gamma respectively between two articles of adjacent Gamma map informations
Map information;
The first Gamma map information includes: red color channel value R=i+1, green channel value G=i, blue channel value B
=i+1 and corresponding second feature Gamma value;
The 2nd Gamma map information includes: red color channel value R=i, green channel value G=i+1, blue channel value B
=i and corresponding third feature Gamma value.
The embodiment of device provided by the invention specifically can be used for executing the process flow of above-mentioned each method embodiment,
Details are not described herein for function, is referred to the detailed description of above method embodiment.
In addition, the embodiment of the present invention provides a kind of tablet computer, which includes the embedded processings such as ARM, X86
Device, the embedded OSs such as Android, Windows, iOS support the graphical display chip of Gamma look-up table, brightness regulation
Function, image display correction device, wherein image display correction device is for executing above-mentioned bearing calibration, so that the tablet computer
Have and corrected function is shown to image automatically.
Fig. 3 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention, as shown in figure 3, the electronic equipment,
It include: processor (processor) 301, memory (memory) 302 and bus 303;Wherein,
The processor 301 and memory 302 complete mutual communication by the bus 303;
The processor 301 is used to call the program instruction in the memory 302, to execute above-mentioned each method embodiment
Provided method, for example, the present intensity value for obtaining image display terminal to be corrected, according to the present intensity value and
The fisrt feature Gamma list measured in advance is calculated, and current second feature Gamma list is obtained;According to described second
Feature Gamma list carries out interpolation calculation using preset rules, obtains third feature Gamma list;According to pre-set
Gamma type and the second feature Gamma list, which calculate, obtains Gamma standard value, according to the Gamma standard value and
The third feature Gamma list, which calculates, obtains Gamma look-up table, using the Gamma look-up table to the image to be corrected
Display terminal is corrected.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, it is aobvious to obtain image to be corrected
The present intensity value for showing terminal, the fisrt feature Gamma list measured according to the present intensity value and in advance are calculated, are obtained
Obtain second feature Gamma list currently;Interpolation calculation is carried out using preset rules according to the second feature Gamma list,
Obtain third feature Gamma list;It is calculated according to pre-set Gamma type and the second feature Gamma list
Gamma standard value is obtained, is calculated according to the Gamma standard value and the third feature Gamma list and obtains Gamma lookup
Table is corrected the image display terminal to be corrected using the Gamma look-up table.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example
It such as include: the present intensity value for obtaining image display terminal to be corrected, first measured according to the present intensity value and in advance
Feature Gamma list is calculated, and current second feature Gamma list is obtained;According to the second feature Gamma list benefit
Interpolation calculation is carried out with preset rules, obtains third feature Gamma list;According to pre-set Gamma type and institute
It states second feature Gamma list and calculates acquisition Gamma standard value, according to the Gamma standard value and the third feature Gamma
List, which calculates, obtains Gamma look-up table, is corrected using the Gamma look-up table to the image display terminal to be corrected.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light
The various media that can store program code such as disk.
The embodiments such as device described above are only schematical, wherein the unit as illustrated by the separation member
It may or may not be physically separated, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.