From Noon to Sunset: Interactive Rendering, Relighting, and Recolouring of Landscape Photographs by Modifying Solar Position
Mustafa Ege Çıklabakkal
University of Waterloo, Waterloo, Canada
Search for more papers by this authorCorresponding Author
Ahmet Oguz Akyüz
Middle East Technical University, Ankara, Turkey
Search for more papers by this authorMustafa Ege Çıklabakkal
University of Waterloo, Waterloo, Canada
Search for more papers by this authorCorresponding Author
Ahmet Oguz Akyüz
Middle East Technical University, Ankara, Turkey
Search for more papers by this authorAbstract
Image editing is a commonly studied problem in computer graphics. Despite the presence of many advanced editing tools, there is no satisfactory solution to controllably update the position of the sun using a single image. This problem is made complicated by the presence of clouds, complex landscapes, and the atmospheric effects that must be accounted for. In this paper, we tackle this problem starting with only a single photograph. With the user clicking on the initial position of the sun, our algorithm performs several estimation and segmentation processes for finding the horizon, scene depth, clouds, and the sky line. After this initial process, the user can make both fine- and large-scale changes on the position of the sun: it can be set beneath the mountains or moved behind the clouds practically turning a midday photograph into a sunset (or vice versa). We leverage a precomputed atmospheric scattering algorithm to make all of these changes not only realistic but also in real-time. We demonstrate our results using both clear and cloudy skies, showing how to add, remove, and relight clouds, all the while allowing for advanced effects such as scattering, shadows, light shafts, and lens flares.
Supporting Information
Filename | Description |
---|---|
SunEditingAll.mp419.4 MB | Supporting Information |
Please note: The publisher is not responsible for the content or functionality of any supporting information supplied by the authors. Any queries (other than missing content) should be directed to the corresponding author for the article.
References
- [ASK*20] Anokhin I., Solovev P., Korzhenkov D., Kharlamov A., Khakhulin T., Silvestrov A., Nikolenko S., Lempitsky V., Sterkin G.: High-resolution daytime translation without domain labels. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2020), pp. 7488–7497.
- [BA83] Burt P. J., Adelson E. H.: A multiresolution spline with application to image mosaics. ACM Transactions on Graphics (TOG) 2, 4 (1983), 217–236.
- [BBS14] Bell S., Bala K., Snavely N.: Intrinsic images in the wild. ACM Transactions on Graphics, 33 (2014), 1–12. http://doi.org/10.1145/2601097.2601206.
- [BG17] Balcı H., Güdükbay U.: Sun position estimation and tracking for virtual object placement in time-lapse videos. Signal, Image and Video Processing 11, 5 (Jul 2017), 817–824.
- [BN08] Bruneton E., Neyret F.: Precomputed atmospheric scattering. Computer Graphics Forum, 27 (2008), 1079–1086.
- [CAT06] Chandra K., Adabala N., Toyama K.: Aerial image relighting: simulating time of day variations. In Advances in Computer Graphics. Springer, 2006, pp. 594–605.
10.1007/11784203_56 Google Scholar
- [CCC20] Cheng C. C., Chen H. Y., Chiu W. C.: Time flies: Animating a still image with time-lapse video as reference. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (June 2020).
- [CNT*15] Chauvin R., Nou J., Thil S., Traore A., Grieu S.: Cloud detection methodology based on a sky-imaging system. Energy Procedia 69 (2015), 1970–1980.
10.1016/j.egypro.2015.03.198 Google Scholar
- [DLW17] Dev S., Lee Y. H., Winkler S.: Color-based segmentation of sky/cloud images from ground-based cameras. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing 10, 1 (2017), 231–242.
- [ED04] Eisemann E., Durand F.: Flash photography enhancement via intrinsic relighting. ACM Transactions on Graphics (TOG) (2004), 23, 673–678.
- [Ele09] Elek O.: Rendering parametrizable planetary atmospheres with multiple scattering in real-time. In Proceedings of the Central European Seminar on Computer Graphics (2009), Citeseer.
- [EPF14] Eigen D., Puhrsch C., Fergus R.: Depth map prediction from a single image using a multi-scale deep network. In Proceedings of NIPS (2014).
- [Fai13] Fairchild M. D.: Color Appearance Models. John Wiley & Sons, 2013.
10.1002/9781118653128 Google Scholar
- [FHL*09] Farbman Z., Hoffer G., Lipman Y., Cohen-Or D., Lischinski D.: Coordinates for instant image cloning. ACM Transactions on Graphics (TOG) 28, 3 (2009), 67.
- [FPC*14] Faridul H. S., Pouli T., Chamaret C., Stauder J., Trémeau A., Reinhard E., et al.: A survey of color mapping and its applications. Eurographics (State of the Art Reports) 3 (2014), 2.
- [Gei12] Geiger A.: Are we ready for autonomous driving? the Kitti vision benchmark suite. In Proceedings of CVPR (2012).
- [HMS10] Heinle A., Macke A., Srivastav A.: Automatic cloud classification of whole sky images. Atmospheric Measurement Techniques 3, 3 (2010), 557–567.
- [HYCL17] Hsu-Yung C., Chih-Lung L.: Cloud detection in all-sky images via multi-scale neighborhood features and multiple supervised learning techniques. Atmospheric Measurement Techniques 10, 1 (2017), 199.
- [HZYG17] He K., Zhen R., Yan J., Ge Y.: Single-image shadow removal using 3D intensity surface modeling. IEEE Transactions on Image Processing 26, 12 (2017), 6046–6060.
- [IZZE17] Isola P., Zhu J. Y., Zhou T., Efros A. A.: Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2017), pp. 1125–1134.
- [JCW09] Jeschke S., Cline D., Wonka P.: A GPU Laplacian solver for diffusion curves and poisson image editing. ACM Transactions on Graphics (TOG), 28 (2009), 116.
- [JH87] Johnson R., Hering W. S.: Automated cloud cover measurements with a solid-state imaging system. In Proceedings of the Cloud Impacts on DOD Operations and Systems?1987, Workshop (1987), pp. 59–69.
- [KAEE20] Karacan L., Akata Z., Erdem A., Erdem E.: Manipulating Attributes of Natural Scenes via Hallucination. ACM Transactions on Graphics, 39 (2020), 1–17. http://doi.org/10.1145/3368312.
- [KJS91] Koehler T., Johnson R., Shields J.: Status of the whole sky imager database. In Proceedings of the Cloud Impacts on DOD Operations and Systems, 1991 Conference (1991), pp. 77–80.
- [KK11] Krähenbühl P., Koltun V.: Efficient inference in fully connected CRFs with Gaussian edge potentials. In Advances in Neural Information Processing Systems (2011), pp. 109–117.
- [KRFB06] Khan E. A., Reinhard E., Fleming R. W., Bülthoff H. H.: Image-based material editing. ACM Transactions on Graphics (TOG) 25, 3 (2006), 654–663.
- [LFSK06] Liu C., Freeman W. T., Szeliski R., Kang S. B.: Noise estimation from a single image. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06) (2006), vol. 1, IEEE, pp. 901–908.
- [LFUS06] Lischinski D., Farbman Z., Uyttendaele M., Szeliski R.: Interactive local adjustment of tonal values. ACM Transactions on Graphics (TOG), 25 (2006), 646–653.
- [LGvGRM14] Lezama J., Grompone von Gioi R., Randall G., Morel J.-M.: Finding vanishing points via point alignments in image primal and dual domains. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2014), pp. 509–515.
- [LGZ*20] Liu A., Ginosar S., Zhou T., Efros A. A., Snavely N.: Learning to factorize and relight a city. In ECCV (2020).
10.1007/978-3-030-58548-8_32 Google Scholar
- [LL93] Li C. H., Lee C.: Minimum cross entropy thresholding. Pattern Recognition 26, 4 (1993), 617–625.
- [LLC*10] Lagae A., Lefebvre S., Cook R., DeRose T., Drettakis G., Ebert D. S., Lewis J. P., Perlin K., Zwicker M.: A survey of procedural noise functions. In Computer Graphics Forum (2010), vol. 29, Wiley Online Library, pp. 2579–2600.
- [LLC*20] Liu Y. L., Lai W. S., Chen Y. S., Kao Y. L., Yang M. H., Chuang Y. Y., Huang J. B.: Single-image HDR reconstruction by learning to reverse the camera pipeline. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (June 2020).
- [LLC*21] Liu Z., Lin Y., Cao Y., Hu H., Wei Y., Zhang Z., Lin S., Guo B.: Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030 (2021).
- [LLY11] Li Q., Lu W., Yang J.: A hybrid thresholding algorithm for cloud detection on ground-based color images. Journal of Atmospheric and Oceanic Technology 28, 10 (2011), 1286–1296.
- [LP17] Li H., Peers P.: CRF-net: Single image radiometric calibration using CNNs. In Proceedings of the 14th European Conference on Visual Media Production (CVMP 2017) (2017), pp. 1–9.
- [LRB*16] Laina I., Rupprecht C., Belagiannis V., Tombari F., Navab N.: Deeper depth prediction with fully convolutional residual networks. In Proceedings of 3DV (2016).
- [LS18] Li Z., Snavely N.: Megadepth: Learning single-view depth prediction from internet photos. In Proceedings of CVPR (2018).
- [LSD15] Long J., Shelhamer E., Darrell T.: Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2015), pp. 3431–3440.
- [LSK*20] Logacheva E., Suvorov R., Khomenko O., Mashikhin A., Lempitsky V.: Deeplandscape: Adversarial modeling of landscape video. In European Conference on Computer Vision (ECCV) (2020).
- [LSL15] Liu F., Shen C., Lin G.: Deep convolutional neural fields for depth estimation from a single image. In Proceedings of CVPR (2015).
- [MGAD19] Murmann L., Gharbi M., Aittala M., Durand F.: A dataset of multi-illumination images in the wild. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) (October 2019).
- [ML04] Madsen C. B., Laursen R.: Image relighting: Getting the sun to set in an image taken at noon. In 13th Danish Conference on Pattern Recognition and Image Analysis (2004), Citeseer, pp. 13–20.
- [MWBJ16] Mihail R. P., Workman S., Bessinger Z., Jacobs N.: Sky segmentation in the wild: An empirical study. In Applications of Computer Vision (WACV), 2016 IEEE Winter Conference on (2016), IEEE, pp. 1–6.
- [MZRT16] Meka A., Zollhöfer M., Richardt C., Theobalt C.: Live intrinsic video. ACM Transactions on Graphics. (TOG) 35, 4 (2016), 109.
- [NMC*19] Nam S., Ma C., Chai M., Brendel W., Xu N., Kim S. J.: End-to-end time-lapse video synthesis from a single outdoor image. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (June 2019).
- [Per85] Perlin K.: An image synthesizer. ACM SIGGRAPH Computer Graphics 19, 3 (1985), 287–296.
10.1145/325165.325247 Google Scholar
- [PGB03] Pérez P., Gangnet M., Blake A.: Poisson image editing. ACM Transactions on Graphics (TOG) 22, 3 (2003), 313–318.
- [PGZ*19] Philip J., Gharbi M., Zhou T., Efros A., Drettakis G.: Multi-view relighting using a geometry-aware network. ACM Transactions on Graphics (SIGGRAPH Conference Proceedings) 38, 4 (July 2019).
- [PML*03] Pfister G., McKenzie R., Liley J., Thomas A., Forgan B., Long C. N.: Cloud coverage based on all-sky imaging and its impact on surface solar irradiance. Journal of Applied Meteorology 42, 10 (2003), 1421–1434.
- [RAGS01] Reinhard E., Ashikhmin M., Gooch B., Shirley P.: Color transfer between images. IEEE Computer Graphics and Applications 21, 5 (2001), 34–41.
- [RBK21] Ranftl R., Bochkovskiy A., Koltun V.: Vision transformers for dense prediction. arXiv:2103.13413 (2021).
- [RCC98] Ruderman D. L., Cronin T. W., Chiao C. C.: Statistics of cone responses to natural images: implications for visual coding. JOSA A 15, 8 (1998), 2036–2045.
- [RDL*15] Ren P., Dong Y., Lin S., Tong X., Guo B.: Image based relighting using neural networks. ACM Transactions on Graphics (TOG) 34, 4 (2015), 111.
- [RGSN18] Rawat S., Gairola S., Shah R., Narayanan P. J.: Find me a sky: a data-driven method for color-consistent sky search and replacement. In International Conference on MultiMedia Modeling (Cham, 2018), Springer International Publishing, pp. 216–228.
10.1007/978-3-319-73603-7_18 Google Scholar
- [RKAJ08] Reinhard E., Khan E. A., Akyuz A. O., Johnson G.: Color Imaging: Fundamentals and Applications. CRC Press, 2008.
10.1201/b10637 Google Scholar
- [RKB04] Rother C., Kolmogorov V., Blake A.: Grabcut: Interactive foreground extraction using iterated graph cuts. ACM Transactions on Graphics (TOG), 23 (2004), 309–314.
- [RSSF02] Reinhard E., Stark M., Shirley P., Ferwerda J.: Photographic tone reproduction for digital images. In Proceedings of the 29th Annual Conference on Computer Graphics and Interactive Techniques (2002), pp. 267–276.
- [RT16] Roy A., Todorovic S.: Monocular depth estimation using neural regression forest. In Proceedings on CVPR (2016).
- [SBT*19] Sun T., Barron T. J., Tsai Y. T., Xu Z., Yu X., Fyffe G., Rhemann C., Busch J., Debevec P., Ramamoorthi R.: Single image portrait relighting. ACM Transactions on Graphics (TOG) (2019).
- [Sch95] Schlick C.: Quantization techniques for visualization of high dynamic range pictures. In Photorealistic Rendering Techniques. Springer, 1995, pp. 7–20.
10.1007/978-3-642-87825-1_2 Google Scholar
- [Sch16] Schneider A.: Real-time volumetric cloudscapes. GPU Pro 7: Advanced Rendering Techniques 97 (2016).
- [SHKF12] Silberman N., Hoiem D., Kohli P., Fergus R.: Indoor segmentation and support inference from RGBD images. In Proceedings of ECCV (2012).
10.1007/978-3-642-33715-4_54 Google Scholar
- [SPDF13] Shih Y., Paris S., Durand F., Freeman W. T.: Data-driven hallucination of different times of day from a single outdoor photo. ACM Transactions on Graphics (TOG) 32, 6 (2013), 200.
- [SSL12] Sanin A., Sanderson C., Lovell B. C.: Shadow detection: A survey and comparative evaluation of recent methods. Pattern Recognition 45, 4 (2012), 1684–1695.
- [SSN09] Saxena A., Sun M., Ng A. Y.: Make3D: Learning 3D scene structure from a single still image. IEEE Transactions on Pattern Analysis and Machine Intelligence 31, 5 (2009), 824–840.
- [SW13] Shen Y., Wang Q.: Sky region detection in a single image for autonomous ground robot navigation. International Journal of Advanced Robotic Systems 10, 10 (2013), 362.
- [Tar09] Tardif J. P.: Non-iterative approach for fast and accurate vanishing point detection. In Computer Vision, 2009 IEEE 12th International Conference on (2009), IEEE, pp. 1250–1257.
- [TSL*16] Tsai Y. H., Shen X., Lin Z., Sunkavalli K., Yang M. H.: Sky is not the limit: Semantic-aware sky replacement. ACM Transactions on Graphics (TOG) 35, 4 (2016), 149.
- [WAM02] Welsh T., Ashikhmin M., Mueller K.: Transferring color to greyscale images. ACM Transactions on Graphics (TOG), 21 (2002), 277–280.
- [WGZ*15] Workman S., Greenwell C., Zhai M., Baltenberger R., Jacobs N.: Deepfocal: A method for direct focal length estimation. In 2015 IEEE International Conference on Image Processing (ICIP) (2015), IEEE, pp. 1369–1373.
- [Wor96] Worley S.: A cellular texture basis function. In Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques (1996), pp. 291–294.
- [WZJ16] Workman S., Zhai M., Jacobs N.: Horizon lines in the wild. arXiv preprint arXiv:1604.02129 (2016).
- [XOH13] Xu Y., Oh S., Hoogs A.: A minimum error vanishing point detection approach for uncalibrated monocular images of man-made environments. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2013), pp. 1376–1383.
- [XSHR18] Xu Z., Sunkavalli K., Hadap S., Ramamoorthi R.: Deep image-based relighting from optimal sparse samples. ACM Transactions on Graphics (TOG) 37, 4 (2018), 126.
- [YLMY12] Yang J., Lu W., Ma Y., Yao W.: An automated cirrus cloud detection method for a ground-based cloud image. Journal of Atmospheric and Oceanic Technology 29, 4 (2012), 527–537.
- [YME*20] Yu Y., Meka A., Elgharib M., Seidel H.-P., Theobalt C., Smith W.: Self-supervised outdoor scene relighting. In Proceedings. of ECCV (2020).
- [YML*16] Yang J., Min Q., Lu W., Ma Y., Yao W., Lu T., Du J., Liu G.: A total sky cloud detection method using real clear sky background. Atmospheric Measurement Techniques 9, 2 (2016), 587–597.
- [YZZ*17] Yan H., Zhang Y., Zhang S., Zhao S., Zhang L.: Focal length estimation guided with object distribution on focalens dataset. Journal of Electronic Imaging 26, 3 (2017), 033018.
- [ZHSJ19] Zhou H., Hadap S., Sunkavalli K., Jacobs D. W.: Deep single-image portrait relighting. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) (October 2019).
- [ZSQ*17] Zhao H., Shi J., Qi X., Wang X., Jia J.: Pyramid scene parsing network. In CVPR (2017).
10.1109/CVPR.2017.660 Google Scholar
- [ZZP*17] Zhou B., Zhao H., Puig X., Fidler S., Barriuso A., Torralba A.: Scene parsing through ADE20K dataset. In Proceedings of CVPR (2017).
10.1109/CVPR.2017.544 Google Scholar
- [ZZP*19] Zhou B., Zhao H., Puig X., Xiao T., Fidler S., Barriuso A., Torralba A.: Semantic understanding of scenes through the ADE20K dataset. International Journal of Computer Vision 127, 3 (2019), 302–321.