WO2012155525A1 - 视频图像处理方法、装置及设备 - Google Patents

视频图像处理方法、装置及设备 Download PDF

Info

Publication number
WO2012155525A1
WO2012155525A1 PCT/CN2011/085164 CN2011085164W WO2012155525A1 WO 2012155525 A1 WO2012155525 A1 WO 2012155525A1 CN 2011085164 W CN2011085164 W CN 2011085164W WO 2012155525 A1 WO2012155525 A1 WO 2012155525A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
original image
saturation
chrominance
luminance
Prior art date
Application number
PCT/CN2011/085164
Other languages
English (en)
French (fr)
Inventor
牟秋斌
李辉亮
陈晨航
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012155525A1 publication Critical patent/WO2012155525A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/77Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/68Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits

Definitions

  • Video image processing method device and device
  • the present invention relates to the field of video image post-processing technology, and more particularly to a video image processing method, apparatus and device. Background technique
  • the HSI model is a visual color model that uses Hue, Saturation, and Intensity to describe colors from the human visual system. From the perspective of human vision, the display effect of the image mainly depends on the combination of chroma saturation and brightness contrast. Generally speaking, higher chroma saturation will make the color stronger and the image more vivid; greater brightness contrast The dynamic range of the image will make the image's color contrast stronger and the layering more vivid. Among them, chroma saturation and brightness contrast are coordinated to ensure the best overall visual effect of the image. If the brightness contrast is too high and the chroma saturation is insufficient, the image will appear pale, the chroma saturation is too high and the brightness contrast is insufficient. Will make the image appear dim. Dynamic Chroma Saturation and Brightness Contrast The purpose of the enhancement is to optimize the display of video images.
  • the prior art adjusts the chroma saturation and the brightness contrast based on manually changing the RGB pixel values to achieve a better display effect, making it suitable for human vision and achieving a better visual effect.
  • the color of the input video image is unevenly distributed or the chroma has frequent transitions between frames during manual adjustment, it is very troublesome to manually adjust the chroma saturation and brightness contrast.
  • Embodiments of the present invention provide a video image processing method, apparatus, and device, which are used to solve the present There is a problem that the brightness and chromaticity of the video image cannot be automatically adjusted, and the adjustment effect is not good.
  • a video image processing method includes:
  • the chrominance and luminance adjustment processing is performed on each pixel of the original image according to the mapping table, to obtain a target image after the enhancement processing.
  • a video image processing apparatus includes:
  • a statistic module configured to determine an average chrominance saturation and an average brightness contrast of the original image according to a luminance component and a chrominance component of each pixel of the original image
  • control module configured to compare the determined average chroma saturation with a set saturation enhancement threshold, determine a chroma saturation adjustment amount, and compare the determined average luminance contrast with a contrast enhancement threshold to determine a brightness contrast adjustment the amount;
  • mapping module configured to determine a chroma saturation adjustment value and a brightness contrast adjustment value for each pixel according to the determined chroma saturation adjustment amount and the brightness contrast adjustment amount, and the set intensity control coefficient, and generate each a mapping table of the chroma component and the luminance component of the pixel enhancement adjustment;
  • an adjustment module configured to perform chromaticity and brightness adjustment processing on each pixel of the original image according to the mapping table, to obtain an enhanced target image.
  • a video image processing apparatus comprising: a central processing unit, a memory, and a video image
  • the video image processing apparatus includes: a control unit, a statistics unit, a temporary storage unit, a mapping unit, a data moving unit, and an adjustment unit;
  • the central processing unit is configured to process data according to a request of each unit included in the video image processing apparatus;
  • a data moving unit configured to move data of the original image from the memory, and move the processed data back to the memory
  • the temporary storage unit is configured to temporarily store the luminance component and the chrominance component of each pixel of the original image that needs to be counted, and the data of the pixel to be adjusted that is temporarily moved by the data movement unit;
  • the control unit uses Controlling the data movement unit to move the data, the control statistic unit determines the average chrominance saturation and the average brightness contrast of the original image; and compares the determined average chrominance saturation with the set saturation enhancement threshold to determine the chrominance saturation Adjusting the amount, and comparing the determined average brightness contrast with the contrast enhancement threshold to determine the brightness contrast adjustment amount;
  • the control mapping unit generates a mapping table; and the control adjustment unit performs a chrominance and brightness adjustment processing statistical unit for each pixel according to the original image
  • the luminance component and the chrominance component of the point determine the average chroma saturation and the average luminance contrast of the original image;
  • mapping unit configured to determine a chroma saturation adjustment value and a brightness contrast adjustment value for each pixel according to the determined chroma saturation adjustment amount and the brightness contrast adjustment amount, and the set intensity control coefficient, and generate each a mapping table of the chroma component and the luminance component of the pixel enhancement adjustment;
  • an adjusting unit configured to perform chromaticity and brightness adjustment processing on each pixel of the original image according to the mapping table to obtain an enhanced target image.
  • the video image processing method, device and device provided by the embodiments of the present invention determine the average chroma saturation and the brightness contrast and the set saturation threshold respectively by calculating the chroma saturation and the brightness contrast of each pixel of the original image. Difference from contrast threshold, determined by its difference Adjusting the direction, and combining the intensity control coefficient to determine the adjustment values of the chroma saturation and the brightness contrast, generating a mapping table including the mapping relationship between the chroma component and the luma component of each pixel of the original image and the target image, and then automatically authenticating the original according to the mapping table. The luminance component and the chrominance component of each pixel of the image are adjusted.
  • the method is simple and convenient to implement, and can perform targeted automatic adjustment based on the brightness and chromaticity of the original image, realizing automatic adjustment of the video image in real time.
  • the method does not require excessive system resource overhead, and can achieve automatic adjustment with less resource utilization, has strong universal applicability, can obtain better adjustment effect than manual adjustment, and enables video image display. The effect is better.
  • FIG. 1 is a flowchart of a video image processing method according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a pixel mapping relationship of a video image according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a video image processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a video image processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a diagram showing an example of a specific structure of a video image processing apparatus according to an embodiment of the present invention. detailed description
  • the method of adjusting the chromaticity and brightness by the HIS model generally involves two steps:
  • Step 1 Enhance the chroma saturation S while enhancing the brightness contrast I.
  • Step 2 Expand the dynamic range of the brightness contrast I, and also expand the chrominance saturation S Range of states.
  • the dynamic range of images with lower brightness contrast is more strongly stretched, and vice versa.
  • the embodiment of the invention provides a video image processing method, which uses less hardware resources to achieve chrominance saturation. Automatic enhancement of degree and brightness contrast.
  • the method flow is shown in Figure 1, and includes the following steps:
  • Step S101 Acquire a luminance component and a chrominance component of each pixel of the original image.
  • the data of each pixel of the original image is obtained based on the first address of the original image, including the luminance component (Y) and the chrominance component (uv).
  • Step S102 Determine an average chroma saturation and an average luminance contrast of the original image according to the luminance component and the chroma component of each pixel of the original image.
  • Calculating a luminance component value of each pixel in the original image according to the luminance histogram for example, respectively counting the number of pixel points having the luminance value a, the number of pixel points having the luminance value b, and the like, After all the pixels are counted, the average value of the luminance values is calculated according to the total number of pixels, and the average luminance contrast is obtained.
  • the luminance histogram is a global method that can be used to change the luminance component of a pixel.
  • the luminance contrast enhancement is implemented for an image, a better overall appearance of the image can be obtained with respect to the local filtering technique of changing the pixel value.
  • the process of determining the average chroma saturation of the original image based on the chroma components of each pixel of the original image is as follows: 1) Calculate the chrominance saturation value of each pixel point based on the two color difference parameters U and V of the chrominance component (UV) of each pixel in the original image.
  • the open algorithm can be implemented by the pipeline calculation method because of the algorithm involving square and square root. First, multiply the value of U-128 squared and V-128 square, and then add the result to the fast-opening water-flow module, expand 100 to 64+32+4 (in accordance with the binary expansion), the square module The output is subjected to three additions, and the shift is further minimized, and finally the value of the saturation is obtained.
  • the sum of the chrominance saturation values of all the pixels in the original image can be easily calculated.
  • Step S103 Comparing the determined average chroma saturation with the set saturation enhancement threshold, determining the chroma saturation adjustment amount, and comparing the determined average luminance contrast and the contrast enhancement threshold to determine the brightness contrast adjustment amount.
  • the average chroma saturation is greater than or less than the set saturation enhancement threshold, the original image color is too Bright or not bright enough, you need to adjust it. At this time, it is determined that the difference between the set saturation enhancement threshold and the average chrominance saturation is the chrominance saturation adjustment amount, and the chromaticity saturation of the original image is adjusted. For example: If the average chroma saturation is greater than the set saturation enhancement threshold, you need to reduce the chroma saturation, and the resulting saturation adjustment is negative; if the average chroma saturation is less than the set saturation enhancement For the threshold, the chroma saturation needs to be increased, and the saturation adjustment obtained at this time is a positive value.
  • the determined average brightness contrast is compared to the contrast enhancement threshold. If the average brightness contrast is greater or less than the set contrast enhancement threshold, the original image brightness is too bright or too dark and needs to be adjusted. At this time, it is determined that the difference between the set contrast enhancement threshold and the average luminance contrast is the brightness contrast adjustment amount, and the brightness contrast of the original image is adjusted. For example: If the average brightness contrast is greater than the set contrast enhancement threshold, you need to reduce the brightness contrast. The contrast adjustment obtained at this time is negative; if the average brightness contrast is less than the set contrast enhancement threshold, you need to enhance the brightness contrast. The contrast adjustment amount is positive.
  • Step S104 Determine a chroma saturation adjustment value and a brightness contrast adjustment value for each pixel point according to the determined chroma saturation adjustment amount and the brightness contrast adjustment amount, and the set intensity control coefficient.
  • the chroma saturation adjustment value is determined as the product of the chroma saturation adjustment amount and the intensity control coefficient; and the brightness contrast adjustment value is determined as the product of the brightness contrast adjustment amount and the intensity control coefficient.
  • the set intensity control coefficient is 1.2
  • the determined chroma saturation adjustment amount that is, the difference between the saturation enhancement threshold and the average chroma saturation is 5, and the adjustment value of the chroma saturation is 6.
  • the adjustment value of the brightness contrast is also calculated similarly.
  • Step S105 Generate a mapping table including the chrominance component and the luminance component of each pixel point enhancement adjustment according to determining the chrominance saturation adjustment value and the luminance contrast adjustment value of each pixel.
  • the process of generating a mapping table includes: 1) The adjustment value of the chrominance component of each pixel and the adjustment value of the luminance component are respectively determined according to the chrominance saturation adjustment value and the luminance contrast adjustment value of each pixel.
  • mapping table including the adjusted chrominance component and the luminance component according to the adjustment value of the chrominance component of each pixel and the adjustment value of the luminance component, and the chrominance component and the luminance component of each pixel in the original image .
  • the luminance component and the chrominance component after each pixel point adjustment are adjusted according to the adjusted value of the determined chrominance component and the adjustment value of the luminance component according to the original value of the luminance component and the chrominance component of each pixel of the original image. After getting it.
  • the process of generating the mapping table is a process of mapping the luminance component and the chrominance component of each pixel in the original image.
  • the relationship between the original data of the original image in the generated mapping table and the mapping data of the target image is as shown in FIG. 2, and the mapping table represents the mapping relationship between the pixel points of the original image and the YUV of each pixel in the target image.
  • the straight line represents the original pixel map data
  • the broken line represents the dynamic map data.
  • the X-axis represents the original pixel data and the y-axis represents the mapped pixel data. Its value ranges from 0 to 255.
  • Step S106 Perform chromaticity and brightness adjustment processing on each pixel of the original image according to the generated mapping table to obtain an enhanced target image. Specifically include:
  • the data of each pixel block of the original image is sequentially moved in units of pixel blocks. That is to say, preferably, when the mapping table is established, it is performed in units of pixel points, and after the mapping table is established, when the chromaticity and brightness of the original image are adjusted, the adjustment is performed in units of pixel blocks. of. Among them, one pixel block, which may also be called a macro block, contains 16 16 pixel points.
  • the target image after enhancement processing is obtained until all the pixel blocks in the original image are adjusted.
  • the original image first address, the target image first address, the image width, the image height, the chroma saturation enhancement threshold, the brightness contrast enhancement threshold, the intensity control coefficient, and the like are all given by the application layer in practical application.
  • the chroma saturation enhancement threshold, the brightness contrast enhancement threshold, and the intensity control coefficient can be set as needed. After adjusting the chroma saturation and brightness contrast of the image, the video image is better displayed, the color is softer, and the brightness is more suitable. Therefore, the display of the video image is not too clear or too dark, and for the user, it will look more comfortable and more suitable for the sensory experience of the human eye.
  • the video image processing apparatus further provides a video image processing apparatus, and the structure thereof is as shown in FIG. 3, including: a statistics module 101, a control module 102, a mapping module 103, and an adjustment module. 104.
  • the statistic module 101 is configured to determine an average chrominance saturation and an average luminance contrast of the original image according to the luminance component and the chrominance component of each pixel of the original image.
  • the control module 102 is configured to compare the determined average chroma saturation with the set saturation enhancement threshold, determine the chroma saturation adjustment amount, and compare the determined average luminance contrast and the contrast enhancement threshold to determine the brightness contrast. Adjustment amount.
  • the mapping module 103 is configured to determine a chroma saturation adjustment value and a brightness contrast adjustment value of each pixel point according to the determined chroma saturation adjustment amount and the brightness contrast adjustment amount, and the set intensity control coefficient, and generate The pixel points enhance the mapping table of the adjusted chrominance components and luminance components.
  • the adjusting module 104 is configured to perform chromaticity and brightness adjustment processing on each pixel of the original image according to the mapping table to obtain an enhanced target image.
  • the foregoing statistics module 101 is specifically configured to:
  • control module 102 is specifically configured to:
  • Determining that the difference between the set saturation enhancement threshold and the average chrominance saturation is the saturation adjustment amount; and determining that the difference between the set contrast enhancement threshold and the average luminance contrast is the brightness contrast adjustment amount.
  • mapping module 103 is specifically configured to:
  • Determining the chroma saturation adjustment value is the product of the chroma saturation adjustment amount and the intensity control coefficient; and determining the luminance contrast adjustment value as the product of the luminance contrast adjustment amount and the intensity control coefficient.
  • mapping module 103 is specifically configured to:
  • the video image processing apparatus further includes:
  • the data moving module 105 is configured to sequentially move data of each pixel block of the original image in units of pixel blocks according to the original image first address; and adjust the content according to the first address of the target image.
  • the data of the pixel block is moved to the corresponding storage location in the target image until all the pixel blocks in the original image are adjusted, and the enhanced target image is obtained.
  • the adjusting module 104 is configured to query the adjusted chrominance component and the luminance component of each pixel of the original image included in the mapping table, and find the adjusted pixel points included in the moved pixel block.
  • the chrominance component and the luminance component are respectively adjusted; the adjusted chrominance component and the luminance component of each pixel included in the removed pixel block are respectively adjusted to find the adjusted chrominance component and the luminance component, and the removed pixel block is obtained. Adjusted data.
  • the video image processing device and the device according to the embodiment of the present invention further provide a video image processing device.
  • the structure thereof is as shown in FIG. 4, and includes: a central processing unit (CPU) and a memory (external RAM). And a video image processing apparatus; wherein, the video image processing apparatus comprises: a control unit (cc_ctrl), a statistical unit (cc_check), a temporary storage unit (On Chip RAM), a mapping unit (cc_mapgene), data movement Unit ( cc_dma ) and adjustment unit ( cc_piexlmap ).
  • a central processing unit for processing data in accordance with a request of each unit included in the video image processing apparatus.
  • the temporary storage unit is configured to temporarily store the luminance component and the chrominance component of each pixel of the original image that needs to be counted, and the data of the pixel to be adjusted that is temporarily moved by the data movement unit.
  • control unit for controlling the data movement unit to move data
  • the control statistics unit determining the average chroma saturation and the average brightness contrast of the original image
  • the determined average chroma saturation and the set saturation enhancement The threshold is compared, the chroma saturation adjustment amount is determined, and the determined average brightness contrast and the contrast enhancement threshold are compared to determine the brightness contrast adjustment amount;
  • the control mapping unit generates a mapping table; and the control adjustment unit performs the chromaticity and brightness adjustment Reason.
  • cc-Ctrl is mainly responsible for the overall control, including flow control, DMA read-write control, including arbitration of data, address and read-write enable for pixel point data from cc-dma, cc-check, cc_pixelmap. This is because data can only be carried through one data channel, and only one unit can work at a time, so the control unit needs to perform read and write arbitration.
  • a statistical unit (cc_check) is used to determine the average chroma saturation and the average luminance contrast of the original image based on the luminance component and the chroma component of each pixel of the original image. That is, cc-check is mainly responsible for calculating the average chroma saturation and the average brightness contrast according to the YUV value of the input video image, and realizing the chroma and brightness enhancement processing.
  • a mapping unit configured to determine a chroma saturation adjustment value and a brightness contrast adjustment value for each pixel according to the determined chroma saturation adjustment amount and the brightness contrast adjustment amount, and the set intensity control coefficient , generating a mapping table containing enhanced adjusted chrominance components and luminance components for each pixel. That is, cc-mapgene is mainly responsible for generating the mapping table.
  • Cc_pixelmap configured to perform chromaticity and brightness adjustment processing on each pixel of the original image according to the mapping table to obtain an enhanced target image.
  • Cc_pixelmap is mainly responsible for adjusting the chrominance and brightness of the video image according to the mapping table.
  • control unit cc ctrl
  • statistical unit cc check
  • mapping unit cc mapgene
  • data moving unit cc_dma
  • adjustment unit cc_piexlmap
  • the detection process When the above 16 ⁇ 16-based macroblock size is processed, in the detection process, the approximate upper and lower 3/16 heights of the input video image are not calculated, and the detection is performed according to 16 ⁇ 16, that is, when the countdown is approached When the image size is 3/16, the data with less than 16 lines at the end is discarded.
  • the data transfer unit (cc_dma) processes the data of the video image from the RAM in accordance with the pixel block.
  • Control unit (cc_Ctrl) detects the signal and controls the statistical unit (cc-check) pair
  • the luminance component and the chrominance component of each pixel are counted, and the average chroma saturation and luminance contrast are obtained, and the data shifting unit (cc_dma) is controlled to move the data of the next pixel block, and so on until all the pixels are processed.
  • Piece At this time, the data is carried in the ping-pong mode.
  • the above-mentioned temporary memory unit (On Chip RAM) is used to temporarily store the data to be processed that is being moved.
  • control unit controls the mapping unit (cc mapgene) to complete the operation of generating the mapping table.
  • the control unit controls the data moving unit (cc_dma) to move the data in units of pixel blocks, and temporarily stores it on the On Chip RAM, and then controls the lookup mapping table to be adjusted.
  • the unit ( cc_piexlmap ) adjusts the brightness and chromaticity of the moved pixel block. At this time, the data is also carried in the ping-pong mode until the entire video image is processed.
  • the cc-yuv-arbiter subunit is responsible for data and address and read/write enable arbitration for pixel points from cc-dma, cc-check, cc_pixelmap, and the cc-yuv-arbiter sub-unit connects two on-chip RAMs (YUV RAMI) And YUV RAM2) achieve double buffering of data, so that one side of the mapping side can be statistically calculated.
  • the cc-maphist-arbiter sub-unit performs data, address, read-write enable arbitration on the histogram and mapping table of cc_check, cc_pixelmap, and the cc maphist arbiter sub-unit connects two on-chip RAMs (YUV RAMI and YUV RAM2).
  • the above video image processing method provided by the embodiment of the present invention automatically implements chrominance and brightness adjustment of a video image, which is implemented by simple hardware improvement, can be reused, is easy to integrate, and can be widely applied to integrated in a high-performance interconnect bus. (such as the AHB system bus, etc.) in the System on Chip (SoC) system.
  • SoC System on Chip
  • This method can support high resolution, such as 400x240, 352x288 and other higher resolutions.
  • the device is designed and implemented based on the most mature SoC system AHB bus architecture. The device compatibility is good, and it can be applied to other high-performance system-on-chip bus systems or devices, such as AXI.
  • the device uses the running water method to calculate the chroma saturation and brightness contrast; using the ping-pong mode to move the data, effectively improving the bandwidth and saving system resources.

Landscapes

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

Description

视频图像处理方法、 装置及设备 技术领域
本发明涉及视频图像后处理技术领域, 尤指一种视频图像处理方法、 装置及设备。 背景技术
HSI 模型是一种从人眼视觉系统出发, 用色调 (Hue )、 饱和度 ( Saturation ), 亮度(Intensity ) 来描述颜色的视觉颜色模型。 从人眼视觉 出发, 图像的显示效果主要取决于色度饱和度和亮度对比度的综合作用, 一般来说较高的色度饱和度, 会使色彩更强, 图像更加鲜艳; 更大的亮度 对比度的动态范围, 会使图像的色彩对比度更强, 层次感更加鲜明。 其中, 色度饱和度和亮度对比度协调对应, 才能保证图像的整体视觉效果最佳, 如果亮度对比度过高而色度饱和度不足会使图像显得苍白, 色度饱和度过 高而亮度对比度不足则会使图像显得昏暗。 动态色度饱和度和亮度对比度 增强的目的是为了使视频图像的显示效果达到最佳。
现有技术调整色度饱和度和亮度对比度都是基于手动改变 RGB像素值 达到较好的显示效果, 使其适合人眼视觉, 达到较好的视觉效果。 但是手 动调整时, 如果输入的视频图像颜色分布不均或者色度存在帧间频繁跳变 的情况, 则手动调整其色度饱和度和亮度对比度就会变得很麻烦。
可见, 现有技术中没有自动调整视频图像色度和亮度, 使其获取较好 的视频显示效果的实现方法, 而手动调整也比较困难, 调整效果不佳。 发明内容
本发明实施例提供一种视频图像处理方法、 装置及设备, 用以解决现 有不能自动调整视频图像的亮度和色度, 调整效果不佳的问题。 一种视频图像处理方法, 包括:
根据原始图像各像素点的亮度分量和色度分量 , 确定原始图像的平均 色度饱和度和平均亮度对比度;
将确定的平均色度饱和度与设定的饱和度增强门限进行比较, 确定色 度饱和度调整量, 以及将确定的平均亮度对比度和对比度增强门限进行比 较, 确定亮度对比度调整量;
根据确定的色度饱和度调整量和亮度对比度调整量、 以及设定的强度 控制系数, 确定每个像素点的色度饱和度调整值和亮度对比度调整值, 生 成包含每个像素点增强调整后的色度分量和亮度分量的映射表;
根据所述映射表对所述原始图像的各像素点进行色度和亮度调整处 理, 得到增强处理后的目标图像。
一种视频图像处理装置, 包括:
统计模块, 用于根据原始图像各像素点的亮度分量和色度分量, 确定 原始图像的平均色度饱和度和平均亮度对比度;
控制模块, 用于将确定的平均色度饱和度与设定的饱和度增强门限进 行比较, 确定色度饱和度调整量, 以及将确定的平均亮度对比度和对比度 增强门限进行比较, 确定亮度对比度调整量;
映射模块, 用于根据确定的色度饱和度调整量和亮度对比度调整量、 以及设定的强度控制系数, 确定每个像素点的色度饱和度调整值和亮度对 比度调整值, 生成包含每个像素点增强调整后的色度分量和亮度分量的映 射表;
调整模块, 用于根据所述映射表对所述原始图像的各像素点进行色度 和亮度调整处理, 得到增强处理后的目标图像。
一种视频图像处理设备, 包括: 中央处理单元、 存储器和视频图像处 理装置; 其中, 视频图像处理装置包括: 控制单元、 统计单元、 暂存单元、 映射单元、 数据搬移单元和调整单元;
所述中央处理单元, 用于根据视频图像处理装置中包含的各单元的请 求处理数据;
数据搬移单元, 用于从存储器搬移原始图像的数据, 以及将处理后的 数据搬移回存储器中;
所述暂存单元 , 用于暂存需要统计的原始图像各像素点的亮度分量和 色度分量, 以及暂存数据搬移单元搬移过来的待进行调整的像素点的数据; 所述控制单元, 用于控制控制数据搬移单元搬移数据, 控制统计单元 确定原始图像的平均色度饱和度和平均亮度对比度; 将确定的平均色度饱 和度与设定的饱和度增强门限进行比较, 确定色度饱和度调整量, 以及将 确定的平均亮度对比度和对比度增强门限进行比较, 确定亮度对比度调整 量; 控制映射单元生成映射表; 控制调整单元进行色度和亮度调整处理 统计单元, 用于根据原始图像各像素点的亮度分量和色度分量, 确定 原始图像的平均色度饱和度和平均亮度对比度;
映射单元, 用于根据确定的色度饱和度调整量和亮度对比度调整量、 以及设定的强度控制系数, 确定每个像素点的色度饱和度调整值和亮度对 比度调整值, 生成包含每个像素点增强调整后的色度分量和亮度分量的映 射表;
调整单元, 用于根据所述映射表对所述对原始图像的各像素点进行色 度和亮度调整处理, 得到增强处理后的目标图像。
本发明有益效果如下:
本发明实施例提供的视频图像处理方法、 装置及设备, 通过对原始图 像各像素点色度饱和度和亮度对比度的计算, 确定其平均色度饱和度和亮 度对比度分别与设定的饱和度门限和对比度门限的差异, 根据其差异确定 调整方向, 并结合强度控制系数确定色度饱和度和亮度对比度的调整值, 生成包含原始图像和目标图像各像素点色度分量和亮度分量的映射关系的 映射表, 然后根据映射表自动对原始图像各像素点的亮度分量和色度分量 进行调整。 该方法实现简单、 方便, 且能够基于原始图像的亮度和色度进 行有针对性的自动调整, 实现了视频图像的实时自动调整。 该方法不需要 过多的系统资源开销, 以较少的资源利用, 即可获得自动调整的目的, 具 有较强的普遍适用性, 相对于手动调整能获得更好的调整效果, 使视频图 像显示效果更佳。 附图说明
此处所说明的附图用来提供对本发明的进一步理解, 构成本发明的一 部分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发 明的不当限定。 在附图中:
图 1为本发明实施例中视频图像处理方法的流程图;
图 1为本发明实施例中视频图像像素映射关系示意图;
图 3为本发明实施例中视频图像处理装置的结构示意图;
图 4为本发明实施例中视频图像处理设备的结构示意图;
图 5为本发明实施例中视频图像处理设备的具体结构示例图。 具体实施方式
为了使本发明所要解决的技术问题、 技术方案及有益效果更加清楚、 明白, 以下结合附图和实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发明。
通过 HIS模型调整色度和亮度的方法, 一般包括两个步驟:
步驟 1. 增强色度饱和度 S, 同时增强亮度对比度 I。
步驟 2. 扩大亮度对比度 I的动态范围, 同时也扩大色度饱和度 S的动 态范围。 对亮度对比度较低的图像的动态范围拉伸程度较强, 反之亦然。 为了实现实时输入的视频图像的色度饱和度和亮度对比度的自动调 整, 获取最佳的视频显示效果, 本发明实施例提供一种视频图像处理方法, 利用较少的硬件资源, 实现色度饱和度和亮度对比度的自动增强处理。 该 方法流程如图 1所示, 包括如下步驟:
步驟 S101 : 获取原始图像各像素点的亮度分量和色度分量。
根据原始图像的首地址获取原始图像的各像素点的数据, 包括亮度分 量(Y )和色度分量(uv)。
步驟 S102: 根据原始图像各像素点的亮度分量和色度分量, 确定原始 图像的平均色度饱和度和平均亮度对比度。
根据原始图像各像素点的亮度分量, 确定原始图像的平均亮度对比度 的过程如下:
1 )根据原始图像的亮度直方图, 统计原始图像中所有像素点的亮度分 量值之和。
2 )根据统计得到的所有像素点的亮度分量值之和与原始图像中的像素 点总数量, 确定平均亮度对比度。
根据亮度直方图统计原始图像中各像素点的亮度分量值, 例如分别统 计具有亮度值 a的像素点的数量、 具有亮度值 b的像素点的数量, ... ...等 等, 在对所有像素点进行统计后, 根据像素点的总数量计算亮度值的平均 值, 得到平均亮度对比度。
其中, 亮度直方图是一种可以用来改变像素点亮度分量的全局方法, 对图像实现亮度对比度增强时, 相对于改变像素值的局部过滤技术而言, 能获得更好的图像总体外观效果。
根据原始图像各像素点的色度分量, 确定原始图像的平均色度饱和度 的过程如下: 1 )根据原始图像中每个像素点的色度分量(UV ) 的两个色差参数 U 和 V, 分别计算每个像素点的色度饱和度值。
计算像素点的色度饱和度值 S, 具体根据下列公式计算:
S 二
Figure imgf000008_0001
上述公式通过 U、 V分量值和灰度轴上的 U、 V分量值( 128, 128 )的 空间距离来简化表征像素的色度饱和度, 将色度饱和度规整到 [0, 100]的范 围内。
在使用硬件实现使用上述公式计算饱和度时, 由于涉及到平方和开方 的算法, 对于其中的开放算法可以采用流水的计算方式实现。 先利用乘法 得到 U-128的平方和 V-128平方的值, 然后相加所得的结果输入到快速开 方流水模块, 将 100展开为 64+32+4 (符合二进制的展开), 开方模块输出 的结果进行三次加法, 和移位再求最小值, 最后得到饱和度的值。
2 )统计原始图像中所有像素点的色度饱和度值之和。
在计算得到原始图像所有像素点的色度饱和度之后, 可以很容易的计 算得到原始图像中所有像素点的色度饱和度值之和。
3 )根据统计得到的所有像素点的色度饱和度值之和与原始图像中的像 素点总数量, 确定平均色度饱和度。
上述色度饱和度和亮度对比度的统计, 以及平均色度饱和度和平均亮 度对比度的计算, 是为后续实现原始图像和目标图像的映射调整服务的。
步驟 S103: 将确定的平均色度饱和度与设定的饱和度增强门限进行比 较, 确定色度饱和度调整量, 以及将确定的平均亮度对比度和对比度增强 门限进行比较, 确定亮度对比度调整量。
将确定的平均色度饱和度与设定的饱和度增强门限进行比较, 若平均 色度饱和度大于或小于设定的饱和度增强门限, 则表明原始图像色彩过于 鲜艳或不够鲜艳, 需要对其进行调整。 此时, 确定设定的饱和度增强门限 与平均色度饱和度的差值为色度饱和度调整量, 实现对原始图像的色度饱 和度的调整。 例如: 若平均色度饱和度大于设定的饱和度增强门限, 则需 要降低色度饱和度, 此时得到的饱和度调整量为负值; 若平均色度饱和度 小于设定的饱和度增强门限, 则需要增强色度饱和度, 此时得到的饱和度 调整量为正值。
将确定的平均亮度对比度和对比度增强门限进行比较, 若平均亮度对 比度大于或小于设定的对比度增强门限, 则表明原始图像亮度过亮或过暗, 需要对其进行调整。 此时, 确定设定的对比度增强门限与平均亮度对比度 的差值为亮度对比度调整量, 实现对原始图像的亮度对比度的调整。 例如: 平均亮度对比度大于设定的对比度增强门限, 则需要降低亮度对比度, 此 时得到的对比度调整量为负值; 平均亮度对比度小于设定的对比度增强门 限, 则需要增强亮度对比度, 此时得到的对比度调整量为正值。
步驟 S104: 根据确定的色度饱和度调整量和亮度对比度调整量、 以及 设定的强度控制系数, 确定每个像素点的色度饱和度调整值和亮度对比度 调整值。
其中, 确定色度饱和度调整值为色度饱和度调整量与强度控制系数的 乘积; 以及确定亮度对比度调整值为亮度对比度调整量与强度控制系数的 乘积。
例如: 设定的强度控制系数为 1.2, 确定的色度饱和度调整量, 即饱和 度增强门限与平均色度饱和度的差值为 5 , 则色度饱和度的调整值为 6。 亮 度对比度的调整值也是类似计算得到。
步驟 S105: 根据确定每个像素点的色度饱和度调整值和亮度对比度调 整值, 生成包含每个像素点增强调整后的色度分量和亮度分量的映射表。 生成映射表的过程包括: 1 )根据每个像素点的色度饱和度调整值和亮度对比度调整值, 分别确 定每个像素点的色度分量的调整值和亮度分量的调整值。
2 )根据每个像素点的色度分量的调整值和亮度分量的调整值、 以及原 始图像中各像素点的色度分量和亮度分量, 生成包含调整后的色度分量和 亮度分量的映射表。
其中每个像素点调整之后的了亮度分量和色度分量, 根据原始图像各 像素点的亮度分量和色度分量的原始值 , 按照确定出的色度分量的调整值 和亮度分量的调整值调整后得到。
也就是说, 生成映射表的过程是对原始图像中每个像素点的亮度分量 和色度分量——映射调整的过程。 例如, 生成的映射表中原始图像的原始 数据与目标图像的映射数据的关系如图 2所示, 映射表表征了原始图像各 像素点与目标图像中各像素点的 YUV的映射关系。 如图 2所示的, 直线表 示原始像素映射数据, 而折线表示动态变换映射数据。 其中, X轴表示原始 的像素点数据、 y轴表示映射的像素点数据。 其取值范围为范围 0 ~ 255。
从图 2 中可以看出, 当确定的平均色度饱和度和平均亮度对比度小于 门限值值时, 需要将映射表折线点向上调整, 当确定的平均色度饱和度和 平均亮度对比度大于门限值值时, 需要将映射表折线点向下调整。 调整的 幅度参照强度控制系数确定。
步驟 S106: 根据生成的映射表对原始图像的各像素点进行色度和亮度 调整处理, 得到增强处理后的目标图像。 具体包括:
i )根据原始图像首地址, 以像素块为单位, 依次搬移原始图像的各像 素块的数据。 也就是说, 优选的, 在建立映射表时, 是以像素点为单位进 行, 而在建立了映射表之后, 对原始图像的色度和亮度进行调整时, 则是 以像素块为单位进行调整的。 其中, 一个像素块, 也可以称为宏块包含 16 16个像素点。 ii )查询映射表中包含的原始图像的各像素点调整后的色度分量和亮度 分量, 查找到搬移出的像素块中包含的各像素点的调整后的色度分量和亮 度分量; 将搬移出的像素块中包含的各像素点的调整后的色度分量和亮度 分量分别调整为查找到调整后的色度分量和亮度分量, 得到搬移出的像素 块的调整后的数据;
iii )直至调整完原始图像中所有的像素块,得到增强处理后的目标图像。 上述方法中, 原始图像首地址、 目标图像首地址、 图像宽度、 图像高 度、 色度饱和度增强门限、 亮度对比度增强门限、 强度控制系数等, 在实 际应用时都是由应用层给出的。 其中色度饱和度增强门限、 亮度对比度增 强门限、 强度控制系数可以根据需要设定。 在对图像进行色度饱和度和亮 度对比度的调整后, 使视频图像的显示效果更佳、 色彩更柔和、 亮度更适 宜。 从而使视频图像的显示不会过明或过暗, 对用户而言, 则会看起来更 舒服, 更适合人眼视觉的感官体验。
基于本发明实施例提供的上述视频图像处理方法, 本发明实施例还提 供一种视频图像处理装置, 其结构如图 3所示, 包括: 统计模块 101、 控制 模块 102、 映射模块 103和调整模块 104。
统计模块 101 , 用于根据原始图像各像素点的亮度分量和色度分量, 确 定原始图像的平均色度饱和度和平均亮度对比度。
控制模块 102,用于将确定的平均色度饱和度与设定的饱和度增强门限 进行比较, 确定色度饱和度调整量, 以及将确定的平均亮度对比度和对比 度增强门限进行比较, 确定亮度对比度调整量。
映射模块 103 , 用于根据确定的色度饱和度调整量和亮度对比度调整 量、 以及设定的强度控制系数, 确定每个像素点的色度饱和度调整值和亮 度对比度调整值, 生成包含每个像素点增强调整后的色度分量和亮度分量 的映射表。 调整模块 104,用于根据所述映射表对原始图像的各像素点进行色度和 亮度调整处理, 得到增强处理后的目标图像。
优选的, 上述统计模块 101 , 具体用于:
根据原始图像中每个像素点的色度分量的两个色差参数 U和 V, 分别 计算每个像素点的色度饱和度值; 统计原始图像中所有像素点的色度饱和 度值之和; 根据统计得到的所有像素点的色度饱和度值之和与所述原始图 像中的像素点总数量, 确定平均色度饱和度;
根据原始图像的亮度直方图, 统计原始图像中所有像素点的亮度分量 值之和; 根据统计得到的所有像素点的亮度分量值之和与所述原始图像中 的像素点总数量, 确定平均亮度对比度。
优选的, 上述控制模块 102, 具体用于:
确定设定的饱和度增强门限与平均色度饱和度的差值为所述饱和度调 整量; 以及确定设定的对比度增强门限与所述平均亮度对比度的差值为所 述亮度对比度调整量。
优选的, 上述映射模块 103 , 具体用于:
确定色度饱和度调整值为色度饱和度调整量与强度控制系数的乘积; 以及确定亮度对比度调整值为亮度对比度调整量与强度控制系数的乘积。
优选的, 上述映射模块 103 , 具体用于:
根据每个像素点的色度饱和度调整值和亮度对比度调整值, 分别确定 每个像素点的色度分量的调整值和亮度分量的调整值; 根据每个像素点的 色度分量的调整值和亮度分量的调整值、 以及原始图像中各像素点的色度 分量和亮度分量, 生成包含调整后的色度分量和亮度分量的映射表。
优选的, 上述视频图像处理装置, 还包括:
数据搬移模块 105 , 用于根据原始图像首地址, 以像素块为单位, 依次 搬移原始图像的各像素块的数据; 以及根据目标图像的首地址, 将调整后 的像素块的数据搬移到目标图像中的对应存储位置, 直至调整完原始图像 中所有的像素块, 得到增强处理后的目标图像。
优选的, 上述调整模块 104, 具体用于查询映射表中包含的原始图像的 各像素点调整后的色度分量和亮度分量, 查找到搬移出的像素块中包含的 各像素点的调整后的色度分量和亮度分量; 将搬移出的像素块中包含的各 像素点的调整后的色度分量和亮度分量分别调整为查找到调整后的色度分 量和亮度分量, 得到搬移出的像素块的调整后的数据。
基于本发明实施例提供的上述视频图像处理方法及装置, 本发明实施 例还提供一种视频图像处理设备, 其结构如图 4所示, 包括: 中央处理单 元(CPU )、 存储器(外部 RAM )和视频图像处理装置; 其中, 视频图像 处理装置包括: 控制单元(cc— ctrl )、 统计单元(cc— check )、 暂存单元( On Chip RAM, 片上 RAM ),映射单元( cc_mapgene ),数据搬移单元( cc_dma ) 和调整单元 ( cc_piexlmap )。
中央处理单元(CPU ), 用于根据视频图像处理装置中包含的各单元的 请求处理数据。
数据搬移单元(cc— dma ), 用于从存储器搬移原始图像的数据, 以及将 处理后的数据搬移回存储器中。 即 cc— dma主要负责在 DDR地址的计算和 片上 RAM地址计算以及完成两者之间数据传输。
暂存单元, 用于暂存需要统计的原始图像各像素点的亮度分量和色度 分量, 以及暂存数据搬移单元搬移过来的待进行调整的像素点的数据。
控制单元(cc— Ctrl ), 用于控制控制数据搬移单元搬移数据, 控制统计 单元确定原始图像的平均色度饱和度和平均亮度对比度; 将确定的平均色 度饱和度与设定的饱和度增强门限进行比较, 确定色度饱和度调整量, 以 及将确定的平均亮度对比度和对比度增强门限进行比较, 确定亮度对比度 调整量; 控制映射单元生成映射表; 控制调整单元进行色度和亮度调整处 理。 即 cc— Ctrl主要负责整体的控制, 包含流程控制、 DMA读写控制, 包括 对来自 cc— dma, cc— check, cc_pixelmap的像素点数据进行数据、 地址和读 写使能的仲裁。 这是因为数据只能通过一个数据通道搬运, 每次只能有一 个单元工作, 因此需要控制单元进行读写仲裁。
统计单元( cc— check ), 用于根据原始图像各像素点的亮度分量和色度 分量, 确定原始图像的平均色度饱和度和平均亮度对比度。 即 cc— check主 要负责根据输入的视频图像的 YUV值计算得到平均色度饱和度和平均亮 度对比度, 实现色度和亮度增强处理。
映射单元( cc— mapgene ), 用于根据确定的色度饱和度调整量和亮度对 比度调整量、 以及设定的强度控制系数, 确定每个像素点的色度饱和度调 整值和亮度对比度调整值, 生成包含每个像素点增强调整后的色度分量和 亮度分量的映射表。 即 cc— mapgene主要负责生成映射表。
调整单元( cc_pixelmap ), 用于根据所述映射表对所述对原始图像的各 像素点进行色度和亮度调整处理,得到增强处理后的目标图像。 cc_pixelmap 主要负责根据映射表调整视频图像的色度和亮度。
上述控制单元( cc ctrl )、统计单元( cc check )、映射单元( cc mapgene )、 数据搬移单元(cc— dma )和调整单元( cc_piexlmap )所实现的功能参照上 述图 3所示的视频图像处理装置中统计模块 101、 控制模块 102、 映射模块 103、 调整模块 104和数据搬移模块 105的描述, 此处不再赘述。
上述基于 16 X 16的宏块尺寸进行处理时, 在检测过程中, 可以对于输 入的视频图像的上下各近似 3/16 高度不做计算, 在进行检测时都是按照 16x16处理, 即当接近倒数 3/16图像大小的时候, 舍去尾部不够 16行的数 据。
上述数据搬移单元( cc— dma )按照像素块从 RAM中搬移视频图像的数 据进行处理。 控制单元(cc— Ctrl )检测信号, 控制统计单元(cc— check )对 各像素点的亮度分量和色度分量进行统计, 获取平均色度饱和度和亮度对 比度, 同时控制数据搬移单元 (cc—dma )搬移下一个像素块的数据, 以此 类推直至处理完所有的像素块。 此时, 数据是采用兵乓模式搬运的。
上述暂存单元(On Chip RAM )用于暂存搬移的待处理的数据。
获取平均色度饱和度和亮度对比度后, 控制单元(cc— Ctrl )控制映射单 元 ( cc mapgene ) 完成生成映射表的操作。
映射表生成后, 控制单元(cc— Ctrl )控制数据搬移单元(cc—dma )以像 素块为单位搬移数据, 并暂存在暂存单元(On Chip RAM )上, 然后控制 查找映射表, 由调整单元 ( cc_piexlmap )对搬移的像素块的亮度和色度进 行调整处理。 此时, 数据也是采用兵乓模式搬运的, 直至整个视频图像调 整处理完。
该视频图像处理设备的一种具体结构如图 5 所示。 其中, 对暂存单元 ( On Chip RAM ) 的功能进行了细化。
cc—yuv— arbiter子单元负责对来自 cc—dma, cc— check, cc_pixelmap的像 素点数据进行数据和地址以及读写使能的仲裁, cc—yuv— arbiter子单元连接 两个片上 RAM ( YUV RAMI和 YUV RAM2 ) 实现数据的双緩沖, 从而可 以实现一边映射一边统计计算。 而 cc—maphist— arbiter子单元则对 cc— check, cc_pixelmap 的直方图和映射表进行数据、 地址、 读写使能的仲裁, cc maphist arbiter子单元连接两个片上 RAM( YUV RAMI和 YUV RAM2 ) 实现数据緩沖
本发明实施例提供的上述视频图像处理方法, 自动实现对视频图像的 色度和亮度调整, 其采用简单的硬件改进实现, 可重用好, 易于集成, 可 以广泛应用于集成在高性能互连总线 (如 AHB 系统总线等) 的片上系统 ( System on Chip, SoC )系统中。该方法可以支持高分辨率,例如 400x240, 352x288等较高的分辨率。 实现该方法设备基于目前最为成熟的 SoC 系统 AHB总线架构设计实 现, 设备兼容性好, 稍加修改, 也可以适用于其他高性能片上系统总线的 系统或设备, 如 AXI等。 且该装置采用流水方式实现色度饱和度和亮度对 比度计算; 采用乒乓模式搬移数据, 有效的提高了带宽, 节约了系统资源。
上述说明示出并描述了本发明的一个优选实施例, 但如前所述, 应当 理解本发明并非局限于本文所披露的形式, 不应看作是对其他实施例的排 除, 而可用于各种其他组合、 修改和环境, 并能够在本文所述发明构想范 围内, 通过上述教导或相关领域的技术或知识进行改动。 而本领域人员所 进行的改动和变化不脱离本发明的精神和范围, 则都应在本发明所附权利 要求的保护范围内。

Claims

权利要求书
1、 一种视频图像处理方法, 其特征在于, 包括:
根据原始图像各像素点的亮度分量和色度分量 , 确定原始图像的平均 色度饱和度和平均亮度对比度;
将确定的平均色度饱和度与设定的饱和度增强门限进行比较, 确定色 度饱和度调整量, 以及将确定的平均亮度对比度和对比度增强门限进行比 较, 确定亮度对比度调整量;
根据确定的色度饱和度调整量和亮度对比度调整量、 以及设定的强度 控制系数, 确定每个像素点的色度饱和度调整值和亮度对比度调整值, 生 成包含每个像素点增强调整后的色度分量和亮度分量的映射表;
根据所述映射表对所述原始图像的各像素点进行色度和亮度调整处 理, 得到增强处理后的目标图像。
2、 如权利要求 1所述的方法, 其特征在于, 所述根据原始图像各像素 点的亮度分量和色度分量, 确定原始图像的平均色度饱和度和平均亮度对 比度, 具体包括:
根据所述原始图像中每个像素点的色度分量的两个色差参数 U和 V, 分别计算每个像素点的色度饱和度值; 统计所述原始图像中所有像素点的 色度饱和度值之和; 根据统计得到的所有像素点的色度饱和度值之和与所 述原始图像中的像素点总数量, 确定平均色度饱和度;
根据所述原始图像的亮度直方图, 统计所述原始图像中所有像素点的 亮度分量值之和; 根据统计得到的所有像素点的亮度分量值之和与所述原 始图像中的像素点总数量, 确定平均亮度对比度。
3、 如权利要求 2所述的方法, 其特征在于, 计算像素点的色度饱和度 值 S, 具体根据下列公式计算: S 二
Figure imgf000018_0001
4、 如权利要求 1所述的方法, 其特征在于, 所述确定色度饱和度调整 量, 具体包括: 确定设定的饱和度增强门限与平均色度饱和度的差值为所 述色度饱和度调整量;
所述确定亮度对比度调整量, 具体包括: 确定设定的对比度增强门限 与所述平均亮度对比度的差值为所述亮度对比度调整量。
5、 如权利要求 1所述的方法, 其特征在于, 所述确定每个像素点的色 度饱和度调整值和亮度对比度调整值, 具体包括:
确定色度饱和度调整值为所述色度饱和度调整量与所述强度控制系数 的乘积; 以及确定亮度对比度调整值为所述亮度对比度调整量与所述强度 控制系数的乘积。
6、 如权利要求 1所述的方法, 其特征在于, 所述生成包含每个像素点 增强调整后的色度分量和亮度分量的映射表, 具体包括:
根据每个像素点的色度饱和度调整值和亮度对比度调整值, 分别确定 每个像素点的色度分量的调整值和亮度分量的调整值;
根据所述每个像素点的色度分量的调整值和亮度分量的调整值、 以及 原始图像中各像素点的色度分量和亮度分量, 生成包含调整后的色度分量 和亮度分量的映射表。
7、 如权利要求 1-6任一所述的方法, 其特征在于, 根据所述映射表对 所述原始图像的各像素点进行色度和亮度调整处理, 得到增强处理后的目 标图像, 具体包括:
根据所述原始图像首地址, 以像素块为单位, 依次搬移原始图像的各 像素块的数据;
查询映射表中包含的原始图像的各像素点调整后的色度分量和亮度分 量, 查找到搬移出的像素块中包含的各像素点的调整后的色度分量和亮度 分量; 将搬移出的像素块中包含的各像素点的调整后的色度分量和亮度分 量分别调整为查找到调整后的色度分量和亮度分量, 得到搬移出的像素块 的调整后的数据;
直至调整完所述原始图像中所有的像素块, 得到增强处理后的目标图 像。
8、 一种视频图像处理装置, 其特征在于, 包括:
统计模块, 用于根据原始图像各像素点的亮度分量和色度分量, 确定 原始图像的平均色度饱和度和平均亮度对比度;
控制模块, 用于将确定的平均色度饱和度与设定的饱和度增强门限进 行比较, 确定色度饱和度调整量, 以及将确定的平均亮度对比度和对比度 增强门限进行比较, 确定亮度对比度调整量;
映射模块, 用于根据确定的色度饱和度调整量和亮度对比度调整量、 以及设定的强度控制系数, 确定每个像素点的色度饱和度调整值和亮度对 比度调整值, 生成包含每个像素点增强调整后的色度分量和亮度分量的映 射表;
调整模块, 用于根据所述映射表对所述原始图像的各像素点进行色度 和亮度调整处理, 得到增强处理后的目标图像。
9、如权利要求 8所述的装置, 其特征在于, 所述统计模块, 具体用于: 根据所述原始图像中每个像素点的色度分量的两个色差参数 U和 V, 分别计算每个像素点的色度饱和度值; 统计所述原始图像中所有像素点的 色度饱和度值之和; 根据统计得到的所有像素点的色度饱和度值之和与所 述原始图像中的像素点总数量, 确定平均色度饱和度;
根据所述原始图像的亮度直方图, 统计所述原始图像中所有像素点的 亮度分量值之和; 根据统计得到的所有像素点的亮度分量值之和与所述原 始图像中的像素点总数量, 确定平均亮度对比度。
10、 如权利要求 8所述的装置, 其特征在于, 所述控制模块, 具体用 于:
确定设定的饱和度增强门限与平均色度饱和度的差值为所述饱和度调 整量; 以及确定设定的对比度增强门限与所述平均亮度对比度的差值为所 述亮度对比度调整量。
11、 如权利要求 8 所述的装置, 其特征在于, 所述映射模块, 具体用 于:
确定色度饱和度调整值为所述色度饱和度调整量与所述强度控制系数 的乘积; 以及确定亮度对比度调整值为所述亮度对比度调整量与所述强度 控制系数的乘积。
12、 如权利要求 8所述的方法, 其特征在于, 所述映射模块, 具体用 于:
根据每个像素点的色度饱和度调整值和亮度对比度调整值, 分别确定 每个像素点的色度分量的调整值和亮度分量的调整值;
根据所述每个像素点的色度分量的调整值和亮度分量的调整值、 以及 原始图像中各像素点的色度分量和亮度分量, 生成包含调整后的色度分量 和亮度分量的映射表。
13、 如权利要求 8-12任一所述的装置, 其特征在于, 还包括: 数据搬移模块, 用于根据所述原始图像首地址, 以像素块为单位, 依 次搬移原始图像的各像素块的数据; 以及根据目标图像的首地址, 将调整 后的像素块的数据搬移到目标图像中的对应存储位置, 直至调整完所述原 始图像中所有的像素块, 得到增强处理后的目标图像;
所述调整模块, 具体用于: 查询映射表中包含的原始图像的各像素点 调整后的色度分量和亮度分量, 查找到搬移出的像素块中包含的各像素点 的调整后的色度分量和亮度分量; 将搬移出的像素块中包含的各像素点的 调整后的色度分量和亮度分量分别调整为查找到调整后的色度分量和亮度 分量, 得到搬移出的像素块的调整后的数据。
14、 一种视频图像处理设备, 其特征在于, 包括: 中央处理单元、 存 储器和视频图像处理装置; 其中, 视频图像处理装置包括: 控制单元、 统 计单元、 暂存单元、 映射单元、 数据搬移单元和调整单元;
所述中央处理单元, 用于根据视频图像处理装置中包含的各单元的请 求处理数据;
数据搬移单元, 用于从存储器搬移原始图像的数据, 以及将处理后的 数据搬移回存储器中;
所述暂存单元 , 用于暂存需要统计的原始图像各像素点的亮度分量和 色度分量, 以及暂存数据搬移单元搬移过来的待进行调整的像素点的数据; 所述控制单元, 用于控制控制数据搬移单元搬移数据, 控制统计单元 确定原始图像的平均色度饱和度和平均亮度对比度; 将确定的平均色度饱 和度与设定的饱和度增强门限进行比较, 确定色度饱和度调整量, 以及将 确定的平均亮度对比度和对比度增强门限进行比较, 确定亮度对比度调整 量; 控制映射单元生成映射表; 控制调整单元进行色度和亮度调整处理; 统计单元, 用于根据原始图像各像素点的亮度分量和色度分量, 确定 原始图像的平均色度饱和度和平均亮度对比度;
映射单元, 用于根据确定的色度饱和度调整量和亮度对比度调整量、 以及设定的强度控制系数, 确定每个像素点的色度饱和度调整值和亮度对 比度调整值, 生成包含每个像素点增强调整后的色度分量和亮度分量的映 射表;
调整单元, 用于根据所述映射表对所述对原始图像的各像素点进行色 度和亮度调整处理, 得到增强处理后的目标图像。
PCT/CN2011/085164 2011-05-13 2011-12-31 视频图像处理方法、装置及设备 WO2012155525A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110123609.4A CN102780889B (zh) 2011-05-13 2011-05-13 视频图像处理方法、装置及设备
CN201110123609.4 2011-05-13

Publications (1)

Publication Number Publication Date
WO2012155525A1 true WO2012155525A1 (zh) 2012-11-22

Family

ID=47125632

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/085164 WO2012155525A1 (zh) 2011-05-13 2011-12-31 视频图像处理方法、装置及设备

Country Status (2)

Country Link
CN (1) CN102780889B (zh)
WO (1) WO2012155525A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106531125A (zh) * 2017-01-04 2017-03-22 深圳创维-Rgb电子有限公司 图像显示亮度的调整方法、装置及电视机
CN113763860A (zh) * 2021-09-14 2021-12-07 杭州海康消防科技有限公司 显示颜色确定方法、装置、电子设备和存储介质
CN116824906A (zh) * 2023-08-29 2023-09-29 成都市巨多广告有限公司 一种具有识别功能的停车场引导方法及系统
CN113763860B (zh) * 2021-09-14 2024-05-31 杭州海康消防科技有限公司 显示颜色确定方法、装置、电子设备和存储介质

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841337B (zh) * 2012-11-23 2017-04-05 北京百度网讯科技有限公司 背光补偿的方法和装置
GB201410635D0 (en) * 2014-06-13 2014-07-30 Univ Bangor Improvements in and relating to the display of images
CN104883552B (zh) * 2015-05-22 2017-01-11 深圳市载德光电技术开发有限公司 一种基于yuv编码格式的图像调节方法及调节系统
CN105898252A (zh) * 2015-11-26 2016-08-24 乐视致新电子科技(天津)有限公司 一种电视色彩的调整方法和装置
CN106993176A (zh) * 2016-01-20 2017-07-28 掌赢信息科技(上海)有限公司 一种调节视频亮度的方法和电子设备
CN107038680B (zh) * 2017-03-14 2020-10-16 武汉斗鱼网络科技有限公司 自适应光照的美颜方法及系统
CN107025880B (zh) * 2017-04-14 2019-11-29 西安诺瓦星云科技股份有限公司 图像显示控制方法及装置和显示屏控制系统
CN107087119B (zh) * 2017-06-02 2020-06-26 奇酷互联网络科技(深圳)有限公司 调整曝光的方法、装置及电子设备
CN108711142B (zh) * 2018-05-22 2020-09-29 深圳市华星光电技术有限公司 图像处理方法及图像处理装置
CN110858281B (zh) * 2018-08-22 2022-10-04 浙江宇视科技有限公司 图像处理方法、装置、电子眼及存储介质
CN110175969B (zh) * 2019-05-29 2021-07-23 Tcl华星光电技术有限公司 图像处理方法及图像处理装置
CN111163350B (zh) * 2019-12-06 2022-03-01 Oppo广东移动通信有限公司 一种图像处理方法、终端及计算机存储介质
CN112465729B (zh) * 2020-12-11 2022-07-08 四川长虹电器股份有限公司 基于电视直方图动态调整图像对比度的方法
CN113066020A (zh) * 2021-03-11 2021-07-02 Oppo广东移动通信有限公司 图像处理方法及装置、计算机可读介质和电子设备
CN116095509B (zh) * 2021-11-05 2024-04-12 荣耀终端有限公司 生成视频帧的方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020114513A1 (en) * 2001-02-20 2002-08-22 Nec Corporation Color image processing device and color image processing method
JP2004118424A (ja) * 2002-09-25 2004-04-15 Sony Corp 動き検出装置,動き検出方法,動き検出システム,およびプログラム
CN1578438A (zh) * 2003-07-15 2005-02-09 三星电子株式会社 用于图像加强的装置及使用其的方法
CN101340510A (zh) * 2008-08-07 2009-01-07 中兴通讯股份有限公司 一种视频增强的方法及其装置
CN101621702A (zh) * 2009-07-30 2010-01-06 北京海尔集成电路设计有限公司 色度和饱和度的自动调整方法和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI309136B (en) * 2005-12-01 2009-04-21 Novatek Microelectronics Corp Apparatus for adjusting specific color attributes and method thereof
US8107756B2 (en) * 2007-10-11 2012-01-31 Himax Technologies Limited Digital image tone remapping method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020114513A1 (en) * 2001-02-20 2002-08-22 Nec Corporation Color image processing device and color image processing method
JP2004118424A (ja) * 2002-09-25 2004-04-15 Sony Corp 動き検出装置,動き検出方法,動き検出システム,およびプログラム
CN1578438A (zh) * 2003-07-15 2005-02-09 三星电子株式会社 用于图像加强的装置及使用其的方法
CN101340510A (zh) * 2008-08-07 2009-01-07 中兴通讯股份有限公司 一种视频增强的方法及其装置
CN101621702A (zh) * 2009-07-30 2010-01-06 北京海尔集成电路设计有限公司 色度和饱和度的自动调整方法和装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106531125A (zh) * 2017-01-04 2017-03-22 深圳创维-Rgb电子有限公司 图像显示亮度的调整方法、装置及电视机
CN106531125B (zh) * 2017-01-04 2019-02-01 深圳创维-Rgb电子有限公司 图像显示亮度的调整方法、装置及电视机
CN113763860A (zh) * 2021-09-14 2021-12-07 杭州海康消防科技有限公司 显示颜色确定方法、装置、电子设备和存储介质
CN113763860B (zh) * 2021-09-14 2024-05-31 杭州海康消防科技有限公司 显示颜色确定方法、装置、电子设备和存储介质
CN116824906A (zh) * 2023-08-29 2023-09-29 成都市巨多广告有限公司 一种具有识别功能的停车场引导方法及系统
CN116824906B (zh) * 2023-08-29 2023-11-17 成都市巨多广告有限公司 一种具有识别功能的停车场引导方法及系统

Also Published As

Publication number Publication date
CN102780889A (zh) 2012-11-14
CN102780889B (zh) 2015-04-01

Similar Documents

Publication Publication Date Title
WO2012155525A1 (zh) 视频图像处理方法、装置及设备
CN105608677B (zh) 一种任意光线环境下的图像肤色美化方法及系统
US8224086B2 (en) Methods and apparatuses for restoring color and enhancing electronic images
CN104268843B (zh) 基于直方图修正的图像自适应增强方法
US8374430B2 (en) Apparatus and method for feature-based dynamic contrast enhancement
CN103714520B (zh) 基于fpga实现数字视频图像增强系统及其方法
CN104076928B (zh) 一种调整文字显示区域色调的方法
WO2019061766A1 (zh) 一种图像处理方法及装置
CN104994363B (zh) 一种基于服饰的美颜方法、装置及智能终端
CN110706172B (zh) 基于自适应混沌粒子群优化的低照度彩色图像增强方法
WO2020135234A1 (zh) 一种图像处理方法及装置
CN104284168B (zh) 图像色彩增强方法及系统
CN108022223B (zh) 一种基于对数映射函数分块处理融合的色调映射方法
CN105744118B (zh) 一种基于视频帧自适应的视频增强方法及视频增强系统
CN104935902A (zh) 图像色彩增强方法、装置及电子设备
CN104811631B (zh) 一种图像处理方法及图像处理器
CN106686320B (zh) 一种基于数密度均衡的色调映射方法
CN109741408A (zh) 一种图像及视频漫画效果实时渲染方法
WO2022052862A1 (zh) 图像的边缘增强处理方法及应用
JPWO2002062055A1 (ja) 画像処理回路
CN104469226B (zh) 投影融合的方法及融合设备
US20230214955A1 (en) Electronic apparatus and image processing method of electronic apparatus
JP2009010636A (ja) 適応ヒストグラム等化方法及び適応ヒストグラム等化装置
CN109118458A (zh) 一种低照度彩色图像增强方法
CN107240075A (zh) 一种雾霾图像增强处理方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11865468

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11865468

Country of ref document: EP

Kind code of ref document: A1