Literature DB >> 30167383

A method of single reference image based scene relighting.

Xin Jin1, Yannan Li1, Ri Xu1, Xiaokun Zhang1, Xiaodong Li1.   

Abstract

Image relighting is to change the illumination of an image to a target illumination effect without known the original scene geometry, material information and illumination condition. We propose a novel outdoor scene relighting method, which needs only a single reference image and is based on material constrained layer decomposition. Firstly, the material map is extracted from the input image. Then, the reference image is warped to the input image through patch match based image warping. Lastly, the input image is relit using material constrained layer decomposition. The experimental results reveal that our method can produce similar illumination effect as that of the reference image on the input image using only a single reference image.

Entities:  

Keywords:  Image relighting; Layer decomposition; Material map; Single reference image; Single reference image based scene relighting

Year:  2018        PMID: 30167383      PMCID: PMC6111242          DOI: 10.1016/j.mex.2018.08.004

Source DB:  PubMed          Journal:  MethodsX        ISSN: 2215-0161


Specifications Table Computer Science

Method details

Our proposed method can be divided into 4 steps, as shown in Fig. 1 (1) the input image is segmented to the material map using the method of Bell et al. [1]. Every pixel of the material map is assigned by a material label; (2) the reference image is warped to the structure of the input image by the patch match warping; (3) each channel of the input image and the reference is decomposed to large-scale layer and detail layer under material constrain; (4) the final relit results are obtained by composing the details of the input image and the large-scale layer of the warped reference image. Different from some methods that rely on inferred geometry [2,3], the proposed method does not rely on inference geometry.
Fig. 1

Scene relighting using only a single reference image.

Scene relighting using only a single reference image. The input image is segmented according to the material of each pixel. We use the method of Bell et al. [1] to obtain material label of each pixel. We make the material segmentation because that in different material region, different relighting operations should be conducted. We select 9 sorts of materials, which often appear in outdoor scene images, as shown in Fig. 2. We recolor each pixel according to the material label to get the material map. The first and the third lines are the input images. The second and the forth lines are the corresponding material maps.
Fig. 2

The material maps of the input images.

The material maps of the input images. In face image relighting, the reference face image can be warped by face landmark detection/face alignment. However, in outdoor scene, we cannot find such similar structure easily. The outdoor scene contains multiple objects. Thus, we use the patch match method to warp the reference image to the input image, i.e. to align the reference and the input image. The patch match algorithm is similar as the method of Barnes et al. [5]. We use the neighbor patches whose best matched patches have already been found to improve matching result of current patch. The difference from Barnes et al. [5] is that we use 4 neighbor patches instead of 3 ones. The basic idea is to find the most similar patch in the reference image to substitute the original patch in the input image. Two basic assumptions are made: (1) the matched patches of the neighbor patches in the input image are mostly neighbor; (2) large scale random search region may also contain matched patch. We denote the input image as A and the reference image as B. The coordinate of a patch is represented as coordinate of the left up corner of the patch. The Nearest Neighbor Field (NNF) is defined as f, whose definition domain is the coordinates of all the patches in A. The value of the NNF is the offset of the coordinate of matched patch in B. We denote the coordinate of the original patch in A as a and the coordinate of the matched patch in B as b, then:The distance between the original patch and the matched patch is defined as , which describes the distance between the patch a in A and patch in B. The distance is computed by the Euclidean distance [6]. The warping method contains three steps: initialization, propagation and random search.where , is a random point in [1,1][−1,1]. is the max search radius. α is the declining rate of the radius. The warped results of some reference images are shown in Fig. 3.
Fig. 3

Patch match based scene image warping.

Initialization. The initial offset of each patch in A is randomized around the patch. Propagation. As assumed above, the matched patches of the neighbor patches in the input image are mostly neighbor. We use the neighbor patches whose best matched patches have already been found to improve matching result of current patch. The , and are used: Random Search. As assumed above, large scale random search region may also contain matched patch. We use a search window whose size is declined exponentially. Patch match based scene image warping. We use the WLS filter [7] to decompose image into large-scale layer and detail layer, which can be considered as the illumination component and non-illumination component. Using the large-scale layer of the warped reference to substitute the large scale layer of the input can produce the final relit result. The outdoor scene contains various objects with various materials. Thus for different material, different decomposition parameters should be used. Each channel of the input image and the reference image is filtered to a large-scale layer s. The detail layer d is obtained by: The original WLS filter uses the same smoothness level over the whole image. When using the WLS filter for our scene relighting task, we need make regions with different materials with different smooth levels. Thus, we set different smoothness levels in regions with different materials. We modified the original WLS [7] as:where, is the data term, which is to let and s as similar as possible, i.e., to minimize the distance between and s. is the regularization (smoothness) term, which makes s as smooth as possible, i.e. to minimize the partial derivative of s. p is the pixel of the image. α controls over the affinities by non-linearly scaling the gradients. Increasing α will result in sharper preserved edges. λ is the balance factor between the data term and the smoothness term. Increasing λ will produce smoother images. is a very small number, so as to avoid the division by 0. Our λ is the smoothness level constrained by different materials, using the material map (Fig. 4, Fig. 5):where, is the gradient of . is the material map of , and the gray is the gray value of :
Fig. 4

The relit results of our method.

Fig. 5

The relit results of different Ref image.

The relit results of our method. The relit results of different Ref image. The minimization of Eqs. (1) and (2) can be solved by the off-the-shell methods such as Lischinski [6]. At last, using the large-scale layer of the warped reference to substitute the large-scale layer of the input can produce the final relit result.

Comparison with other methods

We compare our method with the state of the art method [4], which needs a time-lapse video captured by a fixed camera working for 24 h. While our method needs only a single reference image. We randomly select 5 input images for comparison. As shown in Fig. 6, (a): multiple input images, (b) the reference image, (c): warped reference images to corresponding input images, (d): warped reference images using method of [4], note that they need a time-lapse video for warping, (e): the relit results using our proposed method, (f): the relit results using the method of [4].The results reveal that our method can produce similar relit results as those of [4], with only a single reference image.
Fig. 6

Comparison with [4].

Comparison with [4].
Subject area

Computer Science

More specific subject areaComputer Vision, Image Relighting
Method nameSingle Reference Image based Scene Relighting
Name and reference of original methodNone
Resource availabilitycoming soon
  1 in total

1.  Shape, Illumination, and Reflectance from Shading.

Authors:  Jonathan T Barron; Jitendra Malik
Journal:  IEEE Trans Pattern Anal Mach Intell       Date:  2015-08       Impact factor: 6.226

  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.