CN101739710A - Outdoor scene illumination parameter restoration device and working method thereof - Google Patents
Outdoor scene illumination parameter restoration device and working method thereof Download PDFInfo
- Publication number
- CN101739710A CN101739710A CN200910229986A CN200910229986A CN101739710A CN 101739710 A CN101739710 A CN 101739710A CN 200910229986 A CN200910229986 A CN 200910229986A CN 200910229986 A CN200910229986 A CN 200910229986A CN 101739710 A CN101739710 A CN 101739710A
- Authority
- CN
- China
- Prior art keywords
- image
- current frame
- sunlight
- value
- scene
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000005286 illumination Methods 0.000 title claims abstract description 11
- 238000011084 recovery Methods 0.000 claims description 13
- 230000002452 interceptive effect Effects 0.000 claims description 3
- 239000000463 material Substances 0.000 abstract description 9
- 238000007781 pre-processing Methods 0.000 abstract description 3
- 230000003190 augmentative effect Effects 0.000 abstract 1
- 238000003709 image segmentation Methods 0.000 abstract 1
- 238000003909 pattern recognition Methods 0.000 abstract 1
- 238000004458 analytical method Methods 0.000 description 6
- 238000010191 image analysis Methods 0.000 description 4
- 238000009877 rendering Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000007664 blowing Methods 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 239000013598 vector Substances 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明涉及室外场景光照参数恢复,尤其涉及一种室外场景光照参数恢复装置及其工作方法。The present invention relates to outdoor scene lighting parameter recovery, in particular to an outdoor scene lighting parameter recovery device and a working method thereof.
背景技术Background technique
E.Nakamae于1986年首次提出将一个计算机生成的虚拟物体合成到真实场景的照片中[NHIN86]。作者通过用户简单交互场景中一些漫射材质的阴影点和非阴影点建立方程组分别求解出太阳光和天空光的红、绿、蓝色道的数值,再用恢复出来的这两个光源绘制虚拟物体,使虚拟物体和真实照片的光照看起来一致。这种方法对于一帧或者几帧图像的光照恢复尚具可操作性,对于在线的视频流则无法进行交互操作,从而完全无法进行处理。此后,由于场景的外貌很大程度上受到入射光照的影响,在逆向绘制、从明暗恢复形状以及本征图像分析等领域,都有一些获取光照参数的工作。下面对这些方法进行简单的介绍。Synthesis of a computer-generated virtual object into a photo of a real scene was first proposed by E. Nakamae in 1986 [NHIN86]. The author establishes equations through the shadow points and non-shadow points of some diffuse materials in the user's simple interaction scene to solve the values of the red, green, and blue channels of the sun light and sky light, and then use the restored two light sources to draw Virtual objects, so that the lighting of virtual objects and real photos looks consistent. This method is still operable for the lighting restoration of one or several frames of images, but it cannot be interactively operated for online video streams, so it cannot be processed at all. Since then, since the appearance of the scene is largely affected by the incident lighting, there have been some works to obtain lighting parameters in the fields of reverse rendering, shape recovery from light and shade, and intrinsic image analysis. These methods are briefly introduced below.
1、逆向绘制1. Reverse drawing
在逆向绘制中,为了避免直接求解的复杂性,[LDR2000]采用手工测量的方法获得室内场景中光源的位置、颜色和强度大小。借助于仪器,这种方法可以获得较为准确的光照参数。但是显而易见,这种方法对于获取室外光照是不可行的。为了获得复杂场景和复杂光照环境下的光照参数,[DYB98]提出一种基于图像的方法。该方法把一个镜面球放入场景中来获得镜面球所在处的全向(360°)入射光,通过对镜面球拍摄若干张曝光度不同的图像,可以获得场景的全向的高动态范围的光照,把这幅图像映射到球面或者立方体上就可以对虚拟物体进行绘制。这种基于图像的光照环境的获取方法在绘制算法中得到了广泛的应用,极大地方便了复杂环境下光照环境的获取。但是,这种方法并不适合于恢复室外场景的光照环境。原因有两个:1)、室外光照中,晴朗天气下太阳光的强度非常大,对现有相机而言,即使采用最小曝光速度,太阳在镜面球上的反射光仍然会过饱和,难以恢复太阳光的正确亮度,导致光照恢复的失败。2)、室外场景中经常有云飘过,或者有微风拂过,这样难以保证用不同曝光度拍摄的多张照片的像素是完全静止或者是完全对齐的,因此获得的高动态范围图像往往不准确。In reverse rendering, in order to avoid the complexity of direct solution, [LDR2000] uses manual measurement method to obtain the position, color and intensity of the light source in the indoor scene. With the aid of instruments, this method can obtain more accurate lighting parameters. But obviously, this method is not feasible for obtaining outdoor lighting. To obtain lighting parameters in complex scenes and complex lighting environments, [DYB98] proposes an image-based method. This method puts a mirror ball into the scene to obtain the omnidirectional (360°) incident light where the mirror ball is located. By shooting several images with different exposures on the mirror ball, the omnidirectional high dynamic range of the scene can be obtained. Lighting, the virtual object can be drawn by mapping this image onto a sphere or cube. This image-based acquisition method of lighting environment has been widely used in rendering algorithms, which greatly facilitates the acquisition of lighting environment in complex environments. However, this method is not suitable for restoring the lighting environment of outdoor scenes. There are two reasons: 1) In outdoor lighting, the intensity of sunlight in sunny weather is very large. For existing cameras, even if the minimum exposure speed is used, the reflected light of the sun on the mirror ball will still be oversaturated and difficult to recover. The correct brightness of the sun light, causing the light recovery to fail. 2) In outdoor scenes, there are often clouds drifting by, or there is a breeze blowing, so it is difficult to ensure that the pixels of multiple photos taken with different exposures are completely still or completely aligned, so the obtained high dynamic range images are often inconsistent. precise.
2、基于物理的方法2. Physics-based methods
图像里一个物体的外貌是由物体表面的材质属性(BRDF),物体几何以及光照共同决定的。如果已知场景的几何和材质属性,则可以求解场景的光照。这种基于物理的求解方法往往利用图像像素的亮度信息、阴影、关键点等来求取光照参数。采用可控光源,[NKGR06]将一张场景图像分解成两张图像,分别为直射光照射下的场景图像和全局光照下的场景图像。此外,在shape from shading中也有一些工作恢复场景的光照参数,如[SJ08]。上述基于物理模型的光照求解方法在室内环境下如可控的实验室内能取得令人满意的效果。但是,由于这些方法大都需要场景的三维建模,因此不适合于室外场景的光照分析The appearance of an object in an image is determined by the material properties (BRDF) of the object's surface, the geometry of the object, and the lighting. The lighting of a scene can be solved if the geometry and material properties of the scene are known. This physics-based solution method often uses the brightness information of image pixels, shadows, key points, etc. to obtain lighting parameters. Using a controllable light source, [NKGR06] decomposes a scene image into two images, the scene image under direct light illumination and the scene image under global illumination. In addition, in shape from shading, there are also some lighting parameters for work recovery scenes, such as [SJ08]. The above lighting solution based on physical model can achieve satisfactory results in indoor environments such as controlled laboratories. However, since most of these methods require 3D modeling of the scene, they are not suitable for lighting analysis of outdoor scenes
3、本征图像分析3. Intrinsic image analysis
近年来,本征图像分析受到越来越多的计算机图形和计算机视觉研究者的关注[TFA05]。本征图像分解技术将一张自然图像分解成一张材质图像(本征图像)和一张光照图像,其中光照图像是光照参数与场景几何的乘积。本征图像分析的主要用途是提取出场景中光照不变的量即材质属性,可以允许用户对材质图像做进一步的编辑操作等。由于光照图像是光照参数与场景几何的乘积,因此这种方法并不能显式地求解出光照参数。此外,现有的从单幅图像里恢复场景的本征图像技术还不够鲁棒和精确,而且计算复杂度较高,不能实时进行。In recent years, intrinsic image analysis has received increasing attention from computer graphics and computer vision researchers [TFA05]. Intrinsic image decomposition technology decomposes a natural image into a material image (intrinsic image) and a lighting image, where the lighting image is the product of lighting parameters and scene geometry. The main purpose of intrinsic image analysis is to extract the invariant amount of illumination in the scene, that is, the material properties, which can allow users to perform further editing operations on the material image. Since the lighting image is the product of the lighting parameters and the scene geometry, this method cannot explicitly solve the lighting parameters. In addition, the existing intrinsic image technology for recovering scenes from a single image is not robust and accurate enough, and the computational complexity is high, which cannot be performed in real time.
4、室外场景的光照分析4. Illumination analysis of outdoor scenes
近年来,室外场景的光照分析越来越受到人们的重视,[SMPR07]将一个静态场景随时间流逝而拍摄的视频体分解成3幅材质图像,两个基曲线,以及一个可压缩的阴影表示,视频体里任意张图像都可以由上述要素重构出来。由于受到假设条件的影响,即认为在晴朗天气条件下,所有像素的外貌向量在差了一个偏移量和一个尺度因子的意义下是相同的,因此这种方法只适合用于晴朗天气下的视频分解。进一步的,[SRM08]提出将室外光源的颜色分布表示为三维线性空间中的一个二维线性子空间,通过阴影提取等方法获得场景光源的色度。上述两种方法对室外场景图像进行了分析,但是没有求出明确的光照参数且没有用光照参数对虚拟物体进行绘制。此外,由于这两种方法是在视频体上进行求解的,因此只适用于对视频进行后处理,不能在线实时处理视频。In recent years, the lighting analysis of outdoor scenes has received more and more attention. [SMPR07] decomposes a video volume of a static scene taken over time into 3 material images, two base curves, and a compressible shadow representation , any image in the video body can be reconstructed from the above elements. Due to the influence of assumptions, that is, in sunny weather, the appearance vectors of all pixels are the same in the sense of difference of an offset and a scale factor, so this method is only suitable for sunny weather. Video breakdown. Furthermore, [SRM08] proposes to represent the color distribution of outdoor light sources as a two-dimensional linear subspace in three-dimensional linear space, and obtain the chromaticity of scene light sources through methods such as shadow extraction. The above two methods analyze the outdoor scene images, but do not obtain clear lighting parameters and do not use lighting parameters to draw virtual objects. In addition, since these two methods are solved on the video volume, they are only suitable for post-processing the video, and cannot process the video online and in real time.
与本发明最为相关的工作是[AJM06]。这篇文章的目标也是向一个真实的场景中添加虚拟物体,当场景的光照变化时能实时的改变虚拟物体的光照。该工作把太阳光模拟为平行光,天空光模拟为泛光,通过对场景建立3D模型,可以确定出图像上每一个像素所对应的场景点,将室外光照模拟为Phong模型,建立方程组求解太阳光和天空光的值。通过在离线阶段进行一系列的预处理,并采用基于图像的绘制方法,使得对虚拟物体的嵌入可以达到实时的效果。这种方法的缺点是需要已知场景的三维模型,而如前所述室外场景的建模非常困难,因此在实际应用中具有很大的局限性。The work most relevant to the present invention is [AJM06]. The goal of this article is also to add virtual objects to a real scene, which can change the lighting of virtual objects in real time when the lighting of the scene changes. This work simulates sunlight as parallel light and sky light as floodlight. By building a 3D model of the scene, the scene point corresponding to each pixel on the image can be determined, and the outdoor light is simulated as a Phong model, and a set of equations is established to solve it. The value of the sun light and sky light. Through a series of preprocessing in the off-line stage, and the use of image-based rendering methods, the embedding of virtual objects can achieve real-time effects. The disadvantage of this method is that the 3D model of the known scene is required, and the modeling of the outdoor scene as mentioned above is very difficult, so it has great limitations in practical applications.
室外场景的光照分析主要存在两个方面的挑战:(1)几何复杂性。与室内场景相比,室外场景的规模要大得多。另外,室外场景通常包括一些造型复杂如树木、地形等难以建模的物体。而现有的室内光照算法一般都要求已知场景的三维表示,因此室内的光照分析方法并不适合于室外场景的光照分析。(2)光照复杂性。室外场景中的自然光源(太阳光和天空光)具有一些特殊的属性,如室外场景的光照受云层、天气条件的影响较大,而且不能人为控制,由于场景结构复杂直接根据精确的光照明模型来反求光照参数难以进行,更难以满足实时性要求。There are two main challenges in the illumination analysis of outdoor scenes: (1) geometric complexity. Compared to indoor scenes, the scale of outdoor scenes is much larger. In addition, outdoor scenes usually include some objects with complex shapes such as trees and terrain that are difficult to model. However, the existing indoor lighting algorithms generally require the 3D representation of the known scene, so the indoor lighting analysis method is not suitable for the lighting analysis of the outdoor scene. (2) Lighting complexity. Natural light sources (sun light and sky light) in outdoor scenes have some special properties. For example, the lighting of outdoor scenes is greatly affected by clouds and weather conditions, and cannot be controlled artificially. Due to the complex structure of the scene, it is directly based on the accurate lighting model It is difficult to reversely calculate the lighting parameters, and it is even more difficult to meet the real-time requirements.
发明内容Contents of the invention
本发明的目的在于针对现有技术的不足,提供一种室外场景光照参数恢复装置及其工作方法。该装置简便易行,由一台计算机及一台摄像机构成。该方法在不需要已知三维场景的几何信息和材质信息的前提下,能实时地获取室外场景的光照参数,使得计算机生成的虚拟物体可以无缝地融合到任意时刻的真实场景的图像序列中。光照参数是指太阳光和天空光的亮度值。The object of the present invention is to provide an outdoor scene illumination parameter recovery device and its working method to address the deficiencies of the prior art. The device is simple and easy to operate, and consists of a computer and a video camera. This method can obtain the lighting parameters of the outdoor scene in real time without knowing the geometric information and material information of the 3D scene, so that the virtual objects generated by the computer can be seamlessly integrated into the image sequence of the real scene at any time . Lighting parameters refer to the brightness values of the sun light and sky light.
一种室外场景光照参数恢复装置,包括计算机和摄像机,计算机和摄像机通过数据线连接。An outdoor scene lighting parameter recovery device includes a computer and a camera, and the computer and the camera are connected through a data line.
一种室外场景光照参数恢复装置的工作方法,方法如下:A working method of an outdoor scene lighting parameter recovery device, the method is as follows:
1)摄像机拍摄场景的一张阴天图像,作为天空光基图像,并输入计算机;1) A cloudy image of the scene captured by the camera is used as a sky light-based image and input to the computer;
2)根据天空光基图像,采用交互的方式确定天空光亮度值的单位;2) According to the sky light-based image, the unit of the sky light brightness value is determined in an interactive manner;
3)摄像机拍摄任意天气情况下场景的图像序列,实时传送至计算机,计算机对当前帧进行处理;3) The camera shoots the image sequence of the scene under any weather conditions, and transmits it to the computer in real time, and the computer processes the current frame;
4)通过权重函数计算当前帧的每一像素所对应的权重值;4) Calculate the weight value corresponding to each pixel of the current frame through the weight function;
5)根据当前帧所有像素所对应的权重值计算天空光亮度值;5) Calculate the sky brightness value according to the weight values corresponding to all the pixels in the current frame;
6)当前帧图像的像素值减去天空光亮度值与天空光基图像对应像素值的乘积,得到当前帧图像对应像素的太阳光分量值;6) The pixel value of the current frame image is subtracted from the product of the sky luminance value and the corresponding pixel value of the sky light base image to obtain the sunlight component value of the corresponding pixel of the current frame image;
7)判断当前帧是否为图像序列的第一帧?是,则令太阳光亮度值为1,太阳光分量值即为太阳光基图像;否,则用当前帧图像的太阳光分量除以太阳光基图像得到太阳光亮度值,通过当前帧图像的太阳光分量值,得到更新的太阳光基图像;7) Determine whether the current frame is the first frame of the image sequence? If yes, set the value of the sunlight brightness to 1, and the value of the sunlight component is the sunlight-based image; otherwise, divide the sunlight component of the current frame image by the sunlight-based image to obtain the value of the sunlight brightness, and pass the current frame image’s sun Light component value, to get the updated sun light base image;
8)判断当前帧是否为最后一帧?是,工作结束;否,则下一帧作为当前帧,重复步骤(3)至(7)。8) Determine whether the current frame is the last frame? If yes, the work is finished; if not, the next frame is used as the current frame, and steps (3) to (7) are repeated.
具体介绍本发明的五个方面:Introduce five aspects of the present invention in detail:
1)室外光照场景下的图像线性表示模型1) Image linear representation model under outdoor lighting scene
在太阳光为平行光源,天空光为均匀分布的面光源的假设下,室外场景中任一三维点x处的光亮度L(x,λ)都可表示成由太阳光照射的亮度部分Csun(x,λ)与由天空光照射的亮度部分Csky(x,λ)的线性组合。I(x,λ)为图像像素x在λ通道的像素值,其中λ=1,2,3分别为红、绿、蓝三个颜色通道,有:Under the assumption that the sunlight is a parallel light source and the sky light is a uniformly distributed surface light source, the luminance L(x, λ) at any three-dimensional point x in an outdoor scene can be expressed as the brightness part C sun irradiated by sunlight Linear combination of (x, λ) and the brightness component C sky (x, λ) illuminated by the sky light. I(x, λ) is the pixel value of the image pixel x in the λ channel, where λ=1, 2, and 3 are the three color channels of red, green, and blue respectively, and there are:
I(x,λ)=Lsun(λ)Csun(x,λ)+Lsky(λ)Csky(x,λ) (1)I(x,λ)=L sun (λ)C sun (x,λ)+L sky (λ)C sky (x,λ) (1)
在上式中,Csun(x,λ)、Csky(x,λ)分别表示x处的阴影、几何以及x处关于天空光和太阳光的遮挡关系的综合效果。对于给定的太阳方位,无论太阳光和天空光怎么变化,这两项是确定不变的,因此分别将其称为太阳光和天空光的基图像。一般情况下,由于天空光的泛光特性,其基图像对任意太阳方位均保持不变。任意一幅室外场景的图像可以表示成太阳光基图像和天空光基图像的线性组合。In the above formula, C sun (x, λ) and C sky (x, λ) respectively represent the comprehensive effect of the shadow at x, the geometry, and the occlusion relationship between the sky light and the sun light at x. For a given sun orientation, no matter how the sun light and sky light change, these two items are constant, so they are called the base images of the sun light and sky light respectively. In general, due to the blooming nature of the sky light, its base image remains unchanged for any sun orientation. Any image of an outdoor scene can be represented as a linear combination of the sun-based image and the sky-based image.
2)天空光基图像的获取2) Acquisition of sky light-based image
由摄像机拍摄一张场景在阴天的图像,作为该场景的天空光基图像Csky(x,λ)。An image of a scene on a cloudy day is captured by the camera, and used as the sky light-based image C sky (x, λ) of the scene.
3)根据太阳光基图像的特点求解每一帧的天空光亮度值3) Solve the sky luminance value of each frame according to the characteristics of the sun-based image
记有在任意时刻拍摄的当前帧图像I(x,λ),计算当前帧图像的每一像素的权重值其权重函数为再对下面的能量函数对不同的颜色通道λ分别求最小解以获取参数a(λ):Record the current frame image I(x, λ) taken at any time, and calculate the weight value of each pixel of the current frame image Its weight function is Then find the minimum solution for the following energy function for different color channels λ to obtain the parameter a(λ):
其中Ω为I(x)中所有像素的集合,则有Lsky(λ)=a(λ)。在本方法中,对于灰度级为255的图像,一般取r1=r2=18。Where Ω is the set of all pixels in I(x), then L sky (λ)=a(λ). In this method, for an image with a gray level of 255, r 1 =r 2 =18 is generally taken.
4)根据恢复出的天空光亮度值,恢复太阳光亮度值4) According to the restored sky brightness value, restore the sun brightness value
在恢复出天空光亮度Lsky(λ)后,即可从公式(1)中求解出当前帧的太阳光分量值Lsun(λ)Csun(x,λ)。因为太阳绕着赤道面缓慢运动,在线图像序列中两帧相邻图像的太阳位置相差很小,因此认为相邻两帧的太阳光基图像是相同的。如果当前帧为第一帧,则其太阳光分量值Lsun(λ)Csun(x,λ)为其太阳光基图像(故相对太阳光亮度为1),记为Csun 0(x,λ);否则,用当前帧的太阳光分量值除以第一帧的太阳光基图像csun 0(x,λ)就可以得到当前帧的太阳光亮度值,而当前帧太阳光分量Lsun(λ)Csun(x,λ)除以太阳光亮度便能获得当前帧的太阳光基图像,并将其作为新的太阳光基图像。After the sky luminance L sky (λ) is recovered, the sunlight component value L sun (λ)C sun (x, λ) of the current frame can be obtained from formula (1). Because the sun moves slowly around the equatorial plane, the difference between the sun positions of two adjacent frames in the online image sequence is very small, so the solar light-based images of two adjacent frames are considered to be the same. If the current frame is the first frame, its sunlight component value L sun (λ)C sun (x, λ) is its sunlight base image (so the relative sunlight brightness is 1), recorded as C sun 0 (x, λ); otherwise, divide the sunlight component value of the current frame by the sunlight base image c sun 0 (x, λ) of the first frame to obtain the sunlight brightness value of the current frame, and the sunlight component L sun of the current frame (λ)C sun (x, λ) is divided by the brightness of the sun to obtain the sun-based image of the current frame, and use it as a new sun-based image.
5)本发明定义的如式(2)所示的目标函数具有如下三个特点:5) the objective function defined in the present invention as shown in formula (2) has following three characteristics:
a)使用图像I(x)中的所有像素来求解天空光亮度值Lsky(λ),而非使用单个像素求解,提高了算法对噪声的鲁棒性。另一方面,虽然按照定义Csun(x,λ)应为非负值,但考虑到图像噪声易出现在阴影区域,因此目标函数要求目标函数在一个平方意义下最小,进一步提高了算法对噪声的鲁棒性。a) Using all the pixels in the image I(x) to solve the sky luminance value L sky (λ), instead of using a single pixel to solve, improves the robustness of the algorithm to noise. On the other hand, although according to the definition C sun (x, λ) should be a non-negative value, considering that the image noise tends to appear in the shadow area, the objective function requires the objective function to be the smallest in a square sense, which further improves the algorithm’s ability to resist noise. robustness.
b)无需对I(x)进行明确的二值阴影检测,使用一个权值函数控制不同亮度的像素在目标函数中的权重。b) There is no need to perform explicit binary shadow detection on I(x), and a weight function is used to control the weight of pixels with different brightness in the objective function.
c)目标函数具有解析解:c) The objective function has an analytical solution:
本发明与背景技术相比较,其优点在于:Compared with background technology, the present invention has the advantages of:
本发明采用基于图像的线性模型方法,不需要场景的三维几何信息,因而避免了对大规模室外场景进行重建时面临的种种技术挑战,使光照恢复方法更为实用。该方法在初始设定完成后,在在线阶段不需要人机交互处理,从而保证了方法可以处理视频流。由于保证了光照一致性,虚拟物体可以无缝融合到真实场景的背景视频序列中。The present invention adopts an image-based linear model method, does not need three-dimensional geometric information of the scene, thus avoids various technical challenges faced when reconstructing a large-scale outdoor scene, and makes the illumination recovery method more practical. After the initial setting is completed, the method does not require human-computer interaction processing in the online stage, thereby ensuring that the method can process video streams. Due to the guaranteed lighting consistency, virtual objects can be seamlessly blended into the background video sequence of the real scene.
附图说明Description of drawings
图1是方法的流程图。Figure 1 is a flowchart of the method.
图2装置的示意图。Figure 2. Schematic diagram of the device.
具体实施方式Detailed ways
下面结合附图和实例对本发明作进一步说明。The present invention will be further described below in conjunction with accompanying drawing and example.
实施例:Example:
一种室外场景光照参数恢复装置,如图2所示,包括计算机和摄像机,计算机和摄像机通过数据线连接。An outdoor scene lighting parameter recovery device, as shown in Figure 2, includes a computer and a camera, and the computer and the camera are connected through a data line.
一种室外场景光照参数恢复装置的工作方法,如图1所示,方法如下:A working method of an outdoor scene lighting parameter recovery device, as shown in Figure 1, the method is as follows:
1)摄像机拍摄场景的一张阴天图像,作为天空光基图像,并输入计算机;1) A cloudy image of the scene captured by the camera is used as a sky light-based image and input to the computer;
2)根据天空光基图像,采用交互的方式确定天空光亮度值的单位;2) According to the sky light-based image, the unit of the sky light brightness value is determined in an interactive manner;
3)摄像机拍摄任意天气情况下场景的图像序列,实时传送至计算机,计算机对当前帧进行处理;3) The camera shoots the image sequence of the scene under any weather conditions, and transmits it to the computer in real time, and the computer processes the current frame;
4)通过权重函数计算当前帧的每一像素所对应的权重值;4) Calculate the weight value corresponding to each pixel of the current frame through the weight function;
5)根据当前帧所有像素所对应的权重值计算天空光亮度值;5) Calculate the sky brightness value according to the weight values corresponding to all the pixels in the current frame;
6)当前帧图像的像素值减去天空光亮度值与天空光基图像对应像素值的乘积,得到当前帧图像对应像素的太阳光分量值;6) The pixel value of the current frame image is subtracted from the product of the sky luminance value and the corresponding pixel value of the sky light base image to obtain the sunlight component value of the corresponding pixel of the current frame image;
7)判断当前帧是否为图像序列的第一帧?是,则令太阳光亮度值为1,太阳光分量值即为太阳光基图像;否,则用当前帧图像的太阳光分量除以太阳光基图像得到太阳光亮度值,通过当前帧图像的太阳光分量值,得到更新的太阳光基图像;7) Determine whether the current frame is the first frame of the image sequence? If yes, set the value of the sunlight brightness to 1, and the value of the sunlight component is the sunlight-based image; otherwise, divide the sunlight component of the current frame image by the sunlight-based image to obtain the value of the sunlight brightness, and pass the current frame image’s sun Light component value, to get the updated sun light base image;
8)判断当前帧是否为最后一帧?是,工作结束;否,则下一帧作为当前帧,重复步骤(3)至(7)。8) Determine whether the current frame is the last frame? If yes, the work is finished; if not, the next frame is used as the current frame, and steps (3) to (7) are repeated.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102299869A CN101739710B (en) | 2009-11-30 | 2009-11-30 | Outdoor scene illumination parameter restoration device and working method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102299869A CN101739710B (en) | 2009-11-30 | 2009-11-30 | Outdoor scene illumination parameter restoration device and working method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101739710A true CN101739710A (en) | 2010-06-16 |
CN101739710B CN101739710B (en) | 2011-08-10 |
Family
ID=42463157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102299869A Expired - Fee Related CN101739710B (en) | 2009-11-30 | 2009-11-30 | Outdoor scene illumination parameter restoration device and working method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101739710B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013001492A1 (en) * | 2011-06-30 | 2013-01-03 | International Business Machines Corporation | A method for augmenting a displayed image |
CN106210554A (en) * | 2016-07-29 | 2016-12-07 | 长春理工大学 | A kind of method synthesizing high dynamic range images |
CN108460841A (en) * | 2018-01-23 | 2018-08-28 | 电子科技大学 | A kind of indoor scene light environment method of estimation based on single image |
CN110189415A (en) * | 2019-04-30 | 2019-08-30 | 山东科技大学 | An outdoor scene reconstruction method based on time-lapse video |
-
2009
- 2009-11-30 CN CN2009102299869A patent/CN101739710B/en not_active Expired - Fee Related
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013001492A1 (en) * | 2011-06-30 | 2013-01-03 | International Business Machines Corporation | A method for augmenting a displayed image |
US8872852B2 (en) | 2011-06-30 | 2014-10-28 | International Business Machines Corporation | Positional context determination with multi marker confidence ranking |
US9147379B2 (en) | 2011-06-30 | 2015-09-29 | International Business Machines Corporation | Positional context determination with multi marker confidence ranking |
CN106210554A (en) * | 2016-07-29 | 2016-12-07 | 长春理工大学 | A kind of method synthesizing high dynamic range images |
CN106210554B (en) * | 2016-07-29 | 2019-01-25 | 长春理工大学 | A method for synthesizing high dynamic range images |
CN108460841A (en) * | 2018-01-23 | 2018-08-28 | 电子科技大学 | A kind of indoor scene light environment method of estimation based on single image |
CN110189415A (en) * | 2019-04-30 | 2019-08-30 | 山东科技大学 | An outdoor scene reconstruction method based on time-lapse video |
CN110189415B (en) * | 2019-04-30 | 2023-03-14 | 山东科技大学 | Outdoor scene reconstruction method based on delayed video |
Also Published As
Publication number | Publication date |
---|---|
CN101739710B (en) | 2011-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Shan et al. | The visual turing test for scene reconstruction | |
CN105844695B (en) | Illumination modeling method based on real material measurement data | |
Lalonde et al. | Lighting estimation in outdoor image collections | |
CN102881011B (en) | Region-segmentation-based portrait illumination transfer method | |
CN102426695A (en) | Virtual-real illumination fusion method of single image scene | |
CN108460841A (en) | A kind of indoor scene light environment method of estimation based on single image | |
CN105447906A (en) | Method for calculating lighting parameters and carrying out relighting rendering based on image and model | |
CN102819864B (en) | Luminosity diagram-based geometry and surface material reconstructing method | |
CN109816784B (en) | Method and system for three-dimensional reconstruction of human body and medium | |
Wu et al. | Making bas-reliefs from photographs of human faces | |
Liu et al. | Light source estimation of outdoor scenes for mixed reality | |
CN108805090A (en) | A kind of virtual examination cosmetic method based on Plane Gridding Model | |
CN107194985A (en) | A kind of three-dimensional visualization method and device towards large scene | |
CN110458964A (en) | A Real-time Calculation Method of Dynamic Lighting in Real Environment | |
Chen et al. | Lighting virtual objects in a single image via coarse scene understanding | |
Liu et al. | Static scene illumination estimation from videos with applications | |
CN101739710B (en) | Outdoor scene illumination parameter restoration device and working method thereof | |
WO2018069827A1 (en) | A method of identifying light sources, corresponding system and computer program product | |
Liao et al. | Illumination animating and editing in a single picture using scene structure estimation | |
Xing et al. | A practical approach for real-time illumination estimation of outdoor videos | |
Xing et al. | Online illumination estimation of outdoor scenes based on videos containing no shadow area | |
Shen et al. | Re-texturing by intrinsic video | |
Guo et al. | Mesh-guided optimized retexturing for image and video | |
Kakuta et al. | Shading and shadowing of architecture in mixed reality | |
Alldieck et al. | Modelling of Clouds from a Hemispherical Image. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110810 Termination date: 20141130 |
|
EXPY | Termination of patent right or utility model |