CN114998135A - Image enhancement method and device, field programmable logic gate array and equipment - Google Patents
Image enhancement method and device, field programmable logic gate array and equipment Download PDFInfo
- Publication number
- CN114998135A CN114998135A CN202210612662.9A CN202210612662A CN114998135A CN 114998135 A CN114998135 A CN 114998135A CN 202210612662 A CN202210612662 A CN 202210612662A CN 114998135 A CN114998135 A CN 114998135A
- Authority
- CN
- China
- Prior art keywords
- image
- value
- pixel
- luminance domain
- luminance
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- 238000004364 calculation method Methods 0.000 claims abstract description 16
- 238000003384 imaging method Methods 0.000 claims description 14
- 230000002596 correlated effect Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 7
- 230000000875 corresponding effect Effects 0.000 claims description 7
- 238000013139 quantization Methods 0.000 claims description 6
- 230000002829 reductive effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 8
- 238000004422 calculation algorithm Methods 0.000 description 7
- 230000001186 cumulative effect Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000002085 persistent effect Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000000670 limiting effect Effects 0.000 description 4
- 230000002708 enhancing effect Effects 0.000 description 3
- 230000001965 increasing effect Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000005315 distribution function Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- 241000023320 Luma <angiosperm> Species 0.000 description 1
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 239000002355 dual-layer Substances 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/60—Memory management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration using histogram techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/28—Indexing scheme for image data processing or generation, in general involving image processing hardware
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本公开涉及图像增强技术领域,特别是涉及一种适用于对对比度较低、曝光不合适的图像进行增强的图像增强方法、装置、现场可编程逻辑门阵列以及设备。The present disclosure relates to the technical field of image enhancement, and in particular, to an image enhancement method, device, field programmable logic gate array and device suitable for enhancing images with low contrast and improper exposure.
背景技术Background technique
图像增强技术适用于对图像质量进行增强的场景和各类图像处理与分析模块的预处理部分。该技术通过对图像的局部或整体特征进行强调或改变,从而改善图像的质量,适配特殊的需要。因此图像增强技术在近些年得到了较为快速的发展与进步。Image enhancement technology is suitable for scenes that enhance image quality and the preprocessing part of various image processing and analysis modules. This technology improves the quality of the image by emphasizing or changing the local or overall features of the image and adapts to special needs. Therefore, image enhancement technology has developed rapidly in recent years.
直方图均衡是图像增强技术中一种较为常用的技术。图像的直方图是给定图像中强度与强度值发生概率的图形表示。图像直方图均衡是一种均衡图像中强度值出现概率分布的方法。由于摄像器件的限制或场景特点,捕捉到的图像像素会集中于像素值域的某些部分,从而导致图像昏暗,没有层次感,无法真实再现场景信息,即图像对比度较低。图像的直方图描述图像的像素值在值域上的分布情况,展示图像像素值分布特点。通过构造图像像素值的直方图可以表现上述图像对比度较低的问题。同时对图像的直方图进行调整即可改变图像的对比度等相关特征。Histogram equalization is a more commonly used technique in image enhancement technology. The histogram of an image is a graphical representation of the intensity and the probability of occurrence of intensity values in a given image. Image histogram equalization is a method of equalizing the probability distribution of intensity values in an image. Due to the limitations of the camera device or the characteristics of the scene, the captured image pixels will be concentrated in some parts of the pixel value range, resulting in a dim image without a sense of hierarchy, and the scene information cannot be truly reproduced, that is, the image contrast is low. The histogram of the image describes the distribution of the pixel values of the image on the value domain, and shows the distribution characteristics of the image pixel values. The above problem of low image contrast can be represented by constructing a histogram of image pixel values. At the same time, adjusting the histogram of the image can change the relative characteristics such as the contrast of the image.
当前使用直方图均衡的彩色图像增强方法主要有如下几种:The current color image enhancement methods using histogram equalization mainly include the following:
1、根据图像色彩值的累积直方图生成一种映射关系,增强图像对比度。为了实现保护整体亮度或其他目的,该方法需要在累积直方图上划分子区域并分别计算累计密度函数,划分子区域的过程中超参较多,手工挑选难度较大,且难以适应不同场景。1. Generate a mapping relationship according to the cumulative histogram of image color values to enhance image contrast. In order to protect the overall brightness or other purposes, this method needs to divide the sub-regions on the cumulative histogram and calculate the cumulative density function separately. There are many hyperparameters in the process of dividing the sub-regions, which is difficult to manually select and difficult to adapt to different scenarios.
2、使用局部自适应方案,通过在局部基础上采用直方图均衡来生成显示出改善的曝光和色调均匀性的数字图像,即使像素亮度水平的拉伸和压缩适应像素中像素的局部分布。该方法针对局部区域的调整效果较好,但不同区域之间容易产生不连续的边缘,且由于强调局部效果,因此整体效果并不好。2. Use a locally adaptive scheme to generate digital images that exhibit improved exposure and tonal uniformity by employing histogram equalization on a local basis, even though the stretching and compression of pixel brightness levels adapts to the local distribution of pixels within a pixel. The adjustment effect of this method for local areas is good, but discontinuous edges are easily generated between different areas, and the overall effect is not good due to the emphasis on local effects.
3、在RGB域颜色空间内分别对RGB通道进行直方图均衡,色调会出现改变,因此还需要添加色调保留模块,例如使用小波变换保留图像的小波细节系数并将直方图均衡后的结果进行重建。该类方法计算复杂度较高并且引入色调失真的问题。3. Perform histogram equalization on the RGB channels in the RGB domain color space, and the tone will change. Therefore, a tone preservation module needs to be added. For example, wavelet transform is used to preserve the wavelet detail coefficients of the image and reconstruct the result after histogram equalization. . This kind of method has high computational complexity and introduces the problem of tone distortion.
可见,现有的直方图均衡实现方案存在图像失真或计算量过大的问题,因此需要一种效果较好且对硬件友好可以实现实时处理的图像增强方法。It can be seen that the existing implementation scheme of histogram equalization has the problem of image distortion or excessive calculation, so an image enhancement method with good effect and hardware-friendly that can realize real-time processing is required.
发明内容SUMMARY OF THE INVENTION
本公开要解决的一个技术问题是提供一种效果较好,适应不同场景且对硬件友好可以实现实时处理的图像增强方法。A technical problem to be solved by the present disclosure is to provide an image enhancement method that has better effects, is adaptable to different scenarios, and is hardware-friendly and can realize real-time processing.
根据本公开的第一个方面,提供了一种图像增强方法,包括:获取图像的亮度域表示,亮度域表示用于表征图像在亮度域中的像素值分布;基于亮度域表示计算拉伸系数;以及基于拉伸系数更新图像在亮度域中的像素值。According to a first aspect of the present disclosure, an image enhancement method is provided, comprising: acquiring a luminance domain representation of an image, where the luminance domain representation is used to characterize the pixel value distribution of the image in the luminance domain; calculating a stretching coefficient based on the luminance domain representation ; and updating the pixel values of the image in the luminance domain based on the stretch factor.
可选地,基于亮度域表示计算拉伸系数的步骤包括:基于亮度域表示计算亮度域像素均值;基于亮度域像素均值与亮度期望值,计算拉伸系数,其中,拉伸系数的大小与亮度域像素均值负相关,并且与亮度期望值正相关。Optionally, the step of calculating the stretch coefficient based on the luminance domain representation includes: calculating the luminance domain pixel mean value based on the luminance domain representation; Pixel mean is negatively correlated and positively correlated with expected luminance.
可选地,基于如下公式计算拉伸系数k,Optionally, the tensile coefficient k is calculated based on the following formula,
或者 or
其中,b为亮度域像素均值,y为亮度期望值,p(x)表示像素值为x的像素在图像中的占比。Among them, b is the average value of pixels in the luminance domain, y is the expected value of luminance, and p(x) represents the proportion of pixels with pixel value x in the image.
可选地,该方法还包括:将拉伸系数的取值限制到第一数值区间。Optionally, the method further includes: limiting the value of the stretch coefficient to a first value interval.
可选地,该方法还包括:基于取值范围限制参数和亮度域像素均值,计算第一数值区间。Optionally, the method further includes: calculating the first numerical interval based on the value range limit parameter and the average value of pixels in the luminance domain.
可选地,第一数值区间为[(1-μ)*b,μ+(1-μ)*b],其中,μ为取值范围限制参数,b为亮度域像素均值。Optionally, the first numerical interval is [(1-μ)*b, μ+(1-μ)*b], where μ is a value range limitation parameter, and b is a pixel mean value in the luminance domain.
可选地,基于拉伸系数更新图像在亮度域中的像素值的步骤包括:基于像素值、亮度域像素均值以及拉伸系数,调整像素值。Optionally, the step of updating the pixel value of the image in the luminance domain based on the stretching coefficient includes: adjusting the pixel value based on the pixel value, the average pixel value in the luminance domain and the stretching coefficient.
可选地,基于如下公式调整像素值xi,Optionally, adjust the pixel value xi based on the following formula,
其中,yi为调整后的像素值,k为拉伸系数,b为亮度域像素均值,xmin为图像在亮度域中的最小像素值,xmax为图像在亮度域中的最大像素值。Among them, y i is the adjusted pixel value, k is the stretching coefficient, b is the average pixel value of the luminance domain, x min is the minimum pixel value of the image in the luminance domain, and x max is the maximum pixel value of the image in the luminance domain.
可选地,该方法还包括:将方法执行过程中涉及的运算量化成定点数运算,并将方法交由现场可编程逻辑门阵列执行。Optionally, the method further includes: quantizing the operations involved in the execution of the method into fixed-point operations, and entrusting the method to a field programmable logic gate array for execution.
可选地,现场可编程逻辑门阵列采用多端口BRAM存储器,现场可编程逻辑门阵列将多端口BRAM存储器的深度划分为至少两个子深度,每个子深度对应至少256个存储地址,图像中相邻的像素列被分配到不同的子深度,现场可编程逻辑门阵列将读取的图像在亮度域中的像素值作为地址,对该像素值所在像素列所分配的子深度进行读取,将读出的数值加1并写回原地址,现场可编程逻辑门阵列在读取完所有像素后,将不同子深度中对应相同像素值的存储地址中所存储的数值相加,并将相加结果作为该像素值的数量,得到亮度域表示。Optionally, the field programmable logic gate array adopts a multi-port BRAM memory, and the field programmable logic gate array divides the depth of the multi-port BRAM memory into at least two sub-depths, each sub-depth corresponds to at least 256 storage addresses, adjacent in the image. The pixel columns are assigned to different sub-depths, and the field programmable logic gate array takes the pixel value of the read image in the luminance domain as the address, reads the sub-depth assigned to the pixel column where the pixel value is located, and reads the
根据本公开的第二个方面,还提供了一种图像增强装置,包括:获取模块,用于获取图像的亮度域表示,所述亮度域表示用于表征所述图像在亮度域中的像素值分布;计算模块,用于基于所述像素值分布计算拉伸系数;以及更新模块,用于基于所述拉伸系数更新所述图像在所述亮度域中的像素值。According to a second aspect of the present disclosure, there is also provided an image enhancement apparatus, comprising: an acquisition module configured to acquire a luminance domain representation of an image, where the luminance domain representation is used to characterize pixel values of the image in the luminance domain distribution; a calculation module for calculating a stretch coefficient based on the pixel value distribution; and an update module for updating pixel values of the image in the luminance domain based on the stretch coefficient.
根据本公开的第三个方面,还提供了一种现场可编程逻辑门阵列,用于执行上述第一个方面所述的方法,其中,方法涉及的运算为经量化得到的定点数运算。According to a third aspect of the present disclosure, there is also provided a field programmable logic gate array for executing the method described in the first aspect, wherein the operation involved in the method is a fixed-point number operation obtained by quantization.
可选地,现场可编程逻辑门阵列采用多端口BRAM存储器,现场可编程逻辑门阵列将多端口BRAM存储器的深度划分为至少两个子深度,每个子深度对应至少256个存储地址,图像中相邻的像素列被分配到不同的子深度,现场可编程逻辑门阵列将读取的图像在亮度域中的像素值作为地址,对该像素值所在像素列所分配的子深度进行读取,将读出的数值加1并写回原地址,现场可编程逻辑门阵列在读取完所有像素后,将不同子深度中对应相同像素值的存储地址中所存储的数值相加,并将相加结果作为该像素值的数量,得到亮度域表示。Optionally, the field programmable logic gate array adopts a multi-port BRAM memory, and the field programmable logic gate array divides the depth of the multi-port BRAM memory into at least two sub-depths, each sub-depth corresponds to at least 256 storage addresses, adjacent in the image. The pixel columns are assigned to different sub-depths, and the field programmable logic gate array takes the pixel value of the read image in the luminance domain as the address, reads the sub-depth assigned to the pixel column where the pixel value is located, and reads the
根据本公开的第四个方面,还提供了一种成像设备,包括:成像装置和现场可编程逻辑门阵列,所述现场可编程逻辑门阵列用于执行上述第一个方面所述的方法,以对所述成像装置拍摄得到的图像进行增强,其中,所述方法涉及的运算为经量化得到的定点数运算。According to a fourth aspect of the present disclosure, there is also provided an imaging device, comprising: an imaging device and a field programmable logic gate array, the field programmable logic gate array is used to perform the method described in the first aspect above, In order to enhance the image captured by the imaging device, the operation involved in the method is a fixed-point number operation obtained by quantization.
根据本公开的第五个方面,提供了一种计算设备,包括:处理器;以及存储器,其上存储有可执行代码,当可执行代码被处理器执行时,使处理器执行如上述第一方面所述的方法。According to a fifth aspect of the present disclosure, there is provided a computing device, comprising: a processor; and a memory on which executable code is stored, and when the executable code is executed by the processor, causes the processor to execute the above-mentioned first the method described in the aspect.
根据本公开的第六个方面,提供了一种计算机程序产品,包括可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器执行如上述第一方面所述的方法。According to a sixth aspect of the present disclosure, there is provided a computer program product comprising executable code, when the executable code is executed by a processor of an electronic device, the processor is caused to execute as described in the first aspect above Methods.
根据本公开的第七个方面,提供了一种非暂时性机器可读存储介质,其上存储有可执行代码,当可执行代码被电子设备的处理器执行时,使处理器执行如上述第一方面所述的方法。According to a seventh aspect of the present disclosure, there is provided a non-transitory machine-readable storage medium on which executable codes are stored, and when the executable codes are executed by a processor of an electronic device, the processor is caused to execute the above-mentioned first step. The method described in one aspect.
由此,本公开通过获取图像的亮度域表示,并使用基于亮度域表示计算得到的拉伸系数对图像在亮度域中的像素值进行调整,使得在不影响图像颜色(即不会失真)的同时,可以实现对比度增强、并且能够在一定程度上降低计算量,对硬件友好。Therefore, the present disclosure adjusts the pixel value of the image in the luminance domain by acquiring the luminance domain representation of the image and using the stretch coefficient calculated based on the luminance domain representation, so that the image color is not affected (ie, will not be distorted). At the same time, contrast enhancement can be achieved, and the calculation amount can be reduced to a certain extent, which is friendly to hardware.
附图说明Description of drawings
通过结合附图对本公开示例性实施方式进行更详细的描述,本公开的上述以及其它目的、特征和优势将变得更加明显,其中,在本公开示例性实施方式中,相同的参考标号通常代表相同部件。The above and other objects, features and advantages of the present disclosure will become more apparent from the more detailed description of the exemplary embodiments of the present disclosure taken in conjunction with the accompanying drawings, wherein the same reference numerals generally refer to the exemplary embodiments of the present disclosure. same parts.
图1示出了根据本公开一个实施例的图像增强方法的示意性流程图。FIG. 1 shows a schematic flowchart of an image enhancement method according to an embodiment of the present disclosure.
图2示出了像素值调整公式的可视化效果。Figure 2 shows the visualization of the pixel value adjustment formula.
图3示出了硬件的整体处理流程示意图。FIG. 3 shows a schematic diagram of the overall processing flow of the hardware.
图4示出了一种数据流传输及BRAM例化示意图。FIG. 4 shows a schematic diagram of data flow transmission and BRAM instantiation.
图5A示出了整体较为昏暗的图像。Figure 5A shows an overall darker image.
图5B为利用本公开对图5A所示图像进行对比度增强后的图像。FIG. 5B is an image after contrast enhancement of the image shown in FIG. 5A using the present disclosure.
图6示出了根据本公开一个实施例的图像增强装置的结构示意图。FIG. 6 shows a schematic structural diagram of an image enhancement apparatus according to an embodiment of the present disclosure.
图7示出了根据本公开一个实施例的成像设备的结构示意图。FIG. 7 shows a schematic structural diagram of an imaging device according to an embodiment of the present disclosure.
图8示出了根据本公开一个实施例的计算设备的结构示意图。FIG. 8 shows a schematic structural diagram of a computing device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的优选实施方式。虽然附图中显示了本公开的优选实施方式,然而应该理解,可以以各种形式实现本公开而不应被这里阐述的实施方式所限制。相反,提供这些实施方式是为了使本公开更加透彻和完整,并且能够将本公开的范围完整地传达给本领域的技术人员。Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
针对图像的对比度较低、曝光不合适(图像较为昏暗或过亮)的问题,本公开提出,可以获取图像在亮度域中的分量(即亮度分量或亮度域分量),并在考虑图像亮度水平的情况下对亮度分量进行调整(拉伸),以在不影响图像颜色(即不会失真)的同时,调整图像的整体亮度,实现对比度增强、并且能够在一定程度上降低计算量,对硬件友好。In view of the problems of low contrast and inappropriate exposure (image is dark or too bright) of the image, the present disclosure proposes that the component of the image in the luminance domain (that is, the luminance component or the luminance domain component) can be obtained, and the luminance level of the image can be considered Adjust (stretch) the brightness component in the case of not affecting the color of the image (that is, without distortion), adjust the overall brightness of the image, achieve contrast enhancement, and reduce the amount of calculation to a certain extent. friendly.
图1示出了根据本公开一个实施例的图像增强方法的示意性流程图。FIG. 1 shows a schematic flowchart of an image enhancement method according to an embodiment of the present disclosure.
参见图1,在步骤S110,获取图像的亮度域表示。Referring to FIG. 1, in step S110, a luminance domain representation of the image is obtained.
亮度域表示用于表征图像在亮度域(即亮度通道)中的像素值分布。像素值分布,也即像素值的分布情况,如可以是每个像素值的像素个数,也可以是每个像素值的像素占比。The luminance domain representation is used to characterize the distribution of pixel values in the luminance domain (ie, luminance channel) of an image. The pixel value distribution, that is, the distribution of pixel values, may be the number of pixels per pixel value, or the pixel ratio of each pixel value.
图像在亮度域中的像素值,反映的是图像像素的亮度值。The pixel value of the image in the luminance domain reflects the luminance value of the image pixel.
亮度域表示可以是图像在亮度域中的分量,即图像的亮度分量或亮度域分量。The luminance domain representation may be a component of the image in the luminance domain, that is, the luminance component or the luminance domain component of the image.
亮度域表示也可以是对图像的亮度分量进行统计所得到的统计结果。The luminance domain representation may also be a statistical result obtained by performing statistics on luminance components of an image.
例如,亮度域表示可以是对图像的亮度分量进行统计得到的直方图。直方图标记了图像在亮度域中每个像素值的个数,或每个像素值的个数在所有像素个数中的占比。For example, the luminance domain representation may be a histogram derived from statistics of luminance components of an image. The histogram marks the number of each pixel value of the image in the luminance domain, or the ratio of the number of each pixel value to the total number of pixels.
图像是指待进行图像增强的图像,具体可以是对比度较低、曝光不合适的图像,如较为昏暗或过亮的图像。An image refers to an image to be enhanced, specifically an image with low contrast and inappropriate exposure, such as a relatively dim or too bright image.
图像可以是RGB图像,也可以是其他色彩空间(如HSV、YUV、YCbCr)中的图像。RGB色彩空间中没有亮度分量,因此如果图像是RGB这种没有亮度分量的色彩空间中的图像,则需要将图像转换至其他具有亮度分量的色彩空间,以获取图像的亮度域表示。The images can be RGB images or images in other color spaces such as HSV, YUV, YCbCr. There is no luminance component in the RGB color space, so if the image is an image in a color space with no luminance component such as RGB, the image needs to be converted to another color space with a luminance component to obtain the luminance domain representation of the image.
例如,HSV(色调、饱和度、明度)是根据颜色的直观特性由A.R.Smith在1978年创建的一种颜色空间,也称六角锥体模型(Hexcone Model),其中V通道即为亮度通道,因此可以将RGB图像转换到HSV色彩空间。For example, HSV (hue, saturation, lightness) is a color space created by A.R. Smith in 1978 according to the intuitive characteristics of color, also known as the Hexcone Model, where the V channel is the luminance channel, so Can convert RGB images to HSV color space.
再例如,在YUV色彩空间中,“Y”表示明亮度(Luminance或Luma),也就是灰阶值;而“U”和“V”表示的则是色度(Chrominance或Chroma),其中Y通道即为亮度通道,“亮度”是通过RGB输入信号进行线性变换所得出的,因此也可以将RGB图像转换到YUV色彩空间。For another example, in the YUV color space, "Y" represents the brightness (Luminance or Luma), that is, the grayscale value; while "U" and "V" represent the chromaticity (Chrominance or Chroma), where the Y channel That is, the brightness channel, "brightness" is obtained by linear transformation of the RGB input signal, so the RGB image can also be converted to the YUV color space.
在步骤S120,基于亮度域表示计算拉伸系数。At step S120, the stretch factor is calculated based on the luminance domain representation.
拉伸系数用于对图像进行对比度增强,以解决图像存在的对比度较低、曝光不合适的问题。造成图像对比度较低的问题原因主要在于,图像像素集中于像素值域的某些部分,从而导致图像昏暗或过亮,没有层次感,无法真实再现场景信息,即图像对比度较低。The stretch factor is used to enhance the contrast of the image to solve the problem of low contrast and inappropriate exposure in the image. The main reason for the problem of low image contrast is that the image pixels are concentrated in some parts of the pixel value range, resulting in a dim or too bright image, without a sense of hierarchy, and unable to truly reproduce the scene information, that is, the image contrast is low.
本公开述及的拉伸系数中的“拉伸”,是指将图像在亮度域中原本较为集中的像素值向像素值域(如0到255,或归一化后的0到1)这一更宽广的取值区间进行拉伸,通过均衡像素值分布,提升图像的对比度。The "stretching" in the stretching coefficient mentioned in the present disclosure refers to shifting the pixel values that are originally relatively concentrated in the luminance domain of the image to the pixel value domain (such as 0 to 255, or normalized 0 to 1). A wider value range is stretched to improve the contrast of the image by balancing the distribution of pixel values.
换言之,拉伸系数用于调整图像在亮度域中的像素值分布。拉伸系数中“拉伸”是一个广义上的拉伸,是指对图像的亮度域表示所表征的像素值分布进行拉伸,以增强对比度,而非限定必须对每个像素值都进行拉伸。也就是说,在将拉伸系数用于调整具体像素值时,不仅可以包括调高像素值(拉伸),还可以包括调低像素值(缩放)。In other words, the stretch factor is used to adjust the pixel value distribution of the image in the luminance domain. The "stretching" in the stretching coefficient is a generalized stretching, which refers to stretching the pixel value distribution represented by the luminance domain representation of the image to enhance the contrast, rather than restricting that each pixel value must be stretched. stretch. That is to say, when the stretching coefficient is used to adjust a specific pixel value, it may include not only increasing the pixel value (stretching), but also decreasing the pixel value (scaling).
在基于拉伸系数对图像进行对比度增强时,需要考虑图像的原始亮度并在一定程度上保护图像的原始亮度,以避免亮度失真。为此,本公开提出,可以基于亮度域表示来计算拉伸系数,使得拉伸系数的取值与图像亮度水平高度相关,从而可以起到保护亮度的作用。When enhancing the contrast of an image based on the stretching coefficient, it is necessary to consider the original brightness of the image and protect the original brightness of the image to a certain extent to avoid brightness distortion. To this end, the present disclosure proposes that the stretch coefficient can be calculated based on the luminance domain representation, so that the value of the stretch coefficient is highly correlated with the image luminance level, so that the luminance can be protected.
作为示例,可以基于亮度域表示计算亮度域像素均值,基于亮度域像素均值与亮度期望值,计算拉伸系数。其中,拉伸系数的大小与亮度域像素均值负相关,并且与亮度期望值正相关。亮度域像素均值用于表征图像在亮度域中所有像素值的平均值。亮度期望值用于表征对图像在亮度域中的像素值进行调整后期望的亮度均值。拉伸系数可以用于使更新后的图像的亮度域像素平均值比更新前更加接近亮度期望值。As an example, the luminance domain pixel mean value may be calculated based on the luminance domain representation, and the stretch factor may be calculated based on the luminance domain pixel mean value and the luminance expected value. Among them, the size of the stretch coefficient is negatively related to the mean value of the pixels in the luminance domain, and positively related to the expected value of luminance. The luminance domain pixel mean is used to characterize the average of all pixel values in the luminance domain of the image. The expected brightness value is used to represent the expected mean brightness value after adjusting the pixel values of the image in the brightness domain. The stretch factor can be used to make the luminance domain pixel average of the updated image closer to the desired luminance value than before the update.
亮度期望值一般取值为0.5(数值归一化后结果),即图像像素值值域的一半,从视觉角度看若亮度域像素均值处于该值附近,图像整体视觉效果较好。亮度期望值一般不会变动,即不会随着图像变化而需要改变。但是亮度期望值仍然可以设计为可调节的参数,实际应用中若希望图像暗一些或亮一些时可以通过调节亮度期望值实现。The expected value of brightness is generally 0.5 (the result after numerical normalization), which is half of the image pixel value range. From a visual point of view, if the average pixel value of the brightness domain is near this value, the overall visual effect of the image is better. The expected value of brightness generally does not change, that is, it does not need to change as the image changes. However, the expected brightness value can still be designed as an adjustable parameter. In practical applications, if you want the image to be darker or brighter, it can be achieved by adjusting the expected brightness value.
可选地,可以基于亮度域像素均值与亮度期望值之间的差异,计算拉伸系数。拉伸系数可以被设计为,亮度域像素均值低于亮度期望值时拉伸系数的取值大于亮度域像素均值高于亮度期望值时拉伸系数的取值,且拉伸系数的取值与亮度域像素均值负相关。Optionally, the stretch factor can be calculated based on the difference between the luminance domain pixel mean and the desired luminance value. The stretch factor can be designed such that when the average value of pixels in the luminance domain is lower than the expected value of luminance, the value of the stretch coefficient is greater than that when the average value of pixels in the luminance domain is higher than the expected value of luminance, and the value of the stretch coefficient is the same as that in the luminance domain. Pixel mean is negatively correlated.
例如,可以是当亮度域像素均值低于亮度期望值时,拉伸系数的取值较大,且亮度域像素均值越低拉伸系数的取值越大;反之图像像素均值高于期望值时,拉伸系数的取值较小,且亮度域像素均值越高拉伸系数的取值越小。For example, when the average value of pixels in the luminance domain is lower than the expected value of luminance, the value of the stretching coefficient is larger, and the lower the average value of pixels in the luminance domain is, the larger the value of the stretching coefficient is; The value of the stretch factor is smaller, and the higher the average pixel value in the luminance domain, the smaller the stretch factor.
例如,可以基于如下公式计算拉伸系数kFor example, the stretch factor k can be calculated based on the following formula
b为亮度域像素均值,y为亮度期望值,p(x)表示像素值为x的像素在图像中的占比。其中公式中的亮度域像素值为归一化结果,最高像素值为1,最低像素值为0。b is the mean value of pixels in the luminance domain, y is the expected value of luminance, and p(x) represents the proportion of pixels with pixel value x in the image. The luminance domain pixel value in the formula is the normalized result, the highest pixel value is 1, and the lowest pixel value is 0.
(1-b)y表示最高像素值与亮度域像素均值的差值与亮度期望值的乘积;表示像素值大于亮度域像素均值的所有像素的像素平均值;表示大于亮度域像素均值的像素占比与亮度域像素均值的乘积;表示像素值小于亮度域像素均值的所有像素的像素平均值;表示亮度域像素均值。(1-b)y represents the product of the difference between the highest pixel value and the mean value of the pixels in the luminance domain and the expected value of luminance; Indicates the pixel average value of all pixels whose pixel value is greater than the pixel average value of the luminance domain; Represents the product of the proportion of pixels greater than the mean value of pixels in the luminance domain and the mean value of pixels in the luminance domain; Indicates the pixel average value of all pixels whose pixel value is less than the pixel average value of the luminance domain; Represents the luminance domain pixel mean.
为了便于理解,拉伸系数k的计算公式(1)可以简化为In order to facilitate understanding, the calculation formula (1) of the tensile coefficient k can be simplified as
其中-delta是(x-b)p(x)在b和1之间的积分,即高于亮度域像素均值的所有像素的像素值中高出均值的部分的平均值。in -delta is the integral of (xb)p(x) between b and 1, that is, the average of the above-mean pixel values of all pixels above the luminance-domain pixel mean.
上述公式中的亮度域像素均值b、亮度期望值y均为0~1之间的浮点数,为无量纲单位,故最终计算得到的拉伸系数k为无量纲单位。In the above formula, the pixel mean value b in the luminance domain and the expected luminance value y are both floating point numbers between 0 and 1, which are dimensionless units. Therefore, the final calculated stretching coefficient k is a dimensionless unit.
从公式(2)可以看出,拉伸系数k的大小是基于亮度域像素均值b和亮度期望值y的比值,以及亮度域像素均值b计算的。当亮度域像素均值b低于亮度期望值y时,k值较大,且亮度域像素均值b越低k值越大;反之亮度域像素均值b高于亮度期望值y时,k值较小,且亮度域像素均值b越高k越小;当亮度域像素均值b等于亮度期望值y时,k值等于亮度期望值y。It can be seen from formula (2) that the size of the stretching coefficient k is calculated based on the ratio of the luminance domain pixel mean value b to the luminance expected value y, and the luminance domain pixel mean value b. When the pixel mean value b in the luminance domain is lower than the expected brightness value y, the k value is larger, and the lower the pixel mean value b in the luminance domain is, the larger the k value is; on the contrary, when the pixel mean value b in the luminance domain is higher than the expected luminance value y, the k value is smaller, and The higher the pixel mean value b in the luminance domain, the smaller the k is; when the mean pixel value b in the luminance domain is equal to the expected luminance value y, the value of k is equal to the expected luminance value y.
拉伸系数k的计算原理可以归纳为,根据图像亮度水平和期望亮度水平(即亮度期望值)的差异计算拉伸系数k,且拉伸系数k与图像亮度水平高度相关,起到保护亮度的作用。与之相对的,目前主流的对比度增强算法并未考虑原始图像亮度水平。The calculation principle of the stretching coefficient k can be summarized as follows: the stretching coefficient k is calculated according to the difference between the image brightness level and the desired brightness level (that is, the expected brightness value), and the stretching coefficient k is highly correlated with the image brightness level, which plays a role in protecting the brightness. . In contrast, the current mainstream contrast enhancement algorithms do not consider the brightness level of the original image.
考虑到拉伸系数过大或过小都会导致图像发生过于明显的变化,出现局部过曝或昏暗的情况,本公开提出,可以将拉伸系数的取值限制在第一数值区间,第一数值区间可以视为一个合理的取值范围。第一数值区间可以是预先设定好的与图像无关的范围,也可以是基于图像的亮度域表示确定的范围。Considering that the stretching coefficient is too large or too small, the image will be changed too obviously, and local overexposure or dim situation will occur, the present disclosure proposes that the value of the stretching coefficient can be An interval can be regarded as a reasonable range of values. The first value interval may be a preset range irrelevant to the image, or may be a range determined based on the luminance domain representation of the image.
作为示例,可以基于取值范围限制参数和亮度域像素均值,计算第一数值区间。取值范围限制参数用于限制拉伸系数的取值范围大小,在实际应用中可以根据算法效果调整取值范围限制参数的取值,例如如果算法处理后的图像出现过亮的情况,则可以适当降低取值范围限制参数的取值以抑制拉伸效果。As an example, the first value interval may be calculated based on the value range limit parameter and the luminance domain pixel mean value. The value range limit parameter is used to limit the value range of the stretching coefficient. In practical applications, the value of the value range limit parameter can be adjusted according to the effect of the algorithm. For example, if the image processed by the algorithm is too bright, you can Appropriately reduce the value of the value range limit parameter to suppress the stretching effect.
如前所述,取值范围限制参数制了拉伸系数的取值范围。实际测试时该值取值为0.25。该值一般不会变动。但是该值仍然可调,在部分极端情况下该值影响实际拉伸效果。场景过于昏暗或过于明亮,可以适当增大该值以加强拉伸效果;反之若输出的图像过于昏暗或明亮则可以调小该值,减弱拉伸效果。As mentioned earlier, the Range Limit parameter controls the range of values for the stretch factor. In actual testing, the value is 0.25. This value generally does not change. However, this value is still adjustable, and in some extreme cases, this value affects the actual stretching effect. If the scene is too dark or too bright, this value can be appropriately increased to enhance the stretching effect; otherwise, if the output image is too dark or bright, the value can be decreased to weaken the stretching effect.
第一数值区间可以是[(1-μ)*b,μ+(1-μ)*b],其中,μ为取值范围限制参数,b为亮度域像素均值。由此可以根据原输入图像均值b和取值范围限制参数μ计算k的限制范围并更新kThe first value interval may be [(1-μ)*b, μ+(1-μ)*b], where μ is a limit parameter of the value range, and b is the average value of pixels in the luminance domain. Therefore, the limit range of k can be calculated according to the original input image mean value b and the value range limit parameter μ, and k can be updated
其中,当(1-μ)*b<k<μ+(1-μ)*b时,k的取值等于按照上述拉伸系数k的计算公式(1)或(2)计算得到的数值。Wherein, when (1-μ)*b<k<μ+(1-μ)*b, the value of k is equal to the value calculated according to the calculation formula (1) or (2) of the elongation coefficient k.
在步骤S130,基于拉伸系数更新(即调整)图像在亮度域中的像素值。In step S130, the pixel values of the image in the luminance domain are updated (ie adjusted) based on the stretch coefficient.
基于拉伸系数可以针对图像在亮度域中的至少部分(如所有)像素值进行调整。其中,对于不同取值的像素值,可以使用非线性调整方式进行调整,以将图像在亮度域中的像素值均匀拉伸至像素值域。作为示例,可以基于像素值、亮度域像素均值以及拉伸系数,调整像素值。例如,可以基于如下公式调整像素值xi Adjustments may be made for at least some (eg, all) pixel values of the image in the luminance domain based on the stretch factor. Among them, for pixel values with different values, a non-linear adjustment method can be used to adjust, so as to uniformly stretch the pixel values of the image in the luminance domain to the pixel value domain. As an example, the pixel value may be adjusted based on the pixel value, the luminance domain pixel mean, and the stretch factor. For example, the pixel value x i can be adjusted based on the following formula
其中,yi为调整后的像素值,k为拉伸系数,b为亮度域像素均值,xmin为图像在亮度域中的最小像素值,xmax为图像在亮度域中的最大像素值。其中公式中的亮度域像素值为归一化结果,最高像素值为1,最低像素值为0。Among them, y i is the adjusted pixel value, k is the stretching coefficient, b is the average pixel value of the luminance domain, x min is the minimum pixel value of the image in the luminance domain, and x max is the maximum pixel value of the image in the luminance domain. The luminance domain pixel value in the formula is the normalized result, the highest pixel value is 1, and the lowest pixel value is 0.
像素值调整公式(4)的作用是将图像像素值均匀拉伸至[0,1]的范围。当像素值小于图像像素值均值时,该公式将输入像素值和均值b作比较,分布至[0,k);反之则是拉伸至[k,1]的范围内。图2示出了该公式的可视化效果。如图2所示,横坐标为拉伸前的像素值,纵坐标为拉伸后的像素值,整个拉伸过程为非线性拉伸,其中k72_b11表示拉伸系数k为72,亮度域像素均值b为11。The function of the pixel value adjustment formula (4) is to uniformly stretch the image pixel value to the range of [0,1]. When the pixel value is less than the mean value of the image pixel value, the formula compares the input pixel value with the mean b, and distributes it to [0,k); otherwise, it stretches to the range of [k,1]. Figure 2 shows a visualization of this formula. As shown in Figure 2, the abscissa is the pixel value before stretching, the ordinate is the pixel value after stretching, and the entire stretching process is nonlinear stretching, where k72_b11 indicates that the stretching coefficient k is 72, and the average pixel value in the luminance domain b is 11.
至此,结合图1就本公开的图像增强方法做了示例性说明。So far, the image enhancement method of the present disclosure has been exemplarily described with reference to FIG. 1 .
本公开还提供了一种基于上述方法的硬件适配量化方案。The present disclosure also provides a hardware adaptive quantization scheme based on the above method.
本公开可以将方法执行过程中涉及的运算(如浮点数运算)量化成定点数运算,并将方法交由硬件执行,如可以将量化成定点数运算的方法交由如现场可编程逻辑门阵列(Field Programmable Gate Array,FPGA)执行。The present disclosure can quantify the operations involved in the execution of the method (such as floating-point number operations) into fixed-point number operations, and assign the method to hardware for execution. (Field Programmable Gate Array, FPGA) implementation.
FPGA属于集成电路中的一种半定制电路,由一系列可配逻辑单元(CLB,Configurable Logic Block)以及可编程连接组成。可通过硬件描述语言快速编译烧录为晶体管电路的组合,从而能够快速实现算法在硬件平台上的部署和加速。具有极高的计算能耗比,迭代迅速,定制化等特点,特别适用于目前人工智能以及数据中心的相关应用。FPGA belongs to a kind of semi-custom circuit in integrated circuit, which consists of a series of Configurable Logic Blocks (CLB, Configurable Logic Block) and programmable connections. It can be quickly compiled and programmed into a combination of transistor circuits through a hardware description language, so that the algorithm can be quickly deployed and accelerated on the hardware platform. It has the characteristics of extremely high computing energy consumption ratio, rapid iteration, customization, etc. It is especially suitable for current artificial intelligence and related applications in data centers.
可以使用FPGA实现上文结合图1所示的方法,利用FPGA内部丰富的DSP、BRAM、CLB等可配置资源,并行处理数据流,可以实现4K、FPS60等类型的视频图像实时增强。FPGA can be used to implement the method shown above in conjunction with Figure 1, and the rich DSP, BRAM, CLB and other configurable resources inside the FPGA can be used to process data streams in parallel, and real-time enhancement of 4K, FPS60 and other types of video images can be achieved.
在使用FPGA实现上述方法时,可以将方法涉及的各个参数限制为像素值范围(如0~255)内的的非负整数,并将积分过程改为等价的乘累加,以将方法中的浮点数运算量化成定点数运算。其中,像素值范围是指待进行图像增强的图像的像素值范围。When using FPGA to implement the above method, the parameters involved in the method can be limited to non-negative integers within the pixel value range (such as 0 to 255), and the integration process can be changed to equivalent multiply-accumulate, so that the Floating-point arithmetic is quantized into fixed-point arithmetic. The range of pixel values refers to the range of pixel values of the image to be enhanced.
以方法使用上文述及的拉伸系数k的计算公式(1)、拉伸系数k的取值限制公式(3)以及像素值调整公式(4)对图像进行增强为例,基于该方法的硬件适配量化后方案如下。Taking the method to use the above-mentioned calculation formula (1) of the stretching coefficient k, the value restriction formula (3) of the stretching coefficient k, and the pixel value adjustment formula (4) to enhance the image as an example, the method based on this method is used to enhance the image. The scheme after hardware adaptation and quantization is as follows.
1、给出直方图均衡化之后的图像像素值期望值y和期望值的取值范围的限制参数μ。1. Give the expected value y of the image pixel value after histogram equalization and the limiting parameter μ of the value range of the expected value.
2、统计各个像素值对应的像素点的数量,获得图像的像素值分布直方图,其中直方图的横坐标取值范围限制为0至255,若图像像素位宽高于8bit,可增加直方图横坐标取值范围,例如如果输入像素值范围是0~4095时,直方图横坐标取值范围也为0~4095;2. Count the number of pixel points corresponding to each pixel value, and obtain the pixel value distribution histogram of the image. The value range of the abscissa of the histogram is limited to 0 to 255. If the pixel width of the image is higher than 8bit, the histogram can be increased. The value range of the abscissa, for example, if the input pixel value range is 0 to 4095, the value range of the abscissa of the histogram is also 0 to 4095;
3、根据输入图像像素值计算像素值均值b,并取比特位的高8位b_;3. Calculate the mean value b of the pixel value according to the pixel value of the input image, and take the upper 8 bits of the bit bit b_;
4、根据如下公式运用累加乘方法计算累计分布函数;4. Calculate the cumulative distribution function using the cumulative multiplication method according to the following formula;
5、将上述累积分布函数的结果代入如下公式,计算得到直方图拉伸系数k,并在计算除法后将该值定点化;5. Substitute the result of the above cumulative distribution function into the following formula, calculate the histogram stretching coefficient k, and fix the value after calculating the division;
6、根据原输入图像均值b和取值范围限制参数μ计算k的限制范围并更新k;6. Calculate the limit range of k according to the mean value b of the original input image and the limit parameter μ of the value range and update k;
7、基于输入像素值x和上述拉伸系数k和图像均值b,计算新的像素值;7. Calculate a new pixel value based on the input pixel value x and the above-mentioned stretching coefficient k and the image mean value b;
图3示出了硬件的整体处理流程示意图。FIG. 3 shows a schematic diagram of the overall processing flow of the hardware.
如图3所示,硬件处理流程主要包括直方图统计、求k值以及针对像素值进行调整低点新的像素值这三个步骤。以FPGA为例,上述三个步骤的具体实现如下。As shown in FIG. 3 , the hardware processing flow mainly includes three steps: histogram statistics, k-value calculation, and adjustment of low-point new pixel values for pixel values. Taking FPGA as an example, the specific implementation of the above three steps is as follows.
步骤P1、对图像数据逐帧进行直方图统计Step P1, perform histogram statistics on the image data frame by frame
直方图统计就是将一帧图像在亮度域中每个像素值出现的个数进行统计。Histogram statistics is to count the number of occurrences of each pixel value in a frame of image in the luminance domain.
FPGA可以采用多端口(如双端口)BRAM存储器。FPGAs can use multi-port (eg dual-port) BRAM memory.
FPGA可以将多端口BRAM存储器的深度划分为至少两个子深度,每个子深度对应至少256个存储地址,图像中相邻的像素列被分配到不同的子深度以避免连续出现相同数据时,不能及时更新BRAM。The FPGA can divide the depth of the multi-port BRAM memory into at least two sub-depths, each sub-depth corresponds to at least 256 storage addresses, and adjacent pixel columns in the image are assigned to different sub-depths to avoid when the same data appears in a row, it cannot be timely. Update BRAM.
FPGA将读取的图像在亮度域中的像素值作为地址,对该像素值所在像素列所分配的子深度进行读取,将读出的数值加1并写回原地址。The FPGA takes the pixel value of the read image in the luminance domain as the address, reads the sub-depth assigned to the pixel column where the pixel value is located, adds 1 to the read value and writes back to the original address.
FPGA在读取完所有像素后,将不同子深度中对应相同像素值的存储地址中所存储的数值相加,并将相加结果作为该像素值的数量,如此即可得到直方图统计结果。After the FPGA reads all the pixels, it adds the values stored in the storage addresses corresponding to the same pixel value in different sub-depths, and uses the addition result as the number of the pixel value, so that the histogram statistics result can be obtained.
FPGA统计直方图的具体实现步骤如下:The specific implementation steps of FPGA statistical histogram are as follows:
①取高8bit数据,得到像素范围是0-255;① Take the high 8bit data and get the pixel range of 0-255;
②例化一块深度为512的BRAM,地址0-255用于存偶数列像素点个数,地址256-511用于存奇数列像素点个数;② Instantiate a BRAM with a depth of 512, address 0-255 is used to store the number of pixels in even columns, and addresses 256-511 are used to store the number of pixels in odd columns;
③取偶数列像素值时,取到的像素值作为地址读BRAM地址0-255;取奇数列像素值时,取到的像素值左移1位,作为地址读BRAM地址256-511;③ When taking the pixel value of the even column, the obtained pixel value is used as the address to read the BRAM address 0-255; when the pixel value of the odd column is taken, the obtained pixel value is shifted to the left by 1 bit, and the BRAM address 256-511 is read as the address;
④读出的数据加1,重新写回对应的地址;
⑤存完一整帧数据后,同时读出BRAM中0-255与256-511的数据,按0地址的数据加上256地址的数据,依次相加,得到0-255每个像素值的个数;⑤ After storing a whole frame of data, read the data of 0-255 and 256-511 in the BRAM at the same time, add the data of
⑥数据流传输及BRAM例化如图4所示。⑥ Data streaming and BRAM instantiation are shown in Figure 4.
FPGA采用奇偶列交叉存储到深度为512的真双端口RAM、前后256个地址的方式,避免了使用倍频跨时钟域操作,同样减少BRAM块使用,节省了资源。The FPGA adopts the method of interleaved storage to the true dual-port RAM with a depth of 512 and 256 addresses before and after the parity column, which avoids the use of frequency multiplication and cross-clock domain operation, and also reduces the use of BRAM blocks and saves resources.
如图4所示,图像数据中的像素值的列数可以从第0列开始,读取的第0列像素值为0,此时可以将读取到的像素值0作为地址在BRAM地址0-255内进行读,即读地址0,然后将地址0中的数值(初始数值为0)加1并重新写入地址0。读取第1列像素值为18,该像素值属于奇数列,可以将读取到的像素值18左移一位,将17与256相加的数值273作为地址,在BRAM地址256-511内进行读,即读地址273,并将地址273中的数值(初始数值为0)加1并重新写入地址273。以此类推,完成对图像数据中所有像素值的遍历。As shown in Figure 4, the number of columns of pixel values in the image data can start from the 0th column, and the read pixel value of the 0th column is 0. At this time, the
步骤P2、根据直方图统计结果,计算出拉伸系数kStep P2, according to the statistical results of the histogram, calculate the stretching coefficient k
FPGA计算拉伸系数k的具体步骤如下:The specific steps for the FPGA to calculate the stretching coefficient k are as follows:
①直方图统计的同时,将输入像素点进行累加得到实际的像素和,除以每帧像素点个数,得到像素均值b,像素均值也即上文述及的亮度域像素均值。①At the same time of histogram statistics, the input pixels are accumulated to obtain the actual pixel sum, and divided by the number of pixels in each frame to obtain the pixel mean value b, which is also the brightness domain pixel mean value mentioned above.
②以b作为分界,BRAM地址0-b的数据,乘以0-b,累加得到sum0;BRAM地址b-255的数据,累加得到sump;BRAM地址b-255的数据,乘以b-255,累加得到sum1。② With b as the boundary, the data of BRAM address 0-b is multiplied by 0-b to get sum0; the data of BRAM address b-255 is accumulated to get sum; the data of BRAM address b-255 is multiplied by b-255, Add up to get sum1.
③根据公式(5),分开求得除数与被除数,送到除法器中,取得k值;③ According to formula (5), the divisor and dividend are obtained separately, and sent to the divider to obtain the k value;
④根据公式(6),使用步骤P2中①中得到的均值b,计算k的限制范围并更新k;④According to formula (6), using the mean value b obtained in ① in step P2, calculate the limit range of k and update k;
步骤P3、根据公式计算当前帧每个像素点拉伸后的新像素值Step P3: Calculate the new pixel value after stretching of each pixel of the current frame according to the formula
FPGA计算新像素值的具体步骤如下:The specific steps for the FPGA to calculate the new pixel value are as follows:
①统计直方图的同时,通过比较输入像素值大小得到最大像素xmax,最小像素xmin,并寄存;①At the same time of statistical histogram, the maximum pixel xmax and the minimum pixel xmin are obtained by comparing the size of the input pixel value, and registered;
②根据公式(7),计算得到新像素值。②According to formula (7), calculate the new pixel value.
图5A为一张整体较为昏暗的图像。FIG. 5A is an overall rather dim image.
针对图5A所示的图像,根据上述方案计算拉伸系数k为84,图像像素均值b,为27,设置图像像素值期望值y为127,取值范围限制参数μ为64。For the image shown in FIG. 5A , according to the above scheme, the stretching coefficient k is calculated to be 84, the image pixel mean value b is 27, the expected value y of the image pixel value is set to 127, and the value range limit parameter μ is 64.
根据上述方案对图5A所示图像进行增强得到的输出结果如图5B所示。The output result obtained by enhancing the image shown in FIG. 5A according to the above scheme is shown in FIG. 5B .
可以看出,针对对比度较低、整体较为昏暗的图像,利用本公开可以实现对比度增强,且不会导致图像失真。另外,针对对比度低、整体过亮的图像,利用本公开也可以实现对比度增强,且不会导致图像失真。It can be seen that, for an image with a lower contrast and an overall darker image, the present disclosure can achieve contrast enhancement without causing image distortion. In addition, for images with low contrast and too bright overall, the present disclosure can also achieve contrast enhancement without causing image distortion.
综上,本公开提供了一种工作在亮度域上的基于直方图均衡化图像增强算法,在解决图像的对比度较低、曝光不合适(如图像较为昏暗或过亮)的问题的同时,可以保护图像亮度。并且本公开还针对硬件特征进行了改进与优化,使得算法可以在硬件平台上实现实时处理,尤其是面对高分辨率和高帧率的应用场景下,仍然可以保证达到良好的直方图均衡效果。To sum up, the present disclosure provides an image enhancement algorithm based on histogram equalization that works in the luminance domain, which can solve the problems of low contrast and inappropriate exposure of the image (eg, the image is relatively dim or too bright), and can Protect image brightness. In addition, the present disclosure also improves and optimizes hardware features, so that the algorithm can realize real-time processing on the hardware platform, especially in the face of high resolution and high frame rate application scenarios, it can still ensure a good histogram equalization effect. .
本公开的图像增强方法还可以实现为一种图像增强装置。图6示出了根据本公开一个实施例的图像增强装置的结构示意图。图像增强装置的功能单元可以由实现本公开原理的硬件、软件或硬件和软件的结合来实现。本领域技术人员可以理解的是,图6所描述的功能单元可以组合起来或者划分成子单元,从而实现上述发明的原理。因此,本文的描述可以支持对本文描述的功能单元的任何可能的组合、或者划分、或者更进一步的限定。The image enhancement method of the present disclosure can also be implemented as an image enhancement device. FIG. 6 shows a schematic structural diagram of an image enhancement apparatus according to an embodiment of the present disclosure. The functional units of the image enhancement apparatus may be implemented by hardware, software, or a combination of hardware and software implementing the principles of the present disclosure. Those skilled in the art can understand that the functional units described in FIG. 6 can be combined or divided into sub-units, so as to realize the principle of the above invention. Accordingly, the description herein may support any possible combination, or division, or further definition of the functional units described herein.
下面就图像增强装置可以具有的功能单元以及各功能单元可以执行的操作做简要说明,对于其中涉及的细节部分可以参见上文相关描述,这里不再赘述。The following briefly describes the functional units that the image enhancement apparatus can have and the operations that each functional unit can perform. For the details involved, reference may be made to the above related descriptions, which will not be repeated here.
参见图6,图像增强装置600包括获取模块610、计算模块620以及更新模块630。Referring to FIG. 6 , the image enhancement apparatus 600 includes an acquisition module 610 , a calculation module 620 and an update module 630 .
获取模块610用于获取图像的亮度域表示,亮度域表示用于表征图像在亮度域中的像素值分布。The obtaining module 610 is configured to obtain the luminance domain representation of the image, and the luminance domain representation is used to characterize the pixel value distribution of the image in the luminance domain.
计算模块620用于基于像素值分布计算拉伸系数。The calculation module 620 is used to calculate the stretching coefficient based on the distribution of pixel values.
作为示例,计算模块620可以基于亮度域表示计算亮度域像素均值,基于亮度域像素均值与亮度期望值,计算拉伸系数,其中,拉伸系数的大小与亮度域像素均值负相关,并且与亮度期望值正相关。例如,计算模块可以采用上文述及的公式(1)计算拉伸系数。As an example, the calculation module 620 may calculate the luminance domain pixel mean value based on the luminance domain representation, and calculate the stretching coefficient based on the luminance domain pixel mean value and the luminance expectation value, wherein the magnitude of the stretching coefficient is negatively correlated with the luminance domain pixel mean value and is related to the luminance expected value positive correlation. For example, the calculation module may calculate the stretch factor using the above-mentioned formula (1).
图像增强装置600还可以包括限制模块,用于将拉伸系数的取值限制到第一数值区间。The image enhancement apparatus 600 may further include a limiting module, configured to limit the value of the stretching coefficient to the first value interval.
图像增强装置600还可以包括第二计算模块,用于基于取值范围限制参数和亮度域像素均值,计算第一数值区间。关于第一数值区间可以参见上文相关描述。The image enhancement apparatus 600 may further include a second calculation module, configured to calculate the first numerical interval based on the value range limitation parameter and the mean value of the pixels in the luminance domain. For the first value interval, please refer to the above related description.
更新模块630用于基于拉伸系数更新图像在亮度域中的像素值。The updating module 630 is configured to update the pixel value of the image in the luminance domain based on the stretching coefficient.
更新模块630可以基于像素值、亮度域像素均值以及拉伸系数,调整像素值。例如,更新模块630可以利用上文述及的公式(3)调整像素值。The update module 630 may adjust the pixel value based on the pixel value, the luminance domain pixel mean, and the stretch coefficient. For example, the update module 630 may adjust the pixel values using the above-mentioned equation (3).
本公开还提供了一种现场可编程逻辑门阵列,现场可编程逻辑门阵列可以将上文述及的方法的执行过程中所涉及的运算量化成定点数运算,并执行量化后的方法。The present disclosure also provides a field programmable logic gate array, which can quantize the operations involved in the execution of the above-mentioned methods into fixed-point operations, and execute the quantized method.
本公开还提供了一种成像设备。图7示出了根据本公开一个实施例的成像设备的结构示意图。如图7所示,成像设备700可以包括成像装置710和现场可编程逻辑门阵列720。成像装置710用于拍摄成像。现场可编程逻辑门阵列用于执行上文结合图1所示的方法,以对成像装置拍摄得到的图像进行增强,其中,方法涉及的运算为经量化得到的定点数运算。现场可编程逻辑门阵列的具体执行过程可以参见上文相关描述。The present disclosure also provides an imaging apparatus. FIG. 7 shows a schematic structural diagram of an imaging device according to an embodiment of the present disclosure. As shown in FIG. 7 , the imaging apparatus 700 may include an imaging device 710 and a field programmable logic gate array 720 . The imaging device 710 is used for capturing imaging. The field programmable logic gate array is used to execute the method shown above in conjunction with FIG. 1 to enhance the image captured by the imaging device, wherein the operation involved in the method is a fixed-point number operation obtained by quantization. For the specific implementation process of the field programmable logic gate array, reference may be made to the above related description.
图8示出了根据本公开一实施例可用于实现上述图像增强方法的计算设备的结构示意图。FIG. 8 shows a schematic structural diagram of a computing device that can be used to implement the above image enhancement method according to an embodiment of the present disclosure.
参见图8,计算设备800包括存储器810和处理器820。Referring to FIG. 8 , computing device 800 includes memory 810 and processor 820 .
处理器820可以是一个多核的处理器,也可以包含多个处理器。在一些实施例中,处理器820可以包含一个通用的主处理器以及一个或多个特殊的协处理器,例如图形处理器(GPU)、数字信号处理器(DSP)等等。在一些实施例中,处理器820可以使用定制的电路实现,例如特定用途集成电路(ASIC,Application Specific Integrated Circuit)或者现场可编程逻辑门阵列(FPGA,Field Programmable Gate Arrays)。The processor 820 may be a multi-core processor, or may include multiple processors. In some embodiments, processor 820 may comprise a general-purpose main processor and one or more special-purpose co-processors, such as a graphics processing unit (GPU), a digital signal processor (DSP), and the like. In some embodiments, the processor 820 may be implemented using customized circuits, such as Application Specific Integrated Circuits (ASICs) or Field Programmable Gate Arrays (FPGAs).
存储器810可以包括各种类型的存储单元,例如系统内存、只读存储器(ROM),和永久存储装置。其中,ROM可以存储处理器820或者计算机的其他模块需要的静态数据或者指令。永久存储装置可以是可读写的存储装置。永久存储装置可以是即使计算机断电后也不会失去存储的指令和数据的非易失性存储设备。在一些实施方式中,永久性存储装置采用大容量存储装置(例如磁盘或光盘、闪存)作为永久存储装置。另外一些实施方式中,永久性存储装置可以是可移除的存储设备(例如软盘、光驱)。系统内存可以是可读写存储设备或者易失性可读写存储设备,例如动态随机访问内存。系统内存可以存储一些或者所有处理器在运行时需要的指令和数据。此外,存储器810可以包括任意计算机可读存储媒介的组合,包括各种类型的半导体存储芯片(DRAM,SRAM,SDRAM,闪存,可编程只读存储器),磁盘和/或光盘也可以采用。在一些实施方式中,存储器810可以包括可读和/或写的可移除的存储设备,例如激光唱片(CD)、只读数字多功能光盘(例如DVD-ROM,双层DVD-ROM)、只读蓝光光盘、超密度光盘、闪存卡(例如SD卡、min SD卡、Micro-SD卡等等)、磁性软盘等等。计算机可读存储媒介不包含载波和通过无线或有线传输的瞬间电子信号。Memory 810 may include various types of storage units, such as system memory, read only memory (ROM), and persistent storage. The ROM may store static data or instructions required by the processor 820 or other modules of the computer. Persistent storage devices may be readable and writable storage devices. Permanent storage may be a non-volatile storage device that does not lose stored instructions and data even if the computer is powered off. In some embodiments, persistent storage devices employ mass storage devices (eg, magnetic or optical disks, flash memory) as persistent storage devices. In other embodiments, persistent storage may be a removable storage device (eg, a floppy disk, an optical drive). System memory can be a readable and writable storage device or a volatile readable and writable storage device, such as dynamic random access memory. System memory can store some or all of the instructions and data that the processor needs at runtime. In addition, memory 810 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), and magnetic and/or optical disks may also be employed. In some embodiments, memory 810 may include a removable storage device that is readable and/or writable, such as a compact disc (CD), a digital versatile disc (eg, DVD-ROM, dual-layer DVD-ROM), Read-only Blu-ray Discs, Ultra-Density Discs, Flash Cards (eg SD Cards, Min SD Cards, Micro-SD Cards, etc.), Magnetic Floppy Disks, etc. Computer readable storage media do not contain carrier waves and transient electronic signals transmitted over wireless or wire.
存储器810上存储有可执行代码,当可执行代码被处理器820处理时,可以使处理器820执行上文述及的图像增强方法。Executable codes are stored on the memory 810, and when the executable codes are processed by the processor 820, the processor 820 can be caused to perform the above-mentioned image enhancement method.
上文中已经参考附图详细描述了根据本公开的图像增强方法、装置、现场可编程逻辑门阵列以及设备。The image enhancement method, apparatus, field programmable logic gate array, and apparatus according to the present disclosure have been described in detail above with reference to the accompanying drawings.
此外,根据本公开的方法还可以实现为一种计算机程序或计算机程序产品,该计算机程序或计算机程序产品包括用于执行本公开的上述方法中限定的上述各步骤的计算机程序代码指令。Furthermore, the method according to the present disclosure can also be implemented as a computer program or computer program product comprising computer program code instructions for performing the above-mentioned steps defined in the above-mentioned method of the present disclosure.
或者,本公开还可以实施为一种非暂时性机器可读存储介质(或计算机可读存储介质、或机器可读存储介质),其上存储有可执行代码(或计算机程序、或计算机指令代码),当所述可执行代码(或计算机程序、或计算机指令代码)被电子设备(或计算设备、服务器等)的处理器执行时,使所述处理器执行根据本公开的上述方法的各个步骤。Alternatively, the present disclosure can also be implemented as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having executable code (or computer program, or computer instruction code stored thereon) ), when the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or a computing device, a server, etc.), the processor is caused to perform each step of the above-mentioned method according to the present disclosure .
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。Those skilled in the art will also appreciate that the various exemplary logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
附图中的流程图和框图显示了根据本公开的多个实施例的系统和方法的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标记的功能也可以以不同于附图中所标记的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods in accordance with various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present disclosure have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210612662.9A CN114998135A (en) | 2022-05-31 | 2022-05-31 | Image enhancement method and device, field programmable logic gate array and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210612662.9A CN114998135A (en) | 2022-05-31 | 2022-05-31 | Image enhancement method and device, field programmable logic gate array and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114998135A true CN114998135A (en) | 2022-09-02 |
Family
ID=83031064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210612662.9A Pending CN114998135A (en) | 2022-05-31 | 2022-05-31 | Image enhancement method and device, field programmable logic gate array and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114998135A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117314795A (en) * | 2023-11-30 | 2023-12-29 | 成都玖锦科技有限公司 | SAR image enhancement method by using background data |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340510A (en) * | 2008-08-07 | 2009-01-07 | 中兴通讯股份有限公司 | Method for video enhancement and apparatus thereof |
CN101674473A (en) * | 2008-09-12 | 2010-03-17 | 中国科学院沈阳自动化研究所 | An image real-time histogram statistical device and its implementation method |
US10062154B1 (en) * | 2015-02-11 | 2018-08-28 | Synaptics Incorporated | System and method for adaptive contrast enhancement |
CN109272461A (en) * | 2018-09-04 | 2019-01-25 | 张家港江苏科技大学产业技术研究院 | Infrared image enhancing method based on median filtering and color histogram |
CN109309826A (en) * | 2017-07-27 | 2019-02-05 | Tcl集团股份有限公司 | A kind of image color equalization methods and terminal |
CN109325922A (en) * | 2018-09-12 | 2019-02-12 | 深圳开阳电子股份有限公司 | A kind of image self-adapting enhancement method, device and image processing equipment |
CN109829860A (en) * | 2018-12-26 | 2019-05-31 | 武汉高德智感科技有限公司 | Linearity dynamic range compression method and system of the full figure in conjunction with Local Phase |
CN113222859A (en) * | 2021-05-27 | 2021-08-06 | 西安电子科技大学 | Low-illumination image enhancement system and method based on logarithmic image processing model |
CN113870127A (en) * | 2021-09-08 | 2021-12-31 | 浙江大华技术股份有限公司 | Image contrast adjusting method and device |
CN114219723A (en) * | 2021-11-19 | 2022-03-22 | 浙江大华技术股份有限公司 | Image enhancement method, image enhancement device and computer readable storage medium |
-
2022
- 2022-05-31 CN CN202210612662.9A patent/CN114998135A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340510A (en) * | 2008-08-07 | 2009-01-07 | 中兴通讯股份有限公司 | Method for video enhancement and apparatus thereof |
CN101674473A (en) * | 2008-09-12 | 2010-03-17 | 中国科学院沈阳自动化研究所 | An image real-time histogram statistical device and its implementation method |
US10062154B1 (en) * | 2015-02-11 | 2018-08-28 | Synaptics Incorporated | System and method for adaptive contrast enhancement |
CN109309826A (en) * | 2017-07-27 | 2019-02-05 | Tcl集团股份有限公司 | A kind of image color equalization methods and terminal |
CN109272461A (en) * | 2018-09-04 | 2019-01-25 | 张家港江苏科技大学产业技术研究院 | Infrared image enhancing method based on median filtering and color histogram |
CN109325922A (en) * | 2018-09-12 | 2019-02-12 | 深圳开阳电子股份有限公司 | A kind of image self-adapting enhancement method, device and image processing equipment |
CN109829860A (en) * | 2018-12-26 | 2019-05-31 | 武汉高德智感科技有限公司 | Linearity dynamic range compression method and system of the full figure in conjunction with Local Phase |
CN113222859A (en) * | 2021-05-27 | 2021-08-06 | 西安电子科技大学 | Low-illumination image enhancement system and method based on logarithmic image processing model |
CN113870127A (en) * | 2021-09-08 | 2021-12-31 | 浙江大华技术股份有限公司 | Image contrast adjusting method and device |
CN114219723A (en) * | 2021-11-19 | 2022-03-22 | 浙江大华技术股份有限公司 | Image enhancement method, image enhancement device and computer readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117314795A (en) * | 2023-11-30 | 2023-12-29 | 成都玖锦科技有限公司 | SAR image enhancement method by using background data |
CN117314795B (en) * | 2023-11-30 | 2024-02-27 | 成都玖锦科技有限公司 | SAR image enhancement method by using background data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Chang et al. | Automatic contrast-limited adaptive histogram equalization with dual gamma correction | |
Zhu et al. | An adaptive histogram equalization algorithm on the image gray level mapping | |
JP6602789B2 (en) | System and method for local contrast enhancement | |
CN111292269A (en) | Image tone mapping method, computer device and computer readable storage medium | |
CN112419195B (en) | A Method of Image Enhancement Based on Nonlinear Transformation | |
CN104268843A (en) | Image self-adaptation enhancing method based on histogram modification | |
WO2021093718A1 (en) | Video processing method, video repair method, apparatus and device | |
WO2021143300A1 (en) | Image processing method and apparatus, electronic device and storage medium | |
CN111127343B (en) | Histogram double-control infrared image contrast enhancement method | |
Srinivas et al. | Low-contrast image enhancement using spatial contextual similarity histogram computation and color reconstruction | |
US20130287299A1 (en) | Image processing apparatus | |
US8675963B2 (en) | Method and apparatus for automatic brightness adjustment of image signal processor | |
Muniraj et al. | Underwater image enhancement by modified color correction and adaptive Look-Up-Table with edge-preserving filter | |
CN114998135A (en) | Image enhancement method and device, field programmable logic gate array and equipment | |
CN106341613A (en) | Wide dynamic range image method | |
Arigela et al. | A locally tuned nonlinear technique for color image enhancement | |
Zhang et al. | Multi-scale-based joint super-resolution and inverse tone-mapping with data synthesis for UHD HDR video | |
CN110807748A (en) | New tone mapping image enhancement method based on high dynamic range | |
Yu et al. | Adaptive inverse hyperbolic tangent algorithm for dynamic contrast adjustment in displaying scenes | |
CN116645291A (en) | Adaptive Gamma Correction Glare Suppression Method Based on Regional Brightness Perception | |
Muneer et al. | Hardware-friendly tone-mapping operator design and implementation for real-time embedded vision applications | |
CN109035182B (en) | An Adaptive Dynamic Dual-Histogram Equalization Method | |
Tan et al. | A retinex-based local tone mapping algorithm using L 0 smoothing filter | |
Chang et al. | Perceptual contrast enhancement of dark images based on textural coefficients | |
Wang et al. | Tone-preserving contrast enhancement in images using rational tone mapping and constrained optimization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |