WO2017206368A1 - 高动态范围画面切换方法及装置 - Google Patents
高动态范围画面切换方法及装置 Download PDFInfo
- Publication number
- WO2017206368A1 WO2017206368A1 PCT/CN2016/095794 CN2016095794W WO2017206368A1 WO 2017206368 A1 WO2017206368 A1 WO 2017206368A1 CN 2016095794 W CN2016095794 W CN 2016095794W WO 2017206368 A1 WO2017206368 A1 WO 2017206368A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- gain value
- frame
- brightness
- picture
- luminance
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 239000000872 buffer Substances 0.000 claims description 25
- 230000002238 attenuated effect Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 description 16
- 230000008859 change Effects 0.000 description 9
- 241000023320 Luma <angiosperm> Species 0.000 description 8
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 8
- 230000001960 triggered effect Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 230000009467 reduction Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000002708 enhancing effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
- H04N5/20—Circuitry for controlling amplitude response
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/57—Control of contrast or brightness
Definitions
- the present invention relates to the field of television technology, and in particular, to a high dynamic range picture switching method and apparatus.
- High dynamic range image (High-Dynamic Range, HDR for short, provides more dynamic range and image detail than normal images, low dynamic range images based on different exposure times (Low-Dynamic Range, referred to as LDR), and use the LDR image corresponding to the best detail for each exposure time to synthesize the final HDR image, which can better reflect the visual effect in the real environment.
- LDR Low-Dynamic Range
- HDR programs have become popular, but not all programs are HDR programs. Therefore, there is bound to be a switch between HDR programs and non-HDR programs during the playback of video programs.
- the HDR program is switched to a non-HDR program, since the picture of the HDR program is brighter than the picture of the non-HDR program, the picture flickers.
- the main object of the present invention is to provide a method for switching a high dynamic range picture, which aims to solve the problem that when the HDR program is switched to a non-HDR program, the picture flickers.
- the present invention provides a high dynamic range picture switching method, where the high dynamic range picture switching method includes the following steps:
- the adjusting the brightness in the second preset number of frame images in the target switching video according to the average brightness gain value of the picture of any one frame and the average brightness gain value of the first frame picture in the target switching video include:
- the luminance gain values of the regions are subjected to luminance enhancement processing and luminance attenuation processing, respectively.
- the average brightness gain value according to the any one frame picture and the average brightness gain value of the first frame picture in the target switching video are in the second preset number of frame pictures.
- the method before the step of attenuating the brightness gain values of the brightness high pixel area and the darkness high pixel area in the obtained last frame picture to generate a first preset number of frame pictures, the method further includes :
- a luminance high pixel region and a darkness high pixel region in the arbitrary one frame picture are determined.
- the brightness gain value includes a red gain value, a green gain value, and a blue gain value
- the determining the brightness high pixel area and the darkness high pixel area in the last frame picture comprises:
- the any one of the frames is preferably the last frame in the high dynamic range picture in the buffer.
- the present invention further provides a dynamic range screen switching apparatus, where the high dynamic range screen switching apparatus includes:
- An acquiring module configured to acquire any one of the high dynamic range pictures in the buffer area when receiving the high dynamic range screen switching instruction
- a generating module configured to perform brightness attenuation processing on the brightness gain value of the high luminance pixel region in the acquired one frame picture, and brightness gain value of the dark high pixel area in the acquired one frame picture Performing brightness enhancement processing to generate a first preset number of frame pictures;
- an adjusting module configured to adjust, according to the average brightness gain value of the picture of any one frame and the average brightness gain value of the first frame picture in the target switching video, the brightness area in the second preset number of frame pictures in the target switching video And a luminance gain value of the darkness region, wherein the luminance region is a region corresponding to the luminance high pixel region, and the darkness region is a region corresponding to the darkness high pixel region;
- a playing module configured to play the first preset number of frame pictures in sequence, and play the second preset number of frame pictures in sequence after the first preset number of frame pictures are played.
- the adjusting module is further configured to: according to the average brightness gain value of the any frame picture and the smaller value of the average brightness gain value of the first frame picture in the target switching video, the second pre- It is assumed that the luminance gain values of the luminance region and the darkness region in the number of frame pictures are subjected to luminance enhancement processing and luminance attenuation processing, respectively.
- the adjusting module is further configured to use, as the first, a maximum brightness gain value in a luminance high pixel area of a last frame picture in the first preset number of frame pictures. a maximum brightness gain value of a luminance area of the first frame picture in the second preset number of frame pictures, and adjusting a brightness gain value of the brightness area of the first frame picture according to the maximum brightness gain value of the brightness area; and a minimum brightness gain value in the darkness high pixel area of the last frame picture in the first preset number of frame pictures and the smaller value as the first frame in the second preset number of frame pictures a minimum brightness gain value of the darkness area of the picture, and adjusting a brightness gain value of the darkness area of the first frame picture according to the minimum brightness gain value of the darkness area.
- the brightness gain value includes a red gain value, a green gain value, and a blue gain value
- the high dynamic range picture switching device further includes:
- a determining module configured to determine a luminance high pixel region and a darkness high pixel region in the any one of the frame images.
- the bright and dark area determining module includes:
- a first acquiring unit configured to obtain, in the frame of the arbitrary frame, a red gain value, a green gain value, and a blue gain value are greater than a first preset value, and a difference between a brightness gain value and an adjacent pixel point is in a first a pixel within a predetermined range;
- a first determining unit configured to use the region where the acquired pixel is located as a high luminance pixel region
- a second acquiring unit configured to obtain, in the frame of any one of the frames, a red gain value, a green gain value, and a brightness gain value are smaller than a second preset value, and a difference between a brightness gain value and an adjacent pixel point is in a second a pixel within a preset range;
- the any one of the frames is preferably the last frame in the high dynamic range picture in the buffer.
- the method and device for switching a high dynamic range picture proposed by the present invention performs brightness reduction processing on a high luminance pixel region in a frame of any frame in a buffer area and brightness gain value in a dark high pixel region when performing screen switching Enhancing processing to generate a first preset number of frame pictures, and adjusting a second pre-target in the target switching video according to an average brightness gain value of the picture of the arbitrary frame and an average brightness gain value of the first frame picture in the target switching video Setting a brightness gain value of the number of frame pictures such that the difference between the brightness values of the first predetermined number of frame pictures and the second predetermined number of frame pictures is small, and then playing the first preset number of frame pictures in sequence And when the second preset number of frame images are used, the brightness change of the television screen is ensured to be small, and the screen does not flicker.
- FIG. 1 is a schematic flow chart of a first embodiment of a high dynamic range screen switching method according to the present invention
- FIG. 2 is a schematic flow chart of a second embodiment of a high dynamic range screen switching method according to the present invention.
- FIG. 3 is a schematic flowchart diagram of a third embodiment of a high dynamic range screen switching method according to the present invention.
- FIG. 4 is a schematic flow chart showing the steps of determining a high luminance pixel region and a dark luminance high pixel region in the last frame picture in the fourth embodiment of the high dynamic range picture switching method according to the present invention.
- the present invention provides a high dynamic range picture switching method.
- FIG. 1 is a schematic flowchart diagram of a first embodiment of a high dynamic range screen switching method according to the present invention.
- the high dynamic range screen switching method includes:
- the television system When receiving the source HDR program content, the television system buffers the video frame of the HDR program into the buffer area. Therefore, when receiving the high dynamic range screen switching instruction, the system receives the switching of the HDR program to non-HDR.
- any one of the high dynamic range pictures may be acquired from the buffer area, and the arbitrary one frame picture is preferably the last frame picture in the high dynamic range picture in the buffer area.
- the high dynamic range screen switching command may be triggered by a remote controller of the television, or may be triggered by a button panel of the television, or triggered by a virtual button of the television, and is not limited in this embodiment. .
- Step S20 performing brightness attenuation processing on the obtained luminance gain value of the luminance high pixel region in the arbitrary frame picture, and performing brightness on the obtained luminance gain value of the dark high pixel region in the arbitrary one frame picture. Enhancing processing to generate a first predetermined number of frame pictures;
- the luminance high pixel area and the darkness high pixel area exist in the high dynamic range picture, and the brightness gain value of the brightness high pixel area and the darkness high pixel area is higher than the normal picture, the brightness gain value in the high brightness pixel area The brightness gain value is larger, and the darkness high pixel area has a smaller brightness gain value. Therefore, when any one of the high dynamic range pictures is acquired, the arbitrary frame picture is exemplified by the last frame picture.
- the brightness gain values of the brightness high pixel area and the darkness high pixel area of the last frame picture may be correspondingly processed, specifically And performing brightness intensity reduction processing on the brightness gain value of the high brightness pixel area, performing brightness enhancement processing on the brightness gain value of the darkness high pixel area to generate a first preset number of frame pictures, and A predetermined number of frame pictures are buffered pictures when the HDR program is switched to a non-HDR program, so that when the HDR program is switched to a non-HDR program, the brightness change is small.
- the attenuation processing may be a proportional attenuation processing, an equalization attenuation processing, or the like.
- the enhancement processing may be a proportional enhancement processing, an equalization enhancement processing, or the like.
- the first preset number is preferably half of the video frame rate. For example, if the video frame rate is 50 Hz, the first preset number is 25; and the video frame rate is 60 Hz, the The first preset number is 30.
- the first preset number is 30, for example, when the frame picture is processed, the frame picture needs to generate 30 frames, and when the first preset number of frame pictures are generated, The luminance gain value of each pixel in the luminance high pixel region and the darkness high pixel region of the last frame picture is attenuated and enhanced.
- the attenuation processing is equal attenuation processing.
- the enhancement processing is an example of the equalization enhancement processing. The process of processing the luminance high pixel region and the darkness high pixel region of the arbitrary frame picture is as follows:
- Ld_RGBGain (x1) 230 / / a frame of HDR picture appears the first brightness brightness gain value 230;
- Ld_RGBGain (x2) 229/ / one frame HDR picture appears the second brightness brightness gain value 229;
- Ld _RGBGain (xn) 210 / / one frame HDR picture appears the nth brightness brightness gain value 210;
- An_RGBGain(x1) 30//The first darkness brightness gain value 30 appears in one frame HDR picture;
- An_RGBGain(x2) 29//a frame of HDR picture appears the second darkness brightness gain value 29;
- An_RGBGain(xn) 10//The nd picture of the HDR picture shows the nth darkness brightness gain value of 10;
- the brightness may be The high pixel area and the darkness high pixel area respectively set a brightness gain minimum value and a brightness maximum value, and when the brightness gain value of each pixel point in the brightness high pixel area is attenuated, if the pixel point to be adjusted is When the brightness gain value is less than the set brightness minimum value, the brightness gain value of the pixel point does not need to be adjusted, that is, the color gain value of the pixel point is kept unchanged; when each pixel in the darkness high pixel area is When the brightness gain value of the point is enhanced, if the brightness gain value of the pixel to be adjusted is greater than the set brightness maximum value, the brightness gain value of the pixel point does not need to be adjusted, that is, the color gain of the pixel point is maintained. The value does not change.
- Step S30 adjusting the brightness region and the darkness in the second preset number of frame images in the target switching video according to the average brightness gain value of the picture of any one frame and the average brightness gain value of the first frame picture in the target switching video.
- a luminance gain value of the degree region wherein the luminance region is a region corresponding to the luminance high pixel region, and the darkness region is a region corresponding to the darkness high pixel region;
- the target switching video is a non-HDR video program to be played, and after receiving the content of the target switching video, the television system also caches the video frame of the target video into the buffer area, and the television system detects that the video system has been detected. After the first dynamic number of frames of the frame is generated, the luminance gain value of the frame after the HDR program and the non-HDR program is switched is not changed too much. Further, the target switching can be performed by adjusting the target.
- a luminance gain value of a luminance region and a darkness region of a second preset number of frame pictures in the video and the second preset number of frame pictures are also used as a buffer when switching the HDR program to a non-HDR program a picture, wherein the luminance area is an area corresponding to the high luminance pixel area, and the darkness area is an area corresponding to the darkness high pixel area.
- the brightness region in the second preset number of frame images in the target switching video may be adjusted according to the average brightness gain value of the frame of any one frame and the average brightness gain value of the first frame picture in the target switching video. And the brightness gain value of the darkness area.
- the average luminance gain value of the picture of any one of the frames and an average brightness increase of the first frame picture in the target switching video is used as the basis for adjusting the brightness gain value of the brightness area and the darkness area in the second preset number of frame pictures in the adjustment target switching video.
- the larger value between the two may be used as a basis for adjusting the brightness gain value of the brightness area and the darkness area in the second preset number of frame pictures in the adjustment target.
- step S40 the first preset number of frame pictures are sequentially played, and after the first preset number of frame pictures are played, the second preset number of frame pictures are sequentially played.
- the electric system After switching the HDR program to the non-HDR program, the electric system will play the first preset number of frame pictures in sequence, and play the second preset in sequence after the first preset number of frame pictures are played.
- the frame switching video may be played other than the second preset number of frame pictures. Since the brightness gain values of the first preset number of frame pictures and the second preset number of frame pictures have been adjusted correspondingly, the brightness gain values of adjacent video frames do not change much, so After switching the HDR program to a non-HDR program, it will not cause the picture to flicker.
- the brightness high-pixel area in any one frame of the buffer area is subjected to brightness attenuation processing and the brightness gain value of the darkness high pixel area is brightness-enhanced to generate a first preset number of frames.
- adjusting a brightness gain value of the second preset number of frame pictures in the target switching video according to the average brightness gain value of the picture of any one frame and the average brightness gain value of the first frame picture in the target switching video so that The first preset number of frame pictures and the second preset number of frame pictures have small difference in brightness gain values, and the first preset number of frame pictures and the second preset number of frame pictures are sequentially played.
- the brightness of the TV screen is changed little, it will not cause the picture to flicker.
- the step S30 includes:
- Step S31 according to the average brightness gain value of the picture of any one frame and the smaller value of the average brightness gain value of the first frame picture in the target switching video, the brightness area in the second preset number of frame pictures.
- the luminance gain values of the darkness region and the darkness region are respectively subjected to luminance enhancement processing and luminance attenuation processing.
- the average brightness gain value of the picture of the arbitrary frame and the average brightness of the first frame picture of the target switching picture may be determined. And performing luminance enhancement processing and luminance attenuation processing on the luminance gain values of the luminance region and the darkness region in the second preset number of frame pictures according to the smaller value.
- the smaller value is used as a minimum luma gain value in the luma region in the two preset number of frame pictures, and a maximum luma gain value in the darkness region, and then according to the minimum luma gain value pair.
- the luminance gain value of each pixel point in the luminance region is subjected to luminance enhancement processing, and luminance gain processing is performed on the luminance gain value of each pixel point in the darkness region based on the maximum luminance gain value.
- the attenuation process may also be a proportional attenuation process or an equal-difference attenuation process.
- the enhancement process may also be a proportional enhancement process or an equalization enhancement process.
- the method further includes:
- the brightness gain value of the luminance area and the darkness area of the first frame picture in the target switching video may be switched to the target switching video.
- the luminance area and the darkness area of the first frame picture are further processed.
- a maximum brightness gain value in a high luminance pixel region of a last frame of the first predetermined number of frame pictures is 250, and a darkness of a last frame picture in the first preset number of frame pictures
- the minimum brightness gain value in the high pixel area is 10, and the smaller value is 120
- the other preset frames of the second preset number may also be adjusted according to the above method, and the specific adjustment method is not described again.
- the brightness gain of the first frame picture in the second preset number of frame pictures is adjusted by using a brightness gain value of the last frame picture in the first preset number of frame pictures and the smaller value.
- the value is such that after the HDR program is switched to the non-HDR program, the brightness gain value change value of the frame picture before and after the switching is smaller, and the switching effect is better.
- the brightness gain value includes a red gain value and a green gain value.
- the blue gain value, before the S20 further includes:
- Step S50 determining a luminance high pixel region and a darkness high pixel region in the arbitrary one frame picture.
- the high luminance pixel region and the dark luminance high pixel region are sources for causing the screen to flick when the HDR program is switched to the non-HDR program, so that the high luminance pixel region and the dark high pixel region in the arbitrary one frame image can be located. And the corresponding processing is performed on the area to solve the problem of flickering of the picture, and the frame of any one of the frames is taken as an example.
- the high-brightness pixel area is an area composed of a plurality of pixel points satisfying a first preset condition in the last frame picture, and the darkness high pixel area is a plurality of the frame pictures satisfying the second pre- Set the area of the pixel points of the condition.
- the step S50 includes:
- Step S51 obtaining a red gain value, a green gain value, and a blue gain value in the frame of the arbitrary frame are greater than the first preset value, and the difference between the brightness gain values of the adjacent pixel points is in the first preset range.
- the red gain value, the green gain value, and the blue gain value of each pixel point are obtained, and then it is determined whether the three gain values of the pixel point are greater than the first preset value, the first pre-predetermined
- the value may be two-thirds of the brightness gain value, one-half size, etc., preferably two-thirds of the brightness gain value, and after all the pixels satisfying the condition are acquired, the pixels are determined.
- the first preset range is preferably [1, 4], if there is brightness of the adjacent pixel point If the difference between the gain values is within the first predetermined range, the area where the adjacent pixel points are located is used as the luminance high pixel area.
- Step S52 Obtaining, in the last frame, the red gain value, the green gain value, and the brightness gain value are all smaller than the second preset value, and the difference between the brightness gain values of the adjacent pixel points is within the second preset range.
- the second pre- The value may be one-third of the brightness gain value, one-half size, etc., preferably one-third of the brightness gain value, and after all the pixels satisfying the condition are acquired, the pixels are determined.
- the second preset range may be the same as the first preset range, or may be different if present If the difference between the brightness gain values of adjacent pixels is within the second predetermined range, the area where the adjacent pixels are located is taken as the high brightness area.
- the luminance gain value of each pixel point is obtained, and then the luminance high pixel region and the darkness high pixel region in the frame picture are determined according to the luminance gain values of the respective pixel points, so that the luminance high pixel region in the frame picture is Darkness high pixel area positioning is more accurate.
- the invention further provides a high dynamic range picture switching device.
- the high dynamic range screen switching device includes: an obtaining module 10, a generating module 20, an adjusting module 30, and a playing module 40.
- the acquiring module 10 is configured to acquire any one of the high dynamic range screens in the buffer area when receiving the high dynamic range screen switching instruction;
- the television system When receiving the source HDR program content, the television system buffers the video frame of the HDR program into the buffer area. Therefore, when receiving the high dynamic range screen switching instruction, the system receives the switching of the HDR program to non-HDR.
- any one of the high dynamic range pictures may be acquired from the buffer area, and the arbitrary one frame picture is preferably the last frame picture in the high dynamic range picture in the buffer area.
- the high dynamic range screen switching command may be triggered by a remote controller of the television, or may be triggered by a button panel of the television, or triggered by a virtual button of the television, and is not limited in this embodiment. .
- the generating module 20 is configured to perform brightness attenuation processing on the brightness gain value of the high luminance pixel region in the acquired one frame picture, and to obtain the darkness high pixel area in the acquired one frame picture
- the brightness gain value is subjected to brightness enhancement processing to generate a first preset number of frame pictures
- the luminance high pixel area and the darkness high pixel area exist in the high dynamic range picture, and the brightness gain value of the brightness high pixel area and the darkness high pixel area is higher than the normal picture, the brightness gain value in the high brightness pixel area The brightness gain value is larger, and the darkness high pixel area has a smaller brightness gain value. Therefore, when any one of the high dynamic range pictures is acquired, the arbitrary frame picture is exemplified by the last frame picture.
- the brightness gain values of the brightness high pixel area and the darkness high pixel area of the last frame picture may be correspondingly processed, specifically And performing brightness intensity reduction processing on the brightness gain value of the high brightness pixel area, performing brightness enhancement processing on the brightness gain value of the darkness high pixel area to generate a first preset number of frame pictures, and A predetermined number of frame pictures are buffered pictures when the HDR program is switched to a non-HDR program, so that when the HDR program is switched to a non-HDR program, the brightness change is small.
- the attenuation processing may be a proportional attenuation processing, an equalization attenuation processing, or the like.
- the enhancement processing may be a proportional enhancement processing, an equalization enhancement processing, or the like.
- the first preset number is preferably half of the video frame rate. For example, if the video frame rate is 50 Hz, the first preset number is 25; and the video frame rate is 60 Hz, the The first preset number is 30.
- the first preset number is 30, for example, when the frame picture is processed, the frame picture needs to generate 30 frames, and when the first preset number of frame pictures are generated, The luminance gain value of each pixel in the luminance high pixel region and the darkness high pixel region of the last frame picture is attenuated and enhanced.
- the attenuation processing is equal attenuation processing.
- the enhancement processing is an example of the equalization enhancement processing. The process of processing the luminance high pixel region and the darkness high pixel region of the arbitrary frame picture is as follows:
- Ld_RGBGain (x2) 229/ / one frame HDR picture appears the second brightness brightness gain value 229;
- Ld _RGBGain (xn) 210 / / one frame HDR picture appears the nth brightness brightness gain value 210;
- An_RGBGain(x2) 29//a frame of HDR picture appears the second darkness brightness gain value 29;
- An_RGBGain(xn) 10//The nd picture of the HDR picture shows the nth darkness brightness gain value of 10;
- the luminance high pixel region and the darkness high pixel region respectively set a luminance gain minimum value and a luminance maximum value, and when the luminance gain value of each pixel point in the luminance high pixel region is attenuated, if the pixel to be adjusted is to be adjusted.
- the brightness gain value is less than the set brightness minimum value, the brightness gain value of the pixel point does not need to be adjusted, that is, the color gain value of the pixel point is kept unchanged; when each of the darkness high pixel areas is
- the brightness gain value of the pixel is enhanced, if the brightness gain value of the pixel to be adjusted is greater than the set brightness maximum value, the brightness gain value of the pixel point does not need to be adjusted, that is, the color of the pixel point is maintained.
- the gain value does not change.
- the adjusting module 30 is configured to adjust, according to an average brightness gain value of the frame of any one frame and an average brightness gain value of the first frame picture in the target switching video, a second preset number of frame pictures in the target switching video. a luminance gain value of the luminance region and the darkness region, wherein the luminance region is a region corresponding to the luminance high pixel region, and the darkness region is a region corresponding to the darkness high pixel region;
- the target switching video is a non-HDR video program to be played, and after receiving the content of the target switching video, the television system also caches the video frame of the target video into the buffer area, and the television system detects that the video system has been detected. After the first dynamic number of frames of the frame is generated, the luminance gain value of the frame after the HDR program and the non-HDR program is switched is not changed too much. Further, the target switching can be performed by adjusting the target.
- a luminance gain value of a luminance region and a darkness region of a second preset number of frame pictures in the video and the second preset number of frame pictures are also used as a buffer when switching the HDR program to a non-HDR program a picture, wherein the luminance area is an area corresponding to the high luminance pixel area, and the darkness area is an area corresponding to the darkness high pixel area.
- the brightness in the second preset number of frame pictures in the target switching video may be adjusted according to the average brightness gain value of the picture of any one of the frames and the average brightness gain value of the first frame picture in the target switching video. The brightness gain value of the area and darkness areas.
- the average luminance gain value of the picture of any one of the frames and an average brightness increase of the first frame picture in the target switching video is used as the basis for adjusting the brightness gain value of the brightness area and the darkness area in the second preset number of frame pictures in the adjustment target switching video.
- the larger value between the two may be used as a basis for adjusting the brightness gain value of the brightness area and the darkness area in the second preset number of frame pictures in the adjustment target.
- the playing module 40 is configured to play the first preset number of frame pictures in sequence, and play the second preset number of frame pictures in sequence after the first preset number of frame pictures are played.
- the electric system After switching the HDR program to the non-HDR program, the electric system will play the first preset number of frame pictures in sequence, and play the second preset in sequence after the first preset number of frame pictures are played.
- the frame switching video may be played other than the second preset number of frame pictures. Since the brightness gain values of the first preset number of frame pictures and the second preset number of frame pictures have been adjusted correspondingly, the brightness gain values of adjacent video frames do not change much, so After switching the HDR program to a non-HDR program, it will not cause the picture to flicker.
- the brightness high-pixel area in any one frame of the buffer area is subjected to brightness attenuation processing and the brightness gain value of the darkness high pixel area is brightness-enhanced to generate a first preset number of frames.
- the adjusting module 30 is further configured to: according to the average brightness gain value of the any frame picture and the smaller value of the average brightness gain value of the first frame picture in the target switching video, the second preset The luminance gain values of the luminance region and the darkness region in the number of frame pictures are subjected to luminance enhancement processing and luminance attenuation processing, respectively.
- the luminance gain value of each pixel point in the luminance region is subjected to luminance enhancement processing, and luminance gain processing is performed on the luminance gain value of each pixel point in the darkness region based on the maximum luminance gain value.
- the attenuation process may also be a proportional attenuation process or an equal-difference attenuation process.
- the enhancement process may also be a proportional enhancement process or an equalization enhancement process.
- the adjustment module 30 is further configured to use, as the first value, a maximum brightness gain value in a luminance high pixel area of a last frame picture in the first preset number of frame pictures. a maximum brightness gain value of a luminance area of the first frame picture in the second preset number of frame pictures, and adjusting a brightness gain value of the brightness area of the first frame picture according to the maximum brightness gain value of the brightness area; and a minimum brightness gain value in the darkness high pixel area of the last frame picture in the first preset number of frame pictures and the smaller value as the first frame in the second preset number of frame pictures a minimum brightness gain value of the darkness area of the picture, and adjusting a brightness gain value of the darkness area of the first frame picture according to the minimum brightness gain value of the darkness area.
- the brightness gain value of the luminance area and the darkness area of the first frame picture in the target switching video may be switched to the target switching video.
- the luminance area and the darkness area of the first frame picture are further processed.
- a maximum brightness gain value in a high luminance pixel region of a last frame of the first predetermined number of frame pictures is 250, and a darkness of a last frame picture in the first preset number of frame pictures
- the minimum brightness gain value in the high pixel area is 10, and the smaller value is 120
- the other preset frames of the second preset number may also be adjusted according to the above method, and the specific adjustment method is not described again.
- the brightness gain of the first frame picture in the second preset number of frame pictures is adjusted by using a brightness gain value of the last frame picture in the first preset number of frame pictures and the smaller value.
- the value is such that after the HDR program is switched to the non-HDR program, the brightness gain value change value of the frame picture before and after the switching is smaller, and the switching effect is better.
- the high dynamic range screen switching device further includes: a determining module 50.
- the determining module 40 is configured to determine a luminance high pixel region and a darkness high pixel region in the frame of any one of the frames.
- the high luminance pixel region and the dark luminance high pixel region are sources for causing the screen to flick when the HDR program is switched to the non-HDR program, so that the high luminance pixel region and the dark high pixel region in the arbitrary one frame image can be located. And the corresponding processing is performed on the area to solve the problem of flickering of the picture, and the frame of any one of the frames is taken as an example.
- the high-brightness pixel area is an area composed of a plurality of pixel points satisfying a first preset condition in the last frame picture, and the darkness high pixel area is a plurality of the frame pictures satisfying the second pre- Set the area of the pixel points of the condition.
- the determining module 50 includes: a first acquiring unit 51, a first determining unit 52, a second obtaining unit 53, and a second determining unit 54.
- the first obtaining unit 51 is configured to acquire, in the frame of any one of the frames, a red gain value, a green gain value, and a blue gain value that are greater than a first preset value, and the brightness gain value of the adjacent pixel point is a pixel point that is within a first predetermined range;
- the first determining unit 52 is configured to use the region where the acquired pixel point is located as a high luminance pixel region;
- the red gain value, the green gain value, and the blue gain value of each pixel point are obtained, and then it is determined whether the three gain values of the pixel point are greater than the first preset value, the first pre-predetermined
- the value is preferably two-thirds of the brightness gain value, one-half size, etc., preferably two-thirds of the brightness gain value, and after all the pixels satisfying the condition are acquired, the pixels are determined.
- the first preset range is preferably [1, 4], if there is brightness of the adjacent pixel point If the difference between the gain values is within the first predetermined range, the area where the adjacent pixel points are located is used as the luminance high pixel area.
- the second obtaining unit 53 is configured to obtain, between the last frame frame, a red gain value, a green gain value, and a brightness gain value that are smaller than a second preset value, and the difference between the brightness gain values of adjacent pixel points a pixel point within a second predetermined range;
- the second determining unit 54 is configured to use the region where the acquired pixel is located as the dark high pixel region.
- the second pre- The value may be one-third of the brightness gain value, one-half size, etc., preferably one-third of the brightness gain value, and after all the pixels satisfying the condition are acquired, the pixels are determined.
- the second preset range may be the same as the first preset range, or may be different if present If the difference between the brightness gain values of adjacent pixels is within the second predetermined range, the area where the adjacent pixels are located is taken as the high brightness area.
- the luminance gain value of each pixel point is obtained, and then the luminance high pixel region and the darkness high pixel region in the frame picture are determined according to the luminance gain values of the respective pixel points, so that the luminance high pixel region in the frame picture is Darkness high pixel area positioning is more accurate.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- a storage medium such as ROM/RAM, disk
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Picture Signal Circuits (AREA)
- Studio Devices (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种高动态范围画面切换方法,该方法包括:在接收到高动态范围画面切换指令时,获取缓存区中的高动态范围画面中的任意一帧画面;对获取的所述任意一帧画面中的亮度高像素区域的亮度增益值进行亮度衰减处理,以及对获取的所述任意一帧画面中的暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面;调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值;依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完毕后,依次播放所述第二预设数量的帧画面。本发明还公开了一种高动态范围画面切换装置。本发明解决了在将HDR节目切换为非HDR节目时,造成画面闪动的问题。
Description
技术领域
本发明涉及电视机技术领域,尤其涉及一种高动态范围画面切换方法及装置。
背景技术
高动态范围图像(High-Dynamic
Range,简称HDR),相比普通的图像,可以提供更多的动态范围和图像细节,根据不同的曝光时间的低动态范围图像 (Low-Dynamic
Range,简称LDR),并利用每个曝光时间相对应最佳细节的LDR图像来合成最终HDR图像,能更好的反映出真实环境中的视觉效果。
随着HDR技术的发展,HDR节目开始流行,然而也并不是所有的节目都是HDR节目,因此,在视频节目的播放过程中势必存在HDR节目与非HDR节目的切换。然而在将HDR节目切换为非HDR节目时,由于HDR节目的画面比非HDR节目的画面更加亮丽,会造成画面闪动。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。
发明内容
本发明的主要目的在于提供一种高动态范围画面的切换方法,旨在解决在将HDR节目切换为非HDR节目时,会造成画面闪动。
为实现上述目的,本发明提供的一种所述高动态范围画面切换方法,所述高动态范围画面切换方法包括以下步骤:
在接收到高动态范围画面切换指令时,获取缓存区中的高动态范围画面中的任意一帧画面;
对获取的所述任意一帧画面中的亮度高像素区域的亮度增益值进行亮度衰减处理,以及对获取的所述任意一帧画面中的暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面;
根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值,其中,所述亮度区域为与所述亮度高像素区域相对应的区域,所述暗度区域为与所述暗度高像素区域相对应的区域;
依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完毕后,依次播放所述第二预设数量的帧画面。
可选地,所述根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值的步骤包括:
根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理。
可选地,所述根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理的步骤之后,还包括:
将所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值与所述较小值的平均值作为所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值,并根据所述亮度区域的最大亮度增益值调整所述第一帧画面的亮度区域的亮度增益值;以及
将所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值与所述较小值的平均值作为所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值,并根据所述暗度区域的最小亮度增益值调整所述第一帧画面的暗度区域的亮度增益值。
可选地,所述将获取的所述最后一帧画面中的亮度高像素区域和暗度高像素区域的亮度增益值进行等比衰减产生第一预设数量的帧画面的步骤之前,还包括:
确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
可选地,所述亮度增益值包括红色增益值、绿色增益值及蓝色增益值,所述确定所述最后一帧画面中的亮度高像素区域和暗度高像素区域的步骤包括:
获取所述任意一帧画面中红色增益值、绿色增益值及蓝色增益值都大于第一预设值,且与相邻的像素点的亮度增益值之差在第一预设范围内的像素点,并将获取的像素点所在的区域作为亮度高像素区域;
获取所述任意一帧画面中红色增益值、绿色增益值及亮度增益值都小于第二预设值,且与相邻的像素点的亮度增益值之差在第二预设范围内的像素点,并将获取的像素点所在的区域作为暗度高像素区域。
可选地,所述任意一帧画面优选为缓存区中高动态范围画面中的最后一帧画面。
此外,为实现上述目的,本发明还提供一种动态范围画面切换装置,所述高动态范围画面切换装置包括:
获取模块,用于在接收到高动态范围画面切换指令时,获取缓存区中的高动态范围画面中的任意一帧画面;
产生模块,用于对获取的所述任意一帧画面中的亮度高像素区域的亮度增益值进行亮度衰减处理,以及对获取的所述任意一帧画面中的暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面;
调整模块,用于根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值,其中,所述亮度区域为与所述亮度高像素区域相对应的区域,所述暗度区域为与所述暗度高像素区域相对应的区域;
播放模块,用于依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完毕后,依次播放所述第二预设数量的帧画面。
可选地,所述调整模块,还用于根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理。
可选地,所述调整模块,还用于将所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值与所述较小值作为所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值,并根据所述亮度区域的最大亮度增益值调整所述第一帧画面的亮度区域的亮度增益值;以及将所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值与所述较小值作为所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值,并根据所述暗度区域的最小亮度增益值调整所述第一帧画面的暗度区域的亮度增益值。
可选地,所述亮度增益值包括红色增益值、绿色增益值及蓝色增益值,所述高动态范围画面切换装置还包括:
确定模块,用于确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
可选地,所述亮暗区域确定模块包括:
第一获取单元,用于获取所述任意一帧画面中红色增益值、绿色增益值及蓝色增益值都大于第一预设值,且与相邻的像素点的亮度增益值之差在第一预设范围内的像素点;
第一确定单元,用于将获取的像素点所在的区域作为亮度高像素区域;
第二获取单元,用于获取所述任意一帧画面中红色增益值、绿色增益值及亮度增益值都小于第二预设值,且与相邻的像素点的亮度增益值之差在第二预设范围内的像素点;
第二确定单元,用于将获取的像素点所在的区域作为暗度高像素区域。
可选地,所述任意一帧画面优选为缓存区中高动态范围画面中的最后一帧画面。
本发明提出的高动态范围画面的切换方法及装置,在进行画面切换时,将缓存区中任意一帧画面中的亮度高像素区域进行亮度衰减处理和暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面,并根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面的亮度增益值,使得第一预设数量的帧画面以及第二预设数量的帧画面的亮度增益值差别较小,则在依次播放所述第一预设数量的帧画面和所述第二预设数量的帧画面时,保证电视机画面的亮度变化较小,不会造成画面闪动。
附图说明
图1为本发明高动态范围画面切换方法的第一实施例的流程示意图;
图2为本发明高动态范围画面切换方法的第二实施例的流程示意图;
图3为本发明高动态范围画面切换方法的第三实施例的流程示意图;
图4为本发明高动态范围画面切换方法的第四实施例中确定所述最后一帧画面中的亮度高像素区域和暗度高像素区域的步骤细化流程示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
基于上述问题,本发明提供一种高动态范围画面切换方法。
参照图1,图1为本发明高动态范围画面切换方法的第一实施例的流程示意图。
在本实施例中,所述高动态范围画面切换方法包括:
步骤S10,在接收到高动态范围画面切换指令时,获取缓存区中的高动态范围画面中的任意一帧画面;
电视系统在接收到源端HDR节目内容时,会将HDR节目的视频帧缓存到缓存区中,因此,在接收到高动态范围画面切换指令时,即接收到将所述HDR节目切换为非HDR节目时可以从所述缓存区中获取高动态范围画面中的任意一帧画面,所述任意一帧画面优选为缓存区中高动态范围画面中的最后一帧画面。在本实施例中,所述高动态范围画面切换指令可以通过电视的遥控器触发,也可以通过电视的按键面板触发,或者通过所述电视的虚拟按键触发等,在本实施例中不做限定。
步骤S20,对获取的所述任意一帧画面中的亮度高像素区域的亮度增益值进行亮度衰减处理,以及对获取的所述任意一帧画面中的暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面;
由于高动态范围画面中存在亮度高像素区域和暗度高像素区域,且所述亮度高像素区域和暗度高像素区域的亮度增益值与普通画面相比,亮度高像素区域中的亮度增益值更大,而暗度高像素区域的亮度增益值更小,因此,在获取到所述高动态范围画面中的任意一帧画面时,所述任意一帧画面以最后一帧画面为例。为了使得在将所述HDR节目切换为非HDR节目时不造成画面闪动,可以对所述最后一帧画面的亮度高像素区域和暗度高像素区域的亮度增益值进行相应的处理,具体的,可以对所述亮度高像素区域的亮度增益值进行亮度衰减处理,对所述暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面,并将所述第一预设数量的帧画面作为所述HDR节目切换为非HDR节目时的缓冲画面,以使得所述HDR节目切换为非HDR节目时,亮度变化较小。需要说明的是,所述衰减处理可以为等比衰减处理、等差衰减处理等,同理,所述增强处理可以为等比增强处理、等差增强处理等。在本实施例中,所述第一预设数量优选为视频帧率的一半,比如,视频帧率为50HZ,则所述第一预设数量即为25;视频帧率为60HZ,则所述第一预设数量即为30。所述第一预设数量以30为例,则在对所述帧画面进行处理时需要将所述帧画面生成30帧画面,在产生第一预设数量的帧画面时,可以通过分别对所述最后一帧画面的亮度高像素区域和暗度高像素区域中的各个像素点的亮度增益值进行衰减及增强处理,在一实施例中,以所述衰减处理为等比衰减处理,所述增强处理为等比增强处理为例,对所述任意一帧画面的亮度高像素区域和暗度高像素区域进行处理的过程具体如下:
Ld_RGBGain(x1)=230//一帧HDR画面出现第一个亮度亮度增益值230;
Ld_RGBGain(x2)=229//一帧HDR画面出现第2个亮度亮度增益值229;
Ld _RGBGain(xn)=210//一帧HDR画面出现第n个亮度亮度增益值210;
Deng_Dec_RGBGain(x1)=230/2=115//等比衰减后的值115;
Deng_Dec_RGBGain(x2)=229/2=114.5//等比衰减后的值114.5;
Deng_Dec_RGBGain(xn)=210/2=105//等比衰减后的值105。
An_RGBGain(x1)=30//一帧HDR画面出现第1个暗度亮度增益值30;
An_RGBGain(x2)=29//一帧HDR画面出现第2个暗度亮度增益值29;
An_RGBGain(xn)=10//一帧HDR画面出现第n个暗度亮度增益值10;
Deng_INC_RGBGain(x1)=30*2=60//等比增强后的值60;
Deng_INC_RGBGain(x2)=29*2=58//等比增强后的值58;
Deng_INC_RGBGain(xn)=10*2=20//等比增强后的值20。
进一步地,在对所述最后一帧画面的亮度高像素区域和暗度高像素区域中的各个像素点的亮度增益值进行处理以产生第一预设数量的帧画面时,可以在所述亮度高像素区域和暗度高像素区域分别设置一个亮度增益最小值及亮度最大值,当对所述亮度高像素区域中的各个像素点的亮度增益值进行衰减处理时,若待调整的像素点的亮度增益值小于设置的亮度最小值时,则不需要对该像素点的亮度增益值进行调整,即保持该像素点的颜色增益值不变;当对所述暗度高像素区域中的各个像素点的亮度增益值进行增强处理时,若待调整的像素点的亮度增益值大于设置的亮度最大值时,则不需要对该像素点的亮度增益值进行调整,即保持该像素点的颜色增益值不变。
步骤S30,根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值,其中,所述亮度区域为与所述亮度高像素区域相对应的区域,所述暗度区域为与所述暗度高像素区域相对应的区域;
所述目标切换视频为待播放的非HDR视频节目,电视系统在接收到目标切换视频的内容后,也会将所述目标视频的视频帧缓存到缓存区中,电视系统在检测到已根据所述任意一帧的高动态范围画面产生第一预设数量的帧画面后,为了使得HDR节目与非HDR节目切换后的帧画面的亮度增益值变化不要太大,进一步地,可以通过调整目标切换视频中的第二预设数量的帧画面的亮度区域和暗度区域的亮度增益值,并将所述第二预设数量的帧画面也作为将所述HDR节目切换为非HDR节目时的缓冲画面,其中,所述亮度区域为与所述亮度高像素区域相对应的区域,所述暗度区域为与所述暗度高像素区域相对应的区域。具体的,可以根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值来调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值。比如通过计算所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增,然后比较所述任意一帧画面的平均亮度增益值与所述目标切换视频中的第一帧画面的平均亮度的大小,并将两者之间的较小值作为调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值的依据,或者也可以将两者之间的较大值作为调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值的依据。
步骤S40,依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完毕后,依次播放所述第二预设数量的帧画面。
在将HDR节目切换为非HDR节目后,电系统将依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完之后依次播放所述第二预设数量的帧画面。在所述第二预设数量的帧画面播放完毕后,可以播放所述目标切换视频除所述第二预设数量的帧画面之外的其它帧画面。由于所述第一预设数量的帧画面与所述第二预设数量的帧画面的亮度增益值已经进行了相应的调整,使得相邻的视频帧的亮度增益值变化不大,因此,在将HDR节目切换为非HDR节目后,不会造成画面的闪动。
本实施例在进行画面切换时,将缓存区中任意一帧画面中的亮度高像素区域进行亮度衰减处理和暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面,并根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面的亮度增益值,使得第一预设数量的帧画面以及第二预设数量的帧画面的亮度增益值差别较小,则在依次播放所述第一预设数量的帧画面和所述第二预设数量的帧画面时,保证电视机画面的亮度变化较小,不会造成画面闪动。
进一步地,基于上述第一实施例提出本发明高动态范围画面切换方法的第二实施例,参照图2,在本实施例中,所述步骤S30包括:
步骤S31,根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理。
在对所述第二预设数量的帧画面进行调整时,具体可以通过确定所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益中的较小值,并根据所述较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理。具体的,将所述较小值作为所述二预设数量的帧画面中的亮度区域中的最小亮度增益值,以及所述暗度区域的最大亮度增益值,然后根据该最小亮度增益值对所述亮度区域中的各个像素点的亮度增益值进行亮度增强处理,根据该最大亮度增益值对所述暗度区域中的各个像素点的亮度增益值进行亮度衰减处理。需要说明的是,所述衰减处理也可以为等比衰减处理,或者为等差衰减处理,同理,所述增强处理也可以为等比增强处理,或者等差增强处理。
进一步地,所述步骤S31之后,还包括:
将所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值与所述较小值的平均值作为所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值,并根据所述亮度区域的最大亮度增益值调整所述第一帧画面的亮度区域的亮度增益值;以及
将所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值与所述较小值的平均值作为所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值,并根据所述暗度区域的最小亮度增益值调整所述第一帧画面的暗度区域的亮度增益值。
为了获得更好的HDR节目切换为非HDR节目的切换效果,可以对目标切换视频中的第一帧画面的亮度区域和暗度区域的亮度增益值,即所述第二预设数量的帧画面中的第一帧画面的亮度区域和暗度区域做进一步处理。
假设所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值为250,所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值为10,所述较小值为120,则所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值为:(250+120)/2=185,所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值为:(10+120)/2=65。在获取到所述第一帧画面的亮度区域的最大亮度增益值及暗度区域的最小亮度增益值后,对所述第一帧画面的亮度区域及暗度区域的亮度增益值进行调整,具体的,可以根据该最大亮度增益值增强所述亮度区域中的各个像素点的亮度增益值,同时,根据该亮度增益值衰减所述暗度区域中各个像素点的亮度增益值,进一步地,所述第二预设数量的其他各帧画面也可根据上述方法进行调整,具体调整方法不再赘述。
本实施例通过所述第一预设数量的帧画面中的最后一帧画面的亮度增益值及所述较小值调整所述第二预设数量的帧画面中的第一帧画面的亮度增益值,从而使得在将HDR节目切换为非HDR节目后,切换前后的帧画面的亮度增益值变化值更小,切换效果更好。
进一步地,基于上述第一或第二实施例提出本发明高动态范围画面切换方法的第三实施例,参照图3,在本实施例中,所述亮度增益值包括红色增益值、绿色增益值及蓝色增益值,所述S20之前,还包括:
步骤S50,确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
所述亮度高像素区域和暗度高像素区是造成HDR节目切换为非HDR节目时画面闪动的源头,故可以通过定位所述任意一帧画面中的亮度高像素区域和暗度高像素区,并对该区域进行相应的处理来解决画面闪动的问题,所述任意一帧画面以最后一帧画面为例。所述亮度高像素区域为所述最后一帧画面中的多个满足第一预设条件的像素点组成的区域,所述暗度高像素区域为所述帧画面中的多个满足第二预设条件的像素点组成的区域。具体的,参照图4,所述步骤S50包括:
步骤S51,获取所述任意一帧画面中红色增益值、绿色增益值及蓝色增益值都大于第一预设值,且与相邻的像素点的亮度增益值之差在第一预设范围内的像素点,并将获取的像素点所在的区域作为亮度高像素区域;
在本实施例中,通过获取每个像素点的红色增益值、绿色增益值及蓝色增益值,然后判断该像素点的3个增益值是否都大于第一预设值,所述第一预设值可以为所述亮度增益值的三分之二大小、二分一大小等,优选为所述亮度增益值的三分之二大小,在获取到所有满足条件的像素点后,判断在这些像素点中是否存在相邻的像素点的亮度增益值之差在第一预设范围内的像素点,所述第一预设范围优选为[1,4],若存在相邻的像素点的亮度增益值之差在第一预设范围内的像素点,则将这些相邻的像素点所在的区域作为亮度高像素区域。
步骤S52,获取所述最后一帧画面中红色增益值、绿色增益值及亮度增益值都小于第二预设值,且与相邻的像素点的亮度增益值之差在第二预设范围内的像素点,并将获取的像素点所在的区域作为暗度高像素区域。
在本实施例中,通过获取每个像素点的红色增益值、绿色增益值及蓝色增益值,然后判断该像素点的3个增益值是否都小于第二预设值,所述第二预设值可以为所述亮度增益值的三分之一大小、二分一大小等,优选为所述亮度增益值的三分之一大小,在获取到所有满足条件的像素点后,判断在这些像素点中是否存在相邻的像素点的亮度增益值之差在第二预设范围内的像素点,所述第二预设范围可以与所述第一预设范围相同,也可以不同,若存在相邻的像素点的亮度增益值之差在第二预设范围内的像素点,则将这些相邻的像素点所在的区域作为亮度高像素区域。
本实施例通过获取每个像素点的亮度增益值,然后根据各个像素点的亮度增益值确定帧画面中的亮度高像素区域和暗度高像素区域,使得对帧画面中的亮度高像素区域和暗度高像素区域定位更加准确。
本发明进一步提供一种高动态范围画面切换装置。
在本实施例中,所述高动态范围画面切换装置包括:获取模块10、产生模块20、调整模块30及播放模块40。
所述获取模块10,用于在接收到高动态范围画面切换指令时,获取缓存区中的高动态范围画面中的任意一帧画面;
电视系统在接收到源端HDR节目内容时,会将HDR节目的视频帧缓存到缓存区中,因此,在接收到高动态范围画面切换指令时,即接收到将所述HDR节目切换为非HDR节目时可以从所述缓存区中获取高动态范围画面中的任意一帧画面,所述任意一帧画面优选为缓存区中高动态范围画面中的最后一帧画面。在本实施例中,所述高动态范围画面切换指令可以通过电视的遥控器触发,也可以通过电视的按键面板触发,或者通过所述电视的虚拟按键触发等,在本实施例中不做限定。
所述产生模块20,用于对获取的所述任意一帧画面中的亮度高像素区域的亮度增益值进行亮度衰减处理,以及对获取的所述任意一帧画面中的暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面;
由于高动态范围画面中存在亮度高像素区域和暗度高像素区域,且所述亮度高像素区域和暗度高像素区域的亮度增益值与普通画面相比,亮度高像素区域中的亮度增益值更大,而暗度高像素区域的亮度增益值更小,因此,在获取到所述高动态范围画面中的任意一帧画面时,所述任意一帧画面以最后一帧画面为例。为了使得在将所述HDR节目切换为非HDR节目时不造成画面闪动,可以对所述最后一帧画面的亮度高像素区域和暗度高像素区域的亮度增益值进行相应的处理,具体的,可以对所述亮度高像素区域的亮度增益值进行亮度衰减处理,对所述暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面,并将所述第一预设数量的帧画面作为所述HDR节目切换为非HDR节目时的缓冲画面,以使得所述HDR节目切换为非HDR节目时,亮度变化较小。需要说明的是,所述衰减处理可以为等比衰减处理、等差衰减处理等,同理,所述增强处理可以为等比增强处理、等差增强处理等。在本实施例中,所述第一预设数量优选为视频帧率的一半,比如,视频帧率为50HZ,则所述第一预设数量即为25;视频帧率为60HZ,则所述第一预设数量即为30。所述第一预设数量以30为例,则在对所述帧画面进行处理时需要将所述帧画面生成30帧画面,在产生第一预设数量的帧画面时,可以通过分别对所述最后一帧画面的亮度高像素区域和暗度高像素区域中的各个像素点的亮度增益值进行衰减及增强处理,在一实施例中,以所述衰减处理为等比衰减处理,所述增强处理为等比增强处理为例,对所述任意一帧画面的亮度高像素区域和暗度高像素区域进行处理的过程具体如下:
Ld_RGBGain(x1)=230//一帧HDR画面出现第一个亮度亮度增益值230;
Ld_RGBGain(x2)=229//一帧HDR画面出现第2个亮度亮度增益值229;
Ld _RGBGain(xn)=210//一帧HDR画面出现第n个亮度亮度增益值210;
Deng_Dec_RGBGain(x1)=230/2=115//等比衰减后的值115;
Deng_Dec_RGBGain(x2)=229/2=114.5//等比衰减后的值114.5;
Deng_Dec_RGBGain(xn)=210/2=105//等比衰减后的值105。
An_RGBGain(x1)=30//一帧HDR画面出现第1个暗度亮度增益值30;
An_RGBGain(x2)=29//一帧HDR画面出现第2个暗度亮度增益值29;
An_RGBGain(xn)=10//一帧HDR画面出现第n个暗度亮度增益值10;
Deng_INC_RGBGain(x1)=30*2=60//等比增强后的值60;
Deng_INC_RGBGain(x2)=29*2=58//等比增强后的值58;
Deng_INC_RGBGain(xn)=10*2=20//等比增强后的值20。
进一步地,在对所述最后一帧画面的亮度高像素区域和暗度高像素区域中的各个像素点的亮度增益值进行处理以产生第一预设数量的帧画面的时,可以在所述亮度高像素区域和暗度高像素区域分别设置一个亮度增益最小值及亮度最大值,当对所述亮度高像素区域中的各个像素点的亮度增益值进行衰减处理时,若待调整的像素点的亮度增益值小于设置的亮度最小值时,则不需要对该像素点的亮度增益值进行调整,即保持该像素点的颜色增益值不变;当对所述暗度高像素区域中的各个像素点的亮度增益值进行增强处理时,若待调整的像素点的亮度增益值大于设置的亮度最大值时,则不需要对该像素点的亮度增益值进行调整,即保持该像素点的颜色增益值不变。
所述调整模块30,用于根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值,其中,所述亮度区域为与所述亮度高像素区域相对应的区域,所述暗度区域为与所述暗度高像素区域相对应的区域;
所述目标切换视频为待播放的非HDR视频节目,电视系统在接收到目标切换视频的内容后,也会将所述目标视频的视频帧缓存到缓存区中,电视系统在检测到已根据所述任意一帧的高动态范围画面产生第一预设数量的帧画面后,为了使得HDR节目与非HDR节目切换后的帧画面的亮度增益值变化不要太大,进一步地,可以通过调整目标切换视频中的第二预设数量的帧画面的亮度区域和暗度区域的亮度增益值,并将所述第二预设数量的帧画面也作为将所述HDR节目切换为非HDR节目时的缓冲画面,其中,所述亮度区域为与所述亮度高像素区域相对应的区域,所述暗度区域为与所述暗度高像素区域相对应的区域。具体的,,可以根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值来调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值。比如通过计算所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增,然后比较所述任意一帧画面的平均亮度增益值与所述目标切换视频中的第一帧画面的平均亮度的大小,并将两者之间的较小值作为调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值的依据,或者也可以将两者之间的较大值作为调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值的依据。
所述播放模块40,用于依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完毕后,依次播放所述第二预设数量的帧画面。
在将HDR节目切换为非HDR节目后,电系统将依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完之后依次播放所述第二预设数量的帧画面。在所述第二预设数量的帧画面播放完毕后,可以播放所述目标切换视频除所述第二预设数量的帧画面之外的其它帧画面。由于所述第一预设数量的帧画面与所述第二预设数量的帧画面的亮度增益值已经进行了相应的调整,使得相邻的视频帧的亮度增益值变化不大,因此,在将HDR节目切换为非HDR节目后,不会造成画面的闪动。
本实施例在进行画面切换时,将缓存区中任意一帧画面中的亮度高像素区域进行亮度衰减处理和暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面,并根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益中的较小值调整目标切换视频中的第二预设数量的帧画面的亮度增益值,使得第一预设数量的帧画面以及第二预设数量的帧画面的亮度增益值差别较小,则在依次播放所述第一预设数量的帧画面和所述第二预设数量的帧画面时,保证电视机画面的亮度变化较小,不会造成画面闪动。
进一步地,所述调整模块30还用于根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理。
在对所述第二预设数量的帧画面进行调整时,具体可以通过确定所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益中的较小值,并根据所述较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理。具体的,将所述较小值作为所述二预设数量的帧画面中的亮度区域中的最小亮度增益值,以及所述暗度区域的最大亮度增益值,然后根据该最小亮度增益值对所述亮度区域中的各个像素点的亮度增益值进行亮度增强处理,根据该最大亮度增益值对所述暗度区域中的各个像素点的亮度增益值进行亮度衰减处理。需要说明的是,所述衰减处理也可以为等比衰减处理,或者为等差衰减处理,同理,所述增强处理也可以为等比增强处理,或者等差增强处理。
进一步地,所述调整模块30,还用于将所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值与所述较小值作为所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值,并根据所述亮度区域的最大亮度增益值调整所述第一帧画面的亮度区域的亮度增益值;以及将所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值与所述较小值作为所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值,并根据所述暗度区域的最小亮度增益值调整所述第一帧画面的暗度区域的亮度增益值。
将所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值与所述较小值的平均值作为所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值,并根据所述最大亮度增益值调整所述第一帧画面的亮度区域的亮度增益值;以及
将所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值与所述较小值的平均值作为所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值,并根据所述最小亮度增益值调整所述第一帧画面的暗度区域的亮度增益值。
为了获得更好的HDR节目切换为非HDR节目的切换效果,可以对目标切换视频中的第一帧画面的亮度区域和暗度区域的亮度增益值,即所述第二预设数量的帧画面中的第一帧画面的亮度区域和暗度区域做进一步处理。
假设所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值为250,所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值为10,所述较小值为120,则所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值为:(250+120)/2=185,所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值为:(10+120)/2=65。在获取到所述第一帧画面的亮度区域的最大亮度增益值及暗度区域的最小亮度增益值后,对所述第一帧画面的亮度区域及暗度区域的亮度增益值进行调整,具体的,可以根据该最大亮度增益值增强所述亮度区域中的各个像素点的亮度增益值,同时,根据该亮度增益值衰减所述暗度区域中各个像素点的亮度增益值,进一步地,所述第二预设数量的其他各帧画面也可根据上述方法进行调整,具体调整方法不再赘述。
本实施例通过所述第一预设数量的帧画面中的最后一帧画面的亮度增益值及所述较小值调整所述第二预设数量的帧画面中的第一帧画面的亮度增益值,从而使得在将HDR节目切换为非HDR节目后,切换前后的帧画面的亮度增益值变化值更小,切换效果更好。
进一步地,基于上述第一实施例提出本发明高动态范围画面切换装置的第二实施例,在本实施例中,所述高动态范围画面切换装还包括:确定模块50。
所述确定模块40,用于确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
所述亮度高像素区域和暗度高像素区是造成HDR节目切换为非HDR节目时画面闪动的源头,故可以通过定位所述任意一帧画面中的亮度高像素区域和暗度高像素区,并对该区域进行相应的处理来解决画面闪动的问题,所述任意一帧画面以最后一帧画面为例。所述亮度高像素区域为所述最后一帧画面中的多个满足第一预设条件的像素点组成的区域,所述暗度高像素区域为所述帧画面中的多个满足第二预设条件的像素点组成的区域。
具体的,所述确定模块50包括:第一获取单元51、第一确定单元52、第二获取单元53及第二确定单元54。
所述第一获取单元51,用于获取所述任意一帧画面中红色增益值、绿色增益值及蓝色增益值都大于第一预设值,且与相邻的像素点的亮度增益值之差在第一预设范围内的像素点;
所述第一确定单元52,用于将获取的像素点所在的区域作为亮度高像素区域;
在本实施例中,通过获取每个像素点的红色增益值、绿色增益值及蓝色增益值,然后判断该像素点的3个增益值是否都大于第一预设值,所述第一预设值优选为所述亮度增益值的三分之二大小、二分一大小等,优选为所述亮度增益值的三分之二大小,在获取到所有满足条件的像素点后,判断在这些像素点中是否存在相邻的像素点的亮度增益值之差在第一预设范围内的像素点,所述第一预设范围优选为[1,4],若存在相邻的像素点的亮度增益值之差在第一预设范围内的像素点,则将这些相邻的像素点所在的区域作为亮度高像素区域。
所述第二获取单元53,用于获取所述最后一帧画面中红色增益值、绿色增益值及亮度增益值都小于第二预设值,且与相邻的像素点的亮度增益值之差在第二预设范围内的像素点;
所述第二确定单元54,用于将获取的像素点所在的区域作为暗度高像素区域。
在本实施例中,通过获取每个像素点的红色增益值、绿色增益值及蓝色增益值,然后判断该像素点的3个增益值是否都小于第二预设值,所述第二预设值可以为所述亮度增益值的三分之一大小、二分一大小等,优选为所述亮度增益值的三分之一大小,在获取到所有满足条件的像素点后,判断在这些像素点中是否存在相邻的像素点的亮度增益值之差在第二预设范围内的像素点,所述第二预设范围可以与所述第一预设范围相同,也可以不同,若存在相邻的像素点的亮度增益值之差在第二预设范围内的像素点,则将这些相邻的像素点所在的区域作为亮度高像素区域。
本实施例通过获取每个像素点的亮度增益值,然后根据各个像素点的亮度增益值确定帧画面中的亮度高像素区域和暗度高像素区域,使得对帧画面中的亮度高像素区域和暗度高像素区域定位更加准确。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (18)
- 一种高动态范围画面切换方法,其特征在于,所述高动态范围画面切换方法包括以下步骤:在接收到高动态范围画面切换指令时,获取缓存区中的高动态范围画面中的任意一帧画面;对获取的所述任意一帧画面中的亮度高像素区域的亮度增益值进行亮度衰减处理,以及对获取的所述任意一帧画面中的暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面;根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值,其中,所述亮度区域为与所述亮度高像素区域相对应的区域,所述暗度区域为与所述暗度高像素区域相对应的区域;依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完毕后,依次播放所述第二预设数量的帧画面。
- 如权利要求1所述的高动态范围画面切换方法,其特征在于,所述根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值的步骤包括:根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理。
- 如权利要求2所述的高动态范围画面切换方法,其特征在于,所述根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理的步骤之后,还包括:将所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值与所述较小值的平均值作为所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值,并根据所述亮度区域的最大亮度增益值调整所述第一帧画面的亮度区域的亮度增益值。
- 如权利要求3所述的高动态范围画面切换方法,其特征在于,所述根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理的步骤之后,还包括:将所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值与所述较小值的平均值作为所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值,并根据所述暗度区域的最小亮度增益值调整所述第一帧画面的暗度区域的亮度增益值。
- 如权利要求1所述的高动态范围画面切换方法,其特征在于,所述将获取的所述最后一帧画面中的亮度高像素区域和暗度高像素区域的亮度增益值进行等比衰减产生第一预设数量的帧画面的步骤之前,还包括:确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
- 如权利要求2所述的高动态范围画面切换方法,其特征在于,所述将获取的所述最后一帧画面中的亮度高像素区域和暗度高像素区域的亮度增益值进行等比衰减产生第一预设数量的帧画面的步骤之前,还包括:确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
- 如权利要求3所述的高动态范围画面切换方法,其特征在于,所述将获取的所述最后一帧画面中的亮度高像素区域和暗度高像素区域的亮度增益值进行等比衰减产生第一预设数量的帧画面的步骤之前,还包括:确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
- 如权利要求5所述的高动态范围画面切换方法,其特征在于,所述亮度增益值包括红色增益值、绿色增益值及蓝色增益值,所述确定所述最后一帧画面中的亮度高像素区域和暗度高像素区域的步骤包括:获取所述任意一帧画面中红色增益值、绿色增益值及蓝色增益值都大于第一预设值,且与相邻的像素点的亮度增益值之差在第一预设范围内的像素点,并将获取的像素点所在的区域作为亮度高像素区域;获取所述任意一帧画面中红色增益值、绿色增益值及亮度增益值都小于第二预设值,且与相邻的像素点的亮度增益值之差在第二预设范围内的像素点,并将获取的像素点所在的区域作为暗度高像素区域。
- 如权利要求1所述的高动态范围画面切换方法,其特征在于,所述任意一帧画面优选为缓存区中高动态范围画面中的最后一帧画面。
- 一种高动态范围画面切换装置,其特征在于,所述高动态范围画面切换装置包括:获取模块,用于在接收到高动态范围画面切换指令时,获取缓存区中的高动态范围画面中的任意一帧画面;产生模块,用于对获取的所述任意一帧画面中的亮度高像素区域的亮度增益值进行亮度衰减处理,以及对获取的所述任意一帧画面中的暗度高像素区域的亮度增益值进行亮度增强处理以产生第一预设数量的帧画面;调整模块,用于根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值调整目标切换视频中的第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值,其中,所述亮度区域为与所述亮度高像素区域相对应的区域,所述暗度区域为与所述暗度高像素区域相对应的区域;播放模块,用于依次播放所述第一预设数量的帧画面,并在所述第一预设数量的帧画面播放完毕后,依次播放所述第二预设数量的帧画面。
- 如权利要求10所述的高动态范围画面切换装置,其特征在于,所述调整模块,还用于根据所述任意一帧画面的平均亮度增益值与目标切换视频中的第一帧画面的平均亮度增益值中的较小值对所述第二预设数量的帧画面中的亮度区域和暗度区域的亮度增益值分别进行亮度增强处理及亮度衰减处理。
- 如权利要求11所述的高动态范围画面切换装置,其特征在于,所述调整模块,还用于将所述第一预设数量的帧画面中的最后一帧画面的亮度高像素区域中的最大亮度增益值与所述较小值作为所述第二预设数量的帧画面中的第一帧画面的亮度区域的最大亮度增益值,并根据所述亮度区域的最大亮度增益值调整所述第一帧画面的亮度区域的亮度增益值。
- 如权利要求12所述的高动态范围画面切换装置,其特征在于,所述调整模块,还用于将所述第一预设数量的帧画面中的最后一帧画面的暗度高像素区域中的最小亮度增益值与所述较小值作为所述第二预设数量的帧画面中的第一帧画面的暗度区域的最小亮度增益值,并根据所述暗度区域的最小亮度增益值调整所述第一帧画面的暗度区域的亮度增益值。
- 如权利要求10所述的高动态范围画面切换装置,其特征在于,所述亮度增益值包括红色增益值、绿色增益值及蓝色增益值,所述高动态范围画面切换装置还包括:确定模块,用于确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
- 如权利要求11所述的高动态范围画面切换装置,其特征在于,所述亮度增益值包括红色增益值、绿色增益值及蓝色增益值,所述高动态范围画面切换装置还包括:确定模块,用于确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
- 如权利要求12所述的高动态范围画面切换装置,其特征在于,所述亮度增益值包括红色增益值、绿色增益值及蓝色增益值,所述高动态范围画面切换装置还包括:确定模块,用于确定所述任意一帧画面中的亮度高像素区域和暗度高像素区域。
- 如权利要求14所述的高动态范围画面切换装置,其特征在于,所述亮暗区域确定模块包括:第一获取单元,用于获取所述任意一帧画面中红色增益值、绿色增益值及蓝色增益值都大于第一预设值,且与相邻的像素点的亮度增益值之差在第一预设范围内的像素点;第一确定单元,用于将获取的像素点所在的区域作为亮度高像素区域;第二获取单元,用于获取所述任意一帧画面中红色增益值、绿色增益值及亮度增益值都小于第二预设值,且与相邻的像素点的亮度增益值之差在第二预设范围内的像素点;第二确定单元,用于将获取的像素点所在的区域作为暗度高像素区域。
- 如权利要求10所述的高动态范围画面切换装置,其特征在于,所述任意一帧画面优选为缓存区中高动态范围画面中的最后一帧画面。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610373478.8A CN105872311B (zh) | 2016-05-30 | 2016-05-30 | 高动态范围画面切换方法及装置 |
CN201610373478.8 | 2016-05-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017206368A1 true WO2017206368A1 (zh) | 2017-12-07 |
Family
ID=56643052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/095794 WO2017206368A1 (zh) | 2016-05-30 | 2016-08-18 | 高动态范围画面切换方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105872311B (zh) |
WO (1) | WO2017206368A1 (zh) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872311B (zh) * | 2016-05-30 | 2019-08-16 | 深圳Tcl数字技术有限公司 | 高动态范围画面切换方法及装置 |
CN106657714B (zh) * | 2016-12-30 | 2020-05-15 | 杭州当虹科技股份有限公司 | 一种提升高动态范围视频观看体验的方法 |
CN107087220A (zh) * | 2017-04-12 | 2017-08-22 | 深圳市瑞致达科技有限公司 | 智能播放设备及其控制方法、遥控终端和交互系统 |
CN110830727B (zh) * | 2018-08-07 | 2021-06-22 | 浙江宇视科技有限公司 | 曝光比自动调整方法及装置 |
CN110049250B (zh) * | 2019-05-15 | 2020-11-27 | 重庆紫光华山智安科技有限公司 | 摄像状态切换方法及装置 |
CN110740238B (zh) * | 2019-10-24 | 2021-05-11 | 华南农业大学 | 一种应用于移动机器人slam领域的分光hdr相机 |
CN115209062A (zh) * | 2021-04-13 | 2022-10-18 | 华为技术有限公司 | 一种图像处理方法及装置 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1547382A (zh) * | 2003-12-02 | 2004-11-17 | 深圳创维-Rgb电子有限公司 | 一种电视机转台方法 |
CN1965573A (zh) * | 2004-06-10 | 2007-05-16 | 日本先锋公司 | 画质控制设备及其方法、画质处理设备、它们的程序以及记录了这些程序的记录介质 |
CN101170708A (zh) * | 2006-10-25 | 2008-04-30 | 三星电子株式会社 | 改进图像闪烁的显示装置和方法 |
JP4103133B2 (ja) * | 2003-01-21 | 2008-06-18 | ソニー株式会社 | 情報処理装置および方法、記録媒体、並びにプログラム |
JP2008304539A (ja) * | 2007-06-05 | 2008-12-18 | Sharp Corp | 映像処理装置 |
US20110317072A1 (en) * | 2010-06-28 | 2011-12-29 | Canon Kabushiki Kaisha | Image processing apparatus and control method thereof |
CN105282622A (zh) * | 2015-10-20 | 2016-01-27 | 海信集团有限公司 | 一种切换场景的方法和装置 |
CN105872311A (zh) * | 2016-05-30 | 2016-08-17 | 深圳Tcl数字技术有限公司 | 高动态范围画面切换方法及装置 |
-
2016
- 2016-05-30 CN CN201610373478.8A patent/CN105872311B/zh active Active
- 2016-08-18 WO PCT/CN2016/095794 patent/WO2017206368A1/zh active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4103133B2 (ja) * | 2003-01-21 | 2008-06-18 | ソニー株式会社 | 情報処理装置および方法、記録媒体、並びにプログラム |
CN1547382A (zh) * | 2003-12-02 | 2004-11-17 | 深圳创维-Rgb电子有限公司 | 一种电视机转台方法 |
CN1965573A (zh) * | 2004-06-10 | 2007-05-16 | 日本先锋公司 | 画质控制设备及其方法、画质处理设备、它们的程序以及记录了这些程序的记录介质 |
CN101170708A (zh) * | 2006-10-25 | 2008-04-30 | 三星电子株式会社 | 改进图像闪烁的显示装置和方法 |
JP2008304539A (ja) * | 2007-06-05 | 2008-12-18 | Sharp Corp | 映像処理装置 |
US20110317072A1 (en) * | 2010-06-28 | 2011-12-29 | Canon Kabushiki Kaisha | Image processing apparatus and control method thereof |
CN105282622A (zh) * | 2015-10-20 | 2016-01-27 | 海信集团有限公司 | 一种切换场景的方法和装置 |
CN105872311A (zh) * | 2016-05-30 | 2016-08-17 | 深圳Tcl数字技术有限公司 | 高动态范围画面切换方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN105872311B (zh) | 2019-08-16 |
CN105872311A (zh) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017206368A1 (zh) | 高动态范围画面切换方法及装置 | |
WO2018166224A1 (zh) | 全景视频的目标追踪显示方法、装置及存储介质 | |
WO2018161685A1 (zh) | 电视影院模式实现方法、装置、设备及存储介质 | |
WO2021107406A1 (en) | Electronic device, control method thereof, and system | |
WO2018192253A1 (zh) | 视频信号的传输方法及装置 | |
WO2017041537A1 (zh) | 视频帧率的调节方法及装置 | |
WO2018223602A1 (zh) | 显示终端、画面对比度提高方法及计算机可读存储介质 | |
WO2017088427A1 (zh) | 音频输出控制方法及装置 | |
WO2021261830A1 (en) | Video quality assessment method and apparatus | |
WO2017190452A1 (zh) | 背光自适应调节方法及装置 | |
WO2018223607A1 (zh) | 电视终端及hdr图像转为sdr的方法和计算机可读存储介质 | |
WO2022025423A1 (en) | Video quality assessing method and apparatus | |
WO2018227869A1 (zh) | 显示屏画面调整方法、显示终端及可读存储介质 | |
WO2019076087A1 (zh) | 电视机及其显示图效控制方法、计算机可读存储介质 | |
WO2018028124A1 (zh) | 电视机及其信号源的切换方法 | |
WO2018103187A1 (zh) | 监控装置的监控画面形成方法和系统 | |
WO2017201893A1 (zh) | 视频处理方法和装置 | |
WO2017045435A1 (zh) | 控制电视播放方法和装置 | |
WO2018045682A1 (zh) | 音画同步测试方法及装置 | |
WO2017005062A1 (zh) | 图片帧播放方法和装置 | |
WO2017121066A1 (zh) | 应用程序显示方法和系统 | |
WO2017113600A1 (zh) | 视频播放方法及装置 | |
WO2016101305A1 (zh) | 视频文件处理方法及显示装置 | |
WO2019051903A1 (zh) | 终端控制方法、装置及计算机可读存储介质 | |
WO2017107384A1 (zh) | 液晶显示器的图像显示方法及液晶显示器 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16903750 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16903750 Country of ref document: EP Kind code of ref document: A1 |