Detailed description of the invention
For making the purpose of the application, technical scheme and advantage clearly understand, referring to accompanying drawing, the application scheme is described in further detail.
In order to solve problems of the prior art, the invention provides a kind of Automatic adjusument picture noise horizontal process and device.
Refer to Fig. 1, handling process schematic diagram for Automatic adjusument picture noise horizontal process provided by the invention, this Automatic adjusument picture noise horizontal process can be applicable to the display devices such as intelligent television, illustrating being applied to intelligent television, this Automatic adjusument picture noise horizontal process may comprise steps of:
Step 101, obtains continuous print multiple image, and detects the noise size of described image;
When intelligent television playing network video, obtain in currently playing Internet video continuous print multiple image as in reference pictures store to FrameBuffer (frame buffer zone), and read respectively and many groups numerical value of the multiple depositors corresponding to each frame reference picture by IC intrinsic function, the many groups numerical value obtained is calculated according to default mathematical algorithm the average noise size of described reference picture.
Specifically, after in the continuous multiple frames image that will obtain is as reference pictures store to FrameBuffer, FrameBuffer can be passed through and access corresponding multiple depositors, the numerical value of each depositor in this group depositor all characterizes the specific characteristic of present image, such as, the R of each pixel, G, B component value in image.
Assume all features needing eight depositors can get every two field picture, then when getting when many groups numerical value that the first eight depositor is corresponding, the state of present image, the i.e. total characteristic of present image can be obtained according to this many groups numerical value.Wherein, the state of present image can reflect the current state of each pixel of image.
In the embodiment of the present invention, it is assumed that store continuous print 10 two field picture in FrameBuffer, this depositor then can according to 10 groups of numerical value of these 10 different two field picture output correspondences.After obtaining these 10 groups of numerical value, these 10 groups of numerical value are calculated according to preset algorithm, for instance carrying out motion detection by frame-to-frame differences method, the difference extracting same position different frame is averaged, the average noise size of this continuous print 10 two field picture and the kinestate of image can be calculated.
Step 202, determines the noise grade of described image according to described noise size;
The embodiment of the present invention can mark off multiple noise grade previously according to the size of picture noise, such as, noise can be set to six grades, and respectively 0 grade, 1 grade, 2 grades, 3 grades, 4 grades and 5 grades, the numerical range of the noise size corresponding to each level of noise can be as shown in table 1:
Noise grade |
Noise size |
0 |
0X00、0X01 |
1 |
0X02、0X03、0X04 |
2 |
0X05、0X06、0X07 |
3 |
0X08、0X09、0X0a |
4 |
0X0b、0X0c、0X0d |
5 |
0X0e、0X0f |
Table 1
Table 1 illustrates the corresponding relation list item of each level of noise and noise magnitude numerical value scope, this table 1 is only the content illustrated for being further appreciated by the example of the present invention, is not limited in the embodiment of the present invention each level of noise and the particular content of the corresponding relation list item of each noise magnitude numerical value scope.
Step 203, obtains and the default adjustment parameter corresponding to described noise grade according to described picture noise grade;
The embodiment of the present invention is after being provided with corresponding noise grade, different adjustment parameters can also be preset for each noise grade, when noise size in order to image to be detected under current sheet Source Type arrives predetermined level, numerical value corresponding in depositor is adjusted according to corresponding adjustment parameter, ripple of making an uproar can be leached automatically when intelligent television exports video signal, and then demonstrate the picture of the pure exquisiteness of comparison.
Wherein, above-mentioned adjustment parameter includes time domain noise reduction parameter DNR ((DigitalNoiseReduction, numeral, noise reduction), spatial domain noise reduction parameters SNR (SignalNoiseReduction, signal de-noising) and sharpen the adjustment of parameter PK.It is the noise reduction process that the luminance signal to image carries out time domain specification (i.e. image interframe) that time domain noise reduction parameter DNR can include again DNR-Y and DNR-C, DNR-Y;DNR-C is the noise reduction process that the carrier chrominance signal to image carries out time domain specification.Spatial domain noise reduction parameters SNR is the noise reduction process that picture signal carries out spatial domain (namely in picture frame).
Can being configured according to multiple Adjustment principle when each noise grade arranges different adjustment parameters, the adjustment parameter that the present invention arranges correspondence with following two Adjustment principle illustrates.Such as:
1. picture noise is less
When picture noise itself is relatively low, for instance noise is 1-2 level, illustrate that current image quality is more excellent, it is not necessary to excessively regulate noise reduction parameters.So can reduce the parameter of DNR and SNR in right amount, relatively increase PK parameter, to ensure the definition of image.
2. picture noise is bigger
When picture noise is bigger, for instance noise is 4-5 level, illustrate that current image quality is poor.So can improve the parameter of DNR and SNR, relatively reduced PK parameter, preferentially ensure the clean of image background sacrificing certain definition.
The embodiment of the present invention is after being provided with corresponding noise grade, different adjustment parameters can also be preset for each noise grade, during in order to arrive predetermined level at noise image being detected, numerical value corresponding in depositor is adjusted according to corresponding adjustment parameter, ripple of making an uproar can be leached automatically when intelligent television exports video signal, and then demonstrate the picture of the pure exquisiteness of comparison.
Such as, the adjustment parameter corresponding with noise grade arranged according to above-mentioned Adjustment principle can be as shown in table 2:
Noise grade |
DNR-Y |
DNR-C |
SNR |
PK |
0 |
DY-OFF |
DC-OFF |
S-OFF |
PK-OFF |
1 |
DY1 |
DC1 |
S1 |
PK1 |
2 |
DY2 |
DC2 |
S2 |
PK2 |
3 |
DY3 |
DC3 |
S3 |
PK3 |
4 |
DY4 |
DC4 |
S4 |
PK4 |
5 |
DY5 |
DC5 |
S5 |
PK5 |
Table 2
Table 2 illustrates the adjustment parameter that each level of noise is arranged, and this table 2 is only the content illustrated for being further appreciated by the example of the present invention, is not limited in the embodiment of the present invention to adjust the particular content of parameter.
Convenient for example, the DNR-Y in table 2 is represented by DY;DNR-C is represented by DC;SNR is represented by S.Wherein, adjusting parameter DY-OFF to DY5 in table 2, adjust parameter DC-OFF to DC5, adjusting parameter S-OFF to S5 and adjusting the concrete numerical value that adjusts corresponding to parameter PK-OFF to PK5 is referred to shown in table 3, table 4, table 5 and table 6:
Register identification |
DY-OFF |
DY1 |
DY2 |
DY3 |
DY4 |
DY5 |
reg_band1 |
0x00 |
0x04 |
0x04 |
0x04 |
0x04 |
0x04 |
reg_band2 |
0x00 |
0x01 |
0x01 |
0x01 |
0x01 |
0x01 |
reg_band3 |
0x00 |
0x01 |
0x01 |
0x01 |
0x01 |
0x01 |
reg_band4 |
0x00 |
0x00 |
0x00 |
0x00 |
0x00 |
0x00 |
reg_band5 |
0x00 |
0x00 |
0x00 |
0x00 |
0x00 |
0x00 |
reg_band6 |
0x00 |
0x04 |
0x04 |
0x04 |
0x04 |
0x08 |
reg_band7 |
0x00 |
0x02 |
0x02 |
0x03 |
0x03 |
0x00 |
reg_band8 |
0x00 |
0x20 |
0x20 |
0x20 |
0x20 |
0x20 |
Table 3
Register identification |
DC-OFF |
DC1 |
DC2 |
DC3 |
DC4 |
DC5 |
reg_band1 |
0x08 |
0x08 |
0x08 |
0x08 |
0x08 |
0x08 |
reg_band2 |
0x02 |
0x02 |
0x02 |
0x02 |
0x02 |
0x02 |
reg_band3 |
0x02 |
0x02 |
0x02 |
0x02 |
0x02 |
0x02 |
reg_band4 |
0x00 |
0x00 |
0x00 |
0x00 |
0x00 |
0x00 |
reg_band5 |
0x00 |
0x00 |
0x00 |
0x00 |
0x00 |
0x00 |
reg_band6 |
0x20 |
0x20 |
0x20 |
0x20 |
0x40 |
0x40 |
reg_band7 |
0x08 |
0x08 |
0x0C |
0x0C |
0x00 |
0x00 |
reg_band8 |
0x80 |
0x80 |
0x80 |
0x80 |
0x80 |
0x80 |
Table 4
Register identification |
S-OFF |
S1 |
S2 |
S3 |
S4 |
S5 |
reg_band1 |
0x00 |
0x18 |
0x18 |
0x18 |
0x18 |
0x18 |
reg_band2 |
0x00 |
0x20 |
0x20 |
0x20 |
0x20 |
0x20 |
reg_band3 |
0x00 |
0x16 |
0x16 |
0x12 |
0x16 |
0x16 |
reg_band4 |
0x00 |
0x1E |
0x1E |
0x16 |
0x16 |
0x1E |
reg_band5 |
0xCF |
0x1C |
0x1C |
0x1C |
0x1C |
0x1C |
reg_band6 |
0x69 |
0x12 |
0x12 |
0x12 |
0x12 |
0x12 |
reg_band7 |
0x24 |
0x12 |
0x12 |
0x12 |
0x12 |
0x12 |
reg_band8 |
0x01 |
0x1C |
0x1C |
0x18 |
0x18 |
0x1C |
Table 5
Register identification |
PK-OFF |
PK1 |
PK2 |
PK3 |
PK4 |
PK5 |
reg_band1 |
0x00 |
0x18 |
0x18 |
0x18 |
0x18 |
0x18 |
reg_band2 |
0x00 |
0x20 |
0x20 |
0x20 |
0x20 |
0x20 |
reg_band3 |
0x00 |
0x16 |
0x16 |
0x12 |
0x16 |
0x16 |
reg_band4 |
0x00 |
0x1E |
0x1E |
0x16 |
0x16 |
0x1E |
reg_band5 |
0x00 |
0x1C |
0x1C |
0x1C |
0x1C |
0x1C |
reg_band6 |
0x00 |
0x12 |
0x12 |
0x12 |
0x12 |
0x12 |
reg_band7 |
0x00 |
0x12 |
0x12 |
0x12 |
0x12 |
0x12 |
reg_band8 |
0x00 |
0x1C |
0x1C |
0x18 |
0x18 |
0x1C |
Table 6
Table 3 illustrates in table 2 and specifically to adjust numerical value corresponding to each DY;Table 4 illustrate each DC in table 2 corresponding specifically adjust numerical value;Table 5 illustrate each S in table 2 corresponding specifically adjust numerical value;Table 6 illustrate each PK in table 2 corresponding specifically adjust numerical value.Above-mentioned list item is only the content illustrated for being further appreciated by the example of the present invention, be not limited in the embodiment of the present invention adjust parameter DY, DC, S and PK particular content.In implementing, developer can arrange above-mentioned every adjustment numerical value according to test result is self-defined, and the present invention is unrestricted to this.Wherein, the register identification shown in table 3-table 6 is the mark of above-mentioned multiple depositor, with each depositor corresponding to the adjustment numerical value of DY, DC, S and PK of row, adjust only for the numerical value in corresponding depositor.
Step 204, arranges the parameter of described image, so that described image is carried out noise reduction process according to described default adjustment parameter.
When image being carried out noise reduction process according to above-mentioned default adjustment parameter, according to the noise grade detected, adjustment parameter corresponding in look-up table 2, again the numerical value that adjusts corresponding with adjusting parameter in table 3, table 4, table 5, table 6 is write in each corresponding depositor, making the video signal that intelligent television exports is the image after using every adjustment parameter to carry out noise reduction process, and then makes intelligent television export the image of relatively excellent image quality.
For example, calculating in one group of numerical value according to the computational methods of step 201, the appointment numerical value of the average noise size characterizing present image is " 0X08 ", then according to table 1, it is judged that the noise grade of present image is 3 grades.At this point it is possible to DNR-Y is adjusted to DY3 according to table 2, then needs the numerical value of eight depositors corresponding with image shown in table 3,0x04 is write the appointment position of depositor reg_band1;0x01 is write the appointment position of depositor reg_band2;0x01 is write the appointment position of depositor reg_band3;0x00 is write the appointment position of depositor reg_band4;0x00 is write the appointment position of depositor reg_band5;0x04 is write the appointment position of depositor reg_band6;0x03 is write the appointment position of depositor reg_band7;0x20 is write the appointment position of depositor reg_band8.And correspondingly, by the appointment position of each depositor corresponding for numerical value write corresponding with table 4, table 5, table 6 to DC3, S3 and PK3.When adjusting DC3, S3 and PK3, it is possible to the process with above-mentioned adjustment DY3 is consistent, will not enumerate at this.
By the operation to these depositors, application program just can control intelligent television and demonstrate the video image of respective quality, even if user is when the film source that the intelligent television broadcasting noise grade using screen sizes is higher, the video image of comparative good-quality still can be appreciated.
Further, the embodiment of the present invention can also respectively according to current slice Source Type in conjunction with noise grade and image kinestate in conjunction with noise grade regulate picture noise level.Namely above-mentioned and corresponding to noise grade default adjustment parameter can also include the default adjustment parameter under different Source Types corresponding to noise grade, or default adjustment parameter corresponding to noise grade under different motion state.Below only to illustrate in conjunction with noise grade adjustment picture noise level according to current slice Source Type, when regulating picture noise level according to present image kinestate in conjunction with noise grade, it is referred to regulate in conjunction with noise grade according to current slice Source Type the idiographic flow of picture noise level, will not enumerate at this.
Specifically, when regulating picture noise level according to current slice Source Type in conjunction with noise grade, the sheet Source Type of described image is first obtained.Wherein, the definition that sheet Source Type is the currently played film source of intelligent television of this image, can be such as UHD (UltraHighDefinition, ultra high-definition), FHD (FullHighDefinition, full HD), the polytype such as SD (StandardDefinition, SD).The resolution that various Source Types are corresponding different respectively again, for instance, the resolution of UHD is 3840*2160;The resolution of FHD is 1920*1080;The resolution of SD is 1280*720 and following.The present invention can according to the sheet Source Type transferring this Internet video in currently playing Internet video feature, and namely the sheet Source Type of this Internet video is the sheet Source Type of currently playing image.
After the sheet Source Type obtaining present image, can arranging the adjustment parameter of correspondence according to different sheet Source Types, this Adjustment principle is:
1. a Source Type is UHD
Owing to sheet Source Type is that image definition during UHD is significantly high, correspondingly noise level is relatively low, so need not by the PK parameter of image, and DNR, SNR parameter is heightened, and can ensure the definition of image.
2. a Source Type is FHD
Owing to sheet Source Type is that image definition during UHD is higher, it is possible to heighten the PK parameter of image and DNR, SNR parameter in right amount in conjunction with current noise grade.
3. a Source Type is SD
Owing to sheet Source Type is that image definition during HD is relatively low, it is possible to improve PK parameter, and improve DNR and SNR parameter in conjunction with current noise grade.
Such as, the adjustment parameter arranged according to above-mentioned multiple Adjustment principle can be as shown in table 2:
Table 7
The adjustment parameter that table 7 is arranged when illustrating and each level of noise combines different sheet Source Type, this table 7 is only the content illustrated for being further appreciated by the example of the present invention, is not limited in the embodiment of the present invention to adjust the particular content of parameter.
When image being carried out noise reduction process according to current slice Source Type and noise grade, it is referred to the adjustment parameter shown in table 7, and the corresponding numerical value that adjusts revises the numerical value in corresponding depositor in associative list 3, table 4, table 5, table 6, its concrete handling process is referred to the above-mentioned flow process that image carries out noise reduction process according to noise grade, and the present invention does not repeat them here.
The present invention is by the operation to these depositors, application program just can control intelligent television and demonstrate the video image of respective quality, even if user is when the film source that the intelligent television broadcasting definition using screen sizes is relatively low, the video image of comparative good-quality still can be appreciated.
Further, the embodiment of the present invention in order to the adjustment result making noise level more accurate, it is also possible to regulating on the basis of picture noise level according to current slice Source Type and noise grade, the kinestate of combining image realizes the adjustment to picture noise level.
Specifically, when the present invention can calculate the noise size of image according to step 201, the numerical value of specifying in one group of calculated numerical value judges the kinestate of present image.After calculating the kinestate of image, it is judged that the kinestate grade of this kinestate, and regulate the noise level of image further according to current sport rank, sheet Source Type and noise grade.
The kinestate that the present invention can be image arranges different sport ranks, for instance the embodiment of the present invention can arrange 3 state grades, respectively resting state, conventional stationary state and quick resting state.Such as, when the image content in continuous multiple frames image is completely the same, it is possible to illustrate that present image is resting state;Continuous multiple frames image is two personages talking, when movement range is less, it is possible to illustrate that present image is ordinary movement state;Such as play various matches video, the image change in continuous multiple frames image bigger or entirely different time, it is possible to illustrate that present image is rapid movement state.
Table 8
Convenient for example, table 8 illustrate only when being SD to sheet Source Type, the adjustment parameter arranged during in conjunction with different motion state and each level of noise, this table 8 is only the content illustrated for being further appreciated by the example of the present invention, the particular content being not limited in the embodiment of the present invention above-mentioned list item.To sheet Source Type be adjustment parameter during HSD and FSD can with SD time the same, developer determine according to test result, to this, the present invention all limits without concrete.
When regulating the noise level of image according to current sport rank, sheet Source Type and noise grade, it is referred to the adjustment parameter shown in above-mentioned table 8, and the corresponding numerical value that adjusts revises the numerical value in corresponding depositor in associative list 3, table 4, table 5, table 6, thus realizing the noise level of image is regulated more accurately.Wherein, being referred to the above-mentioned concrete grammar that image carries out noise reduction process according to noise grade according to the handling process of the noise level of current sport rank, sheet Source Type and noise grade adjustment image, the present invention does not repeat them here.
Further, since rate of image change is very fast in the video play of intelligent television, therefore the present invention can detect, regulate the noise level of image continuously, during to guarantee to change greatly between multiple image, regulates the noise level of image timely and effectively.Certainly, the present invention can also periodic detection regulate the noise level of image, but the interval time every time detecting noise level need to be set to the shorter time, the situation excessive to avoid the occurrence of image adjustment deviation.
As can be seen here, the present invention is by detecting continuous print multiple image, determine the noise grade of image, and obtain the sheet Source Type of image, according to the noise level regulating described image with the default adjustment parameter corresponding to sheet Source Type and noise grade, and then play out the video image of comparatively high-quality for user.
The present invention also provides for a kind of Automatic adjusument picture noise horizontal device, Fig. 2 is the structural representation of this Automatic adjusument picture noise horizontal device, this device can apply to the display devices such as intelligent television, and this Automatic adjusument picture noise horizontal device may include that
Detection unit 201, is used for obtaining continuous print multiple image, and detects the noise size of described image;
Determine unit 202, for determining the noise grade of described image according to described noise size;
Acquiring unit 203, for obtaining and the default adjustment parameter corresponding to described noise grade according to described picture noise grade;
Regulon 204, for arranging the parameter of described image, so that described image is carried out noise reduction process according to described default adjustment parameter.
Further, described detection unit 201 specifically may be used for, and obtains the numerical value of multiple depositors corresponding to each two field picture in described continuous print multiple image respectively;The all numerical value obtained are calculated according to preset algorithm the average noise level of described image.
Further, described detection unit 201 can be also used for detecting the kinestate of described continuous print multiple image;Described regulon 204 can be also used for according to the noise size regulating described image with the default adjustment parameter corresponding to described Source Type, noise grade and kinestate.
Further, the default adjustment parameter corresponding to described and described noise grade can include the default adjustment parameter under different Source Types corresponding to noise grade;Or, default adjustment parameter corresponding to noise grade under different motion state.
Further, described detection unit 201 can be also used for detecting the kinestate of described continuous print multiple image;Described acquiring unit 203 can be also used for obtaining and corresponding default adjustment parameter according to described noise grade and kinestate;Described regulon 204 can be also used for arranging the parameter of described image according to described default adjustment parameter, so that described image is carried out noise reduction process.
Further, described default adjustment parameter includes time domain noise reduction parameter DNR, spatial domain noise reduction parameters SNR and sharpens at least one of parameter.
It addition, the present invention be applied to the Automatic adjusument picture noise horizontal device of display device can be consistent with the flow process of above-mentioned Automatic adjusument picture noise horizontal process in concrete handling process, do not repeat them here.
Said apparatus can be realized by software, can also be realized by hardware, convenient for example, the hardware structure schematic diagram of Automatic adjusument picture noise horizontal device place of the present invention display device is all referred to shown in Fig. 3, its basic hardware environment includes CPU, forwarding chip, memorizer and other hardware, wherein memory device includes machine readable instructions, and CPU reads and performs machine readable instructions and performs the function of each unit in Fig. 2.
Can be seen that from the embodiment of any of the above method and apparatus, the present invention is by detecting continuous print multiple image, determine the noise grade of image, according to the parameter arranging described image with the default adjustment parameter corresponding to described noise grade, described image to be carried out noise reduction process, and then play out the image of comparatively high-quality.Additionally, described image can also be carried out noise reduction process with sheet Source Type or image motion state by noise grade by the present invention respectively, even if user is when using the intelligent television viewing Internet video of large-size screen, it is also possible to play out the video image of comparative good-quality for user.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention.