CN106960414B - Method for generating high-resolution HDR image from multi-view LDR image - Google Patents
Method for generating high-resolution HDR image from multi-view LDR image Download PDFInfo
- Publication number
- CN106960414B CN106960414B CN201611139687.2A CN201611139687A CN106960414B CN 106960414 B CN106960414 B CN 106960414B CN 201611139687 A CN201611139687 A CN 201611139687A CN 106960414 B CN106960414 B CN 106960414B
- Authority
- CN
- China
- Prior art keywords
- image
- images
- pixel
- hdr
- value
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4038—Image mosaicing, e.g. composing plane images from plane sub-images
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种多视角LDR图像生成高分辨率HDR图像的方法,步骤(1)、获取两幅在同一直线上的不同视角的图像,且要求一个图像的视野内容与左右相邻两图像均有重合部分;步骤(2)、进行相邻两幅图像特征点的识别和匹配,将两幅图像中的公共部分提取出来;步骤(3)、对相邻两幅图像具有长短不同曝光的重合部分以对比度、饱和度和适度曝光量为三个测度因子生成权重图,进行多分辨率金字塔融合,生成具有HDR效果的图像;步骤(4)、获得具有类似HDR效果的两幅图像;步骤(5)、将具有类似HDR效果的两幅图像与重合部分融合生成的HDR图像,生成高分辨率HDR图像。本发明将融合与拼接过程结合,提高了多幅拼接的实时性以及在视频系统中的帧率与视觉效果。
The invention discloses a method for generating a high-resolution HDR image from a multi-view LDR image. In step (1), two images with different viewing angles on the same straight line are acquired, and the content of the field of view of one image is required to be the same as that of the left and right adjacent images. There are overlapping parts; step (2), identify and match the feature points of two adjacent images, and extract the common part in the two images; step (3), the adjacent two images have different exposure lengths. The overlapping part uses contrast, saturation and moderate exposure as three measurement factors to generate a weight map, and performs multi-resolution pyramid fusion to generate an image with HDR effect; step (4), obtain two images with similar HDR effect; step (5) Integrate two images with similar HDR effects with the HDR image generated by the overlapping part to generate a high-resolution HDR image. The invention combines the process of fusion and splicing, and improves the real-time performance of multiple splicing and the frame rate and visual effect in the video system.
Description
技术领域technical field
本发明涉及图像处理领域,特别是涉及一种生成高分辨率HDR图像的方法。The present invention relates to the field of image processing, in particular to a method for generating a high-resolution HDR image.
背景技术Background technique
HDR图像的生成算法以及全景图像的拼接方法都是很早以前就有相关的研究,其中一些比较经典的算法已经发展的比较成熟。而将两者结合起来的HDR全景图像或视频的生成方法研究却是最近几年刚刚兴起的,主要是因为其符合社会发展的潮流,有很多应用的价值和前景。HDR全景图像的生成方法涉及多个环节,其中主要有包括图像获取、图像融合、图像拼接几个大类,每一部分均可考虑到不同的情况由不同的方法加以实现,此外,虽然每个部分看似相对独立,但是对于各部分的整合方法即整体设计也是研究人员们所重点关注的一部分内容。The generation algorithm of HDR images and the stitching method of panoramic images have been researched a long time ago, and some of the more classic algorithms have been developed relatively maturely. The research on the generation method of HDR panoramic image or video that combines the two has just emerged in recent years, mainly because it conforms to the trend of social development and has many application values and prospects. The generation method of HDR panoramic image involves many steps, including image acquisition, image fusion, and image stitching. Each part can be realized by different methods considering different situations. It seems to be relatively independent, but the integrated method of each part, the overall design, is also a part of the researchers' focus.
高分辨率HDR及全景HDR图像生成已经成为关注的焦点,众多学者和机构就此展开了研究。比如,Fumio Okura等人将HDR全景应用于空中航拍,介绍了一套从空中获得HDR全景图像的完整系统,通过在无人机上下各固定一个立体相机,然后每个相机通过自动曝光控制获得LDR图像序列,再通过具体的融合算法得到HDR图像,最后将上下两个相机获得的HDR图像进行融合,得到最后的HDR全景图像。The generation of high-resolution HDR and panoramic HDR images has become the focus of attention, and many scholars and institutions have carried out research on this. For example, Fumio Okura et al. applied HDR panorama to aerial photography, and introduced a complete system for obtaining HDR panorama images from the air. By fixing a stereo camera on the top and bottom of the drone, each camera obtained LDR through automatic exposure control. The image sequence is then obtained through a specific fusion algorithm to obtain an HDR image, and finally the HDR images obtained by the upper and lower cameras are fused to obtain the final HDR panoramic image.
VladanPopovic等人设计了一个基于FPGA的图像处理系统,可以利用其所设计的环形图像采集设备实现实时地HDR全景帧的融合。每相邻两个摄像头一个曝光时间长,一个曝光时间短,利用其相邻图像的重合部分进行图像融合,最终生成一个全景的HDR图像帧,其所设计的系统方法对硬件的依赖性较高,不便于直接对图像进行处理。Vladan Popovic et al. designed an FPGA-based image processing system, which can realize real-time HDR panoramic frame fusion by using the annular image acquisition device they designed. For every two adjacent cameras, one has a long exposure time and the other has a short exposure time. The overlapping parts of the adjacent images are used for image fusion, and a panoramic HDR image frame is finally generated. The designed system method is highly dependent on hardware. , it is not convenient to process the image directly.
Kvale Stensland等人通过不同角度的五个相机实现对足球场比赛现场的全面覆盖,通过拼接形成对整个足球场的全景影像,并且在每个角度,通过自动曝光获得长短曝光不同的两帧,对其融合生成HDR,再对各角度的HDR图像进行拼接形成最后的HDR全景图像帧。 Kvale Stensland et al. achieved comprehensive coverage of the football field through five cameras at different angles, formed a panoramic image of the entire football field by splicing, and obtained two frames with different length and short exposure through automatic exposure at each angle. It fuses to generate HDR, and then stitches the HDR images from various angles to form the final HDR panoramic image frame.
根本来讲,目前的方法大都是先在不同视角获得曝光时间不同的几帧低动态范围(LDR)图像,将其分别融合生成不同视角下的HDR图像,然后再对这些不同视角下的HDR图像进行拼接(如图一所示),这种方法在获得图像上的时间成本比较长,而且将融合和拼接分步骤进行较为繁琐。Fundamentally speaking, most of the current methods are to first obtain several frames of low dynamic range (LDR) images with different exposure times from different perspectives, fuse them to generate HDR images from different perspectives, and then analyze these HDR images from different perspectives. For splicing (as shown in Figure 1), this method takes a long time to obtain images, and it is cumbersome to perform fusion and splicing in steps.
发明内容SUMMARY OF THE INVENTION
基于现有技术,本发明提出了一种多视角LDR图像生成高分辨率HDR图像的方法,通过利用所获得不同视角LDR图像的重合部分,将融合与拼接结合进行,提出一种基于直方图匹配的高分辨率HDR图像生成方法。Based on the prior art, the present invention proposes a method for generating a high-resolution HDR image from a multi-view LDR image. By using the overlapping parts of the obtained LDR images with different viewing angles, the fusion and splicing are combined, and a method based on histogram matching is proposed. high-resolution HDR image generation method.
本发明提出了一种多视角LDR图像生成高分辨率HDR图像的方法,该方法包括以下步骤:The present invention provides a method for generating a high-resolution HDR image from a multi-view LDR image, the method comprising the following steps:
步骤(1)、获取两幅在同一直线上的不同视角的图像,且相邻两个相机设置为不同的曝光时间,共有长短两种曝光时间,在相邻相机中交替,且要求一个图像的视野内容与左右相邻两图像均有重合部分;Step (1): Acquire two images with different viewing angles on the same straight line, and the two adjacent cameras are set to different exposure times. There are two types of exposure times, long and short, which alternate in adjacent cameras, and require an image to have different exposure times. The content of the field of view and the two adjacent images on the left and right have overlapping parts;
步骤(2)、利用surf算子进行相邻两幅图像特征点的识别和匹配,通过对匹配的特征点做平均运算得到平移视差的具体值,从而将两幅图像中的公共部分提取出来;具体做法为:首先利用Hessian矩阵求出各像素点的特征值,Hessian矩阵为Step (2), using the surf operator to identify and match the feature points of two adjacent images, and obtain the specific value of the translational parallax by averaging the matched feature points, thereby extracting the common part in the two images; The specific method is: first, use the Hessian matrix to find the eigenvalues of each pixel, and the Hessian matrix is
其中,Lxx(x,σ)是原图像I经高斯滤波后得到的图像g(σ)在x方向的二阶导数,Lxy(x,σ)、Lyy(x,σ)也都是在各方向上g(σ)的二阶导数。Among them, L xx (x,σ) is the second derivative of the image g(σ) in the x direction obtained by Gaussian filtering of the original image I, and L xy (x, σ) and L yy (x, σ) are also The second derivative of g(σ) in each direction.
计算特征值的公式为The formula for calculating the eigenvalue is
det(Happrox)=DxxDyy-(0.9Dxy)2 det(H approx )=D xx D yy -(0.9D xy ) 2
其中,Dxx、Dyy、Dxy分别为海塞矩阵近似模板在相应方向上的二阶导数。Among them, D xx , D yy , and D xy are respectively the second derivative of the Hessian matrix approximation template in the corresponding direction.
若某点的特征值是其领域27个点中最大的,则可认为该点为特征点。如附图5所示为提取的图像中的部分特征点;If the eigenvalue of a point is the largest among the 27 points in its field, the point can be considered as a feature point. Part of the feature points in the extracted image as shown in accompanying
获取特征点的特征向量,首先计算特征点的主方向,具体过程如下:To obtain the feature vector of the feature point, first calculate the main direction of the feature point. The specific process is as follows:
1)统计以特征点为中心,正比于特征点尺度的某个数位半径,张角为60°的扇形区域内所有像素点的sumX=(y方向小波变换响应)*(高斯函数),sumY=(x方向小波变换响应)*(高斯函数),计算合成向量角度θ=arctan(sumY/sumX),模长sqrt(sumy*sumy+sumx*sumx)。1) The statistics are centered on the feature point, proportional to a certain digital radius of the feature point scale, and sumX=(wavelet transform response in the y direction)*(Gaussian function), sumY= (X-direction wavelet transform response)*(Gaussian function), calculate the composite vector angle θ=arctan(sumY/sumX), and the modulus length sqrt(sumy*sumy+sumx*sumx).
2)将扇形沿逆时针旋转,以同样方法计算合成向量。2) Rotate the sector counterclockwise, and calculate the resultant vector in the same way.
3)求出各方向扇形的合成向量模长最大值,其对应的角度即特征点主方向。3) Find the maximum value of the composite vector modulus length of the sector in each direction, and the corresponding angle is the main direction of the feature point.
获得特征向量具体过程如下:The specific process of obtaining the feature vector is as follows:
1)选定以特征点为中心的一块正方形区域,将其旋转与主方向对齐。1) Select a square area centered on the feature point, and align its rotation with the main direction.
2)将正方形分为4×4的16个子区域,对每个区域进行小波变换,得到4个系数。2) Divide the square into 16 sub-regions of 4×4, and perform wavelet transform on each region to obtain 4 coefficients.
3)由上述两步,生成4×4×4=64维向量。3) From the above two steps, a 4×4×4=64-dimensional vector is generated.
计算两向量内积,最大值为与该点最匹配的点,设定一具体阈值,只有当最大值大于这个阈值可认为两特征点匹配。Calculate the inner product of the two vectors, the maximum value is the point that best matches the point, and a specific threshold is set. Only when the maximum value is greater than this threshold value can be considered to match the two feature points.
步骤(3)、融合生成HDR图像:对相邻两幅图像具有长短不同曝光的重合部分以对比度、饱和度和适度曝光量为三个测度因子生成权重图,进行多分辨率金字塔融合,生成具有HDR效果的图像;融合的具体公式如下:Step (3), fuse to generate HDR image: generate a weight map for the overlapping parts of two adjacent images with different exposures of different lengths and lengths, using contrast, saturation and moderate exposure as three measurement factors to generate a weight map, perform multi-resolution pyramid fusion, and generate HDR effect image; the specific formula for fusion is as follows:
其中Rij为融合生成的结果图像在(i,j)位置处的像素值,Lyy(x,σ)为第k幅输入图像对应位置像素值,为归一化后的权重值。where R ij is the pixel value of the result image generated by fusion at the position (i, j), L yy (x, σ) is the pixel value of the corresponding position of the kth input image, is the normalized weight value.
对比度计算公式为:The formula for calculating contrast is:
C=|h*I|C=|h*I|
其中,C表示对比度,I为待求对比度的图像,h为拉普拉斯滤波器。Among them, C represents the contrast, I is the image to be contrasted, and h is the Laplacian filter.
饱和度通过计算三个色度通道的标准差获得,具体计算公式如下:Saturation is obtained by calculating the standard deviation of the three chrominance channels. The specific calculation formula is as follows:
其中,S表示饱和度,IR、IG、IB分别为R、G、B三个色彩通道的像素值,μ为其三者的均值。Among them, S represents saturation, I R , I G , and I B are the pixel values of the three color channels R, G, and B, respectively, and μ is the average of the three.
适度曝光量通过高斯曲线来估计,具体计算公式为:Moderate exposure is estimated by a Gaussian curve, and the specific calculation formula is:
E=ER×EG×EB E=E R ×E G ×E B
其中E为图像总体的适度曝光量,ER、EG、EB分别为每一通道的适度曝光量,这里我们规定σ=0.2。Where E is the moderate exposure of the overall image, E R , EG , and EB are the moderate exposure of each channel, here we specify σ=0.2.
权重图计算公式为:The weight map calculation formula is:
wC=wS=wE=1w C =w S =w E =1
其中,Cij,k、Sij,k、Eij,k分别为在第k幅图像中(i,j)位置处像素点的对比度、饱和度和适度曝光量。通过对三个测度因子相乘得到最终的权重值。wC、wS、wE用来表示三个测度因子在生成权重图中的“影响”大小。Among them, C ij,k , S ij,k , E ij,k are the contrast, saturation and moderate exposure of the pixel at the position (i, j) in the k-th image, respectively. The final weight value is obtained by multiplying the three measurement factors. w C , w S , and w E are used to represent the "influence" of the three measurement factors in the generated weight map.
步骤(4)、求出参考图像即步骤(3)中融合生成的HDR图像每个颜色通道的直方图,以重合部分融合生成的HDR图像为参考,对获得的两幅原始LDR图像,进行直方图匹配,通过映射调整原图像像素值大小以使得调整后图像的直方图与参考图像的直方图近似相等,以使图像中没有重合的部分获得与HDR图像相似的色调,即获得具有类似HDR效果的两幅图像;Step (4), obtain the reference image, that is, the histogram of each color channel of the HDR image fused and generated in step (3), take the HDR image generated by the fusion of the overlapping part as a reference, and perform a histogram on the obtained two original LDR images. Image matching, adjust the pixel value size of the original image by mapping so that the histogram of the adjusted image is approximately equal to the histogram of the reference image, so that the non-overlapping part of the image can obtain a tone similar to that of the HDR image, that is, to obtain a similar HDR effect two images of ;
步骤(5)、将经过直方图匹配的具有类似HDR效果的两幅图像与重合部分融合生成的HDR图像,对于图像重合区域中像素点的每个通道的色度值Pixel由两幅图像中对应点的灰度值Pixel_L和Pixel_R加权平均得到,即:Step (5), the HDR image generated by the fusion of the two images with similar HDR effect after histogram matching and the overlapping part, for the chromaticity value Pixel of each channel of the pixel point in the overlapping area of the image is corresponding to the two images. The gray value Pixel_L and Pixel_R of the point are weighted and averaged, namely:
Pixel=k×Pixel_L+(1-k)×Pixel_RPixel=k×Pixel_L+(1-k)×Pixel_R
其中,k=h/R,用来表示当前像素点与重合区域左边界的距离h占重合区域总宽度R的比例;k值越大,说明左侧图像的像素值在融合中占有越大的比重。即在重叠区域中,沿左侧图像向右侧图像的方向,k由1渐变为0,从而实现重叠区域的平滑拼接;通过加权融合拼接算法进行拼接,并且在相邻处平滑过渡,从而生成高分辨率HDR图像。Among them, k=h/R, which is used to indicate the proportion of the distance h between the current pixel and the left border of the overlapping area to the total width R of the overlapping area; the larger the value of k, the larger the pixel value of the left image in the fusion. proportion. That is, in the overlapping area, along the direction of the left image to the right image, k gradually changes from 1 to 0, so as to realize the smooth splicing of the overlapping area; the splicing is performed through the weighted fusion splicing algorithm, and the adjacent places are smoothly transitioned to generate High resolution HDR images.
与现有技术相比,本发明有效地利用了不同视角图像的重合部分,巧妙地将融合与拼接过程结合,减少了获得一幅高分辨率HDR图像所需的图像帧数;提高了效率,降低了算法复杂度;提高了多幅拼接的实时性以及在HDR视频系统中的帧率与提高图像画面质量的视觉效果。Compared with the prior art, the present invention effectively utilizes the overlapping parts of images from different viewing angles, skillfully combines the fusion and splicing processes, reduces the number of image frames required to obtain a high-resolution HDR image; improves the efficiency, The algorithm complexity is reduced; the real-time performance of multiple stitching, the frame rate in the HDR video system and the visual effect of improving the image quality are improved.
附图说明Description of drawings
图1为常用的生成HDR高分辨率图像的示意图;Figure 1 is a schematic diagram of a commonly used HDR high-resolution image generation;
图2为本发明的获取图像过程示意图;2 is a schematic diagram of an image acquisition process of the present invention;
图3为本发明的一种多视角LDR图像生成高分辨率HDR图像的方法的整体流程示意图;3 is a schematic overall flowchart of a method for generating a high-resolution HDR image from a multi-view LDR image according to the present invention;
图4为获取的原始图像;Fig. 4 is the original image obtained;
图5为通过surf算子进行特征点识别和匹配在图像中的结果;Figure 5 is the result of feature point identification and matching in the image by surf operator;
图6为由两幅图像中的重合部分融合生成的HDR图像;FIG. 6 is an HDR image generated by fusion of overlapping parts in two images;
图7为将最初LDR图像参照上图融合结果做直方图匹配,得到与生成HDR图像相似色调的图像;Figure 7 shows the histogram matching of the initial LDR image with reference to the fusion result in the above figure, to obtain an image with a tone similar to that of the generated HDR image;
图8为将几幅图像通过加权融合的方式拼接在一起得到最后生成的高分辨率HDR图像。Figure 8 shows the final generated high-resolution HDR image obtained by stitching several images together through weighted fusion.
具体实施方式Detailed ways
下面结合附图对本发明作进一步详细描述。The present invention will be described in further detail below with reference to the accompanying drawings.
步骤(1)、获取两幅在同一直线上的不同视角的图像,且相邻两个相机设置为不同的曝光时间,共有长短两种曝光时间,在相邻相机中交替,且要求一个图像的视野内容与左右相邻两图像均有重合部分;Step (1): Acquire two images with different viewing angles on the same straight line, and the two adjacent cameras are set to different exposure times. There are two types of exposure times, long and short, which alternate in adjacent cameras, and require an image to have different exposure times. The content of the field of view and the two adjacent images on the left and right have overlapping parts;
步骤(2)、利用surf算子进行相邻两幅图像特征点的识别和匹配,通过对匹配的特征点做平均运算得到平移视差的具体值,从而将两幅图像中的公共部分提取出来;具体做法为:首先利用Hessian矩阵求出各像素点的特征值,Hessian矩阵为Step (2), using the surf operator to identify and match the feature points of two adjacent images, and obtain the specific value of the translational parallax by averaging the matched feature points, thereby extracting the common part in the two images; The specific method is: first, use the Hessian matrix to find the eigenvalues of each pixel, and the Hessian matrix is
其中,Lxx(x,σ)是原图像I经高斯滤波后得到的图像g(σ)在x方向的二阶导数,Lxy(x,σ)、Lyy(x,σ)也都是在各方向上g(σ)的二阶导数。Among them, L xx (x,σ) is the second derivative of the image g(σ) in the x direction obtained by Gaussian filtering of the original image I, and L xy (x, σ) and L yy (x, σ) are also The second derivative of g(σ) in each direction.
计算特征值的公式为The formula for calculating the eigenvalue is
det(Happrox)=DxxDyy-(0.9Dxy)2 det(H approx )=D xx D yy -(0.9D xy ) 2
其中,Dxx、Dyy、Dxy分别为海塞矩阵近似模板在相应方向上的二阶导数。Among them, D xx , D yy , and D xy are respectively the second derivative of the Hessian matrix approximation template in the corresponding direction.
若某点的特征值是其领域27个点中最大的,则可认为该点为特征点。如附图5所示为提取的图像中的部分特征点;If the eigenvalue of a point is the largest among the 27 points in its field, the point can be considered as a feature point. Part of the feature points in the extracted image as shown in accompanying drawing 5;
获取特征点的特征向量,首先计算特征点的主方向,具体过程如下:To obtain the feature vector of the feature point, first calculate the main direction of the feature point. The specific process is as follows:
1)统计以特征点为中心,正比于特征点尺度的某个数位半径,张角为60°的扇形区域内所有像素点的sumX=(y方向小波变换响应)*(高斯函数),sumY=(x方向小波变换响应)*(高斯函数),计算合成向量角度θ=arctan(sumY/sumX),模长sqrt(sumy*sumy+sumx*sumx)。1) The statistics are centered on the feature point, proportional to a certain digital radius of the feature point scale, and sumX=(wavelet transform response in the y direction)*(Gaussian function), sumY= (X-direction wavelet transform response)*(Gaussian function), calculate the composite vector angle θ=arctan(sumY/sumX), and the modulus length sqrt(sumy*sumy+sumx*sumx).
2)将扇形沿逆时针旋转(一般取步长为0.1个弧度),以同样方法计算合成向量。2) Rotate the fan shape counterclockwise (usually the step size is 0.1 radians), and calculate the composite vector in the same way.
3)求出各方向扇形的合成向量模长最大值,其对应的角度即特征点主方向。3) Find the maximum value of the composite vector modulus length of the sector in each direction, and the corresponding angle is the main direction of the feature point.
获得特征向量具体过程如下:The specific process of obtaining the feature vector is as follows:
1)选定以特征点为中心的一块正方形区域,将其旋转与主方向对齐。1) Select a square area centered on the feature point, and align its rotation with the main direction.
2)将正方形分为4×4的16个子区域,对每个区域进行小波变换,得到4个系数。2) Divide the square into 16 sub-regions of 4×4, and perform wavelet transform on each region to obtain 4 coefficients.
3)由上述两步,生成4×4×4=64维向量。3) From the above two steps, a 4×4×4=64-dimensional vector is generated.
计算两向量内积,最大值为与该点最匹配的点,设定一具体阈值,只有当最大值大于这个阈值可认为两特征点匹配。Calculate the inner product of the two vectors, the maximum value is the point that best matches the point, and a specific threshold is set. Only when the maximum value is greater than this threshold value can be considered to match the two feature points.
步骤(3)、融合生成HDR图像:对相邻两幅图像具有长短不同曝光的重合部分以对比度、饱和度和适度曝光量为三个测度因子生成权重图,进行多分辨率金字塔融合,生成具有HDR效果的图像;融合的具体公式如下:Step (3), fuse to generate HDR image: generate a weight map for the overlapping parts of two adjacent images with different exposures of different lengths and lengths, using contrast, saturation and moderate exposure as three measurement factors to generate a weight map, perform multi-resolution pyramid fusion, and generate HDR effect image; the specific formula for fusion is as follows:
其中,Rij为融合生成的结果图像在(i,j)位置处的像素值,Lyy(x,σ)为第k幅输入图像对应位置像素值,为归一化后的权重值。Among them, R ij is the pixel value of the result image generated by fusion at the position (i, j), L yy (x, σ) is the pixel value of the corresponding position of the kth input image, is the normalized weight value.
对比度计算公式为:The formula for calculating contrast is:
C=|h*I|C=|h*I|
其中,C表示对比度,I为待求对比度的图像,h为拉普拉斯滤波器。Among them, C represents the contrast, I is the image to be contrasted, and h is the Laplacian filter.
饱和度通过计算三个色度通道的标准差获得,具体计算公式如下:Saturation is obtained by calculating the standard deviation of the three chrominance channels. The specific calculation formula is as follows:
其中,S表示饱和度,IR、IG、IB分别为R、G、B三个色彩通道的像素值,μ为其三者的均值。Among them, S represents saturation, I R , I G , and I B are the pixel values of the three color channels R, G, and B, respectively, and μ is the average of the three.
适度曝光量通过高斯曲线来估计,具体计算公式为:Moderate exposure is estimated by a Gaussian curve, and the specific calculation formula is:
E=ER×EG×EB E=E R ×E G ×E B
其中,E为图像总体的适度曝光量,ER、EG、EB分别为每一通道的适度曝光量,这里我们规定σ=0.2。 Among them, E is the moderate exposure of the overall image, ER , EG, EB are the moderate exposure of each channel, here we specify σ=0.2.
权重图计算公式为:The weight map calculation formula is:
wC=wS=wE=1w C =w S =w E =1
其中,Cij,k、Sij,k、Eij,k分别为在第k幅图像中(i,j)位置处像素点的对比度、饱和度和适度曝光量。通过对三个测度因子相乘得到最终的权重值。wC、wS、wE用来表示三个测度因子在生成权重图中的“影响”大小。Among them, C ij,k , S ij,k , E ij,k are the contrast, saturation and moderate exposure of the pixel at the position (i, j) in the k-th image, respectively. The final weight value is obtained by multiplying the three measurement factors. w C , w S , and w E are used to represent the "influence" of the three measurement factors in the generated weight map.
步骤(4)、求出参考图像即步骤(3)中融合生成的HDR图像每个颜色通道的直方图,以重合部分融合生成的HDR图像为参考,对获得的两幅原始LDR图像,进行直方图匹配,通过映射调整原图像像素值大小以使得调整后图像的直方图与参考图像的直方图近似相等,以使图像中没有重合的部分获得与HDR图像相似的色调,即获得具有类似HDR效果的两幅图像;Step (4), obtain the reference image, that is, the histogram of each color channel of the HDR image fused and generated in step (3), take the HDR image generated by the fusion of the overlapping part as a reference, and perform a histogram on the obtained two original LDR images. Image matching, adjust the pixel value size of the original image by mapping so that the histogram of the adjusted image is approximately equal to the histogram of the reference image, so that the non-overlapping part of the image can obtain a tone similar to that of the HDR image, that is, to obtain a similar HDR effect two images of ;
步骤(5)、将经过直方图匹配的具有类似HDR效果的两幅图像与重合部分融合生成的HDR图像,对于图像重合区域中像素点的每个通道的色度值Pixel由两幅图像中对应点的灰度值Pixel_L和Pixel_R加权平均得到,即:Step (5), the HDR image generated by the fusion of the two images with similar HDR effect after histogram matching and the overlapping part, for the chromaticity value Pixel of each channel of the pixel point in the overlapping area of the image is corresponding to the two images. The gray value Pixel_L and Pixel_R of the point are weighted and averaged, namely:
Pixel=k×Pixel_L+(1-k)×Pixel_RPixel=k×Pixel_L+(1-k)×Pixel_R
其中,k=h/R,用来表示当前像素点与重合区域左边界的距离h占重合区域总宽度R的比例;k值越大,说明左侧图像的像素值在融合中占有越大的比重。即在重叠区域中,沿左侧图像向右侧图像的方向,k由1渐变为0,从而实现重叠区域的平滑拼接;通过加权融合拼接算法进行拼接,并且在相邻处平滑过渡,从而生成高分辨率HDR图像。Among them, k=h/R, which is used to indicate the proportion of the distance h between the current pixel and the left border of the overlapping area to the total width R of the overlapping area; the larger the value of k, the larger the pixel value of the left image in the fusion. proportion. That is, in the overlapping area, along the direction of the left image to the right image, k gradually changes from 1 to 0, so as to realize the smooth splicing of the overlapping area; the splicing is performed through the weighted fusion splicing algorithm, and the adjacent places are smoothly transitioned to generate High resolution HDR images.
本发明的具体实施例如图4-8所示,将原多曝光LDR图像每个色度通道生成拉普拉斯金字塔,则具有了原图像多分辨率的信息;然后根据对比度、饱和度、适度曝光量为指标计算原图像的权重图,以此,也就是通过此像素所含信息的多少来衡量其所在融合后的图像中所占的比例;将不同曝光图像的权重图归一化,即同一像素不同图像的权重和为1;再将得到的权重图生成高斯金字塔;最后将同一幅图像的拉普拉斯金字塔与它们权重图生成的高斯金字塔对应相乘,在将不同图像得到的金字塔相加得到融合后的拉普拉斯金字塔,将此拉普拉斯金字塔复原即可得到最后融合生成的HDR图像。A specific embodiment of the present invention is shown in Figures 4-8. The Laplacian pyramid is generated from each chrominance channel of the original multi-exposure LDR image, so that the multi-resolution information of the original image is obtained; The exposure amount is used as an indicator to calculate the weight map of the original image, so that the proportion of the fused image is measured by the amount of information contained in this pixel; the weight map of different exposure images is normalized, that is The sum of the weights of different images of the same pixel is 1; then the obtained weight map is generated into a Gaussian pyramid; finally, the Laplacian pyramid of the same image is multiplied by the Gaussian pyramid generated by their weight map, and the pyramid obtained by different images is multiplied. Add the fused Laplacian pyramid, and restore the Laplacian pyramid to obtain the final HDR image generated by fusion.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611139687.2A CN106960414B (en) | 2016-12-12 | 2016-12-12 | Method for generating high-resolution HDR image from multi-view LDR image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611139687.2A CN106960414B (en) | 2016-12-12 | 2016-12-12 | Method for generating high-resolution HDR image from multi-view LDR image |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106960414A CN106960414A (en) | 2017-07-18 |
| CN106960414B true CN106960414B (en) | 2020-01-03 |
Family
ID=59481515
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611139687.2A Active CN106960414B (en) | 2016-12-12 | 2016-12-12 | Method for generating high-resolution HDR image from multi-view LDR image |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106960414B (en) |
Families Citing this family (22)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107277387B (en) * | 2017-07-26 | 2019-11-05 | 维沃移动通信有限公司 | High dynamic range images image pickup method, terminal and computer readable storage medium |
| CN107465882B (en) * | 2017-09-22 | 2019-11-05 | 维沃移动通信有限公司 | A kind of image capturing method and mobile terminal |
| CN107566739B (en) * | 2017-10-18 | 2019-12-06 | 维沃移动通信有限公司 | photographing method and mobile terminal |
| CN107885787B (en) * | 2017-10-18 | 2021-05-14 | 大连理工大学 | An Image Retrieval Method Based on Multi-view Feature Fusion Based on Spectral Embedding |
| CN107895350B (en) * | 2017-10-27 | 2020-01-03 | 天津大学 | HDR image generation method based on self-adaptive double gamma transformation |
| CN107845128B (en) * | 2017-11-03 | 2021-09-03 | 安康学院 | Multi-exposure high-dynamic image reconstruction method with multi-scale detail fusion |
| CN107977931A (en) * | 2017-12-14 | 2018-05-01 | 元橡科技(北京)有限公司 | Utilize the method for calibrated more mesh cameras generation super-resolution image |
| CN107945148B (en) * | 2017-12-15 | 2021-06-01 | 电子科技大学 | A Multi-Exposure Image Fusion Method Based on MRF Region Selection |
| CN108335272B (en) * | 2018-01-31 | 2021-10-08 | 青岛海信移动通信技术股份有限公司 | Method and device for shooting picture |
| CN110460747B (en) * | 2018-05-08 | 2022-10-14 | 宁波舜宇光电信息有限公司 | Image processing method |
| CN108848323A (en) * | 2018-06-27 | 2018-11-20 | 西安输变电工程环境影响控制技术中心有限公司 | An image processing method for comprehensive cloud image of substation noise |
| CN109151334B (en) * | 2018-09-21 | 2020-12-22 | 中国计量大学 | An unmanned vehicle camera system |
| CN109712091B (en) * | 2018-12-19 | 2021-03-23 | Tcl华星光电技术有限公司 | Image processing method, device and electronic device |
| EP3935601B1 (en) * | 2019-08-06 | 2025-10-01 | Samsung Electronics Co., Ltd. | Local histogram matching with global regularization and motion exclusion for multi-exposure image fusion |
| CN110933327B (en) * | 2019-12-16 | 2021-07-30 | 合肥师范学院 | High dynamic visualization monitoring method of melt surface based on oxygen-enriched side-blown molten pool |
| CN112163584A (en) * | 2020-10-13 | 2021-01-01 | 安谋科技(中国)有限公司 | Electronic device, and method and medium for extracting image features based on wide dynamic range |
| CN112241953B (en) * | 2020-10-22 | 2023-07-21 | 江苏美克医学技术有限公司 | Sample image fusion method and device based on multi-focus image fusion and HDR algorithm |
| CN113808059A (en) * | 2021-09-16 | 2021-12-17 | 北京拙河科技有限公司 | Array image fusion method, device, medium and equipment |
| CN116805976A (en) * | 2022-03-17 | 2023-09-26 | 北京小米移动软件有限公司 | Video processing method, device and storage medium |
| CN114677356A (en) * | 2022-04-01 | 2022-06-28 | 重庆邮电大学 | An Appearance Defect Detection Method for Wine Bottles Based on Multi-view Image Fusion |
| CN116055659B (en) * | 2023-01-10 | 2024-02-20 | 如你所视(北京)科技有限公司 | Original image processing methods, devices, electronic equipment and storage media |
| CN119417831B (en) * | 2025-01-07 | 2025-04-08 | 南京派光智慧感知信息技术有限公司 | Method, device, equipment and medium for synthesizing and monitoring panoramic image of railway tunnel |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101963751A (en) * | 2010-08-19 | 2011-02-02 | 西北工业大学 | Device and method for acquiring high-resolution full-scene image in high dynamic range in real time |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104349066B (en) * | 2013-07-31 | 2018-03-06 | 华为终端(东莞)有限公司 | A kind of method, apparatus for generating high dynamic range images |
| EP3007431A1 (en) * | 2014-10-10 | 2016-04-13 | Thomson Licensing | Method for obtaining at least one high dynamic range image, and corresponding computer program product, and electronic device |
| CN105430298A (en) * | 2015-12-08 | 2016-03-23 | 天津大学 | Method for Synthesizing HDR Images by Simultaneous Exposure of Stereo Camera System |
-
2016
- 2016-12-12 CN CN201611139687.2A patent/CN106960414B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101963751A (en) * | 2010-08-19 | 2011-02-02 | 西北工业大学 | Device and method for acquiring high-resolution full-scene image in high dynamic range in real time |
Non-Patent Citations (3)
| Title |
|---|
| Exposure Fusion: A Simple and Practical Alternative to High Dynamic Range Photography;T. Mertens等;《Computer Graphics Forum》;20081231;第28卷(第1期);第161-171页 * |
| 单幅图像的高动态范围图像生成方法;朱恩弘;《计算机辅助设计与图形学学报》;20161030;第28卷(第10期);第1713-1722页 * |
| 高动态范围(HDR) 技术综述;孙婧;《信息技术》;20160531(第5期);第41-49页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106960414A (en) | 2017-07-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106960414B (en) | Method for generating high-resolution HDR image from multi-view LDR image | |
| US12198301B2 (en) | Image fusion method and apparatus, storage medium, and electronic device | |
| Bando et al. | Extracting depth and matte using a color-filtered aperture | |
| CN109410207B (en) | NCC (non-return control) feature-based unmanned aerial vehicle line inspection image transmission line detection method | |
| JP6438403B2 (en) | Generation of depth maps from planar images based on combined depth cues | |
| CN108876723B (en) | Method for constructing color background of gray target image | |
| CN104952075A (en) | Laser scanning three-dimensional model-oriented multi-image automatic texture mapping method | |
| CN108470370A (en) | The method that three-dimensional laser scanner external camera joint obtains three-dimensional colour point clouds | |
| WO2015165222A1 (en) | Method and device for acquiring panoramic image | |
| CN109978760B (en) | Image stitching method and device | |
| CN112396562A (en) | Disparity map enhancement method based on RGB and DVS image fusion in high-dynamic-range scene | |
| CN107734271B (en) | 1,000,000,000 pixel video generation method of high dynamic range | |
| CN101488224B (en) | Feature Point Matching Method Based on Correlation Measure | |
| CN109544608B (en) | A UAV image collection feature registration method | |
| CN104616247B (en) | A kind of method for map splicing of being taken photo by plane based on super-pixel SIFT | |
| CN103793894A (en) | Cloud model cellular automata corner detection-based substation remote viewing image splicing method | |
| CN107220955A (en) | A kind of brightness of image equalization methods based on overlapping region characteristic point pair | |
| CN104392416A (en) | Video stitching method for sports scene | |
| Yu et al. | Identifying photorealistic computer graphics using convolutional neural networks | |
| CN107506688B (en) | Harris corner detection image pyramid palmprint ROI recognition method | |
| CN109698944A (en) | View field's bearing calibration, projection device and computer readable storage medium | |
| CN104038752B (en) | Multi-view point video rectangular histogram color correction based on three-dimensional Gaussian mixed model | |
| Kaur et al. | A brief review on image stitching and panorama creation methods | |
| CN111047513A (en) | Robust image alignment method and device for cylindrical panoramic stitching | |
| Jong et al. | An effective feature detection approach for image stitching of near-uniform scenes |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |


























