GitHub - facebookresearch/RealisticLuminanceInVR: Realistic Luminance in VR, by Nathan Matsuda*, Alexandre Chapiro*, Yang Zhao, Clinton Smith, Romain Bachy, and Douglas Lanman. SIGGRAPH Asia 2022. (original) (raw)

This repository contains our Matlab demo code converting RGB pixel data to luminance, following the steps in our paper:

Realistic Luminance in VR Nathan Matsuda*, Alexandre Chapiro*, Yang Zhao, Clinton Smith, Romain Bachy, Douglas Lanman Meta, USA Conference track of SIGGRAPH Asia 2022

The code generates the plots in the paper, and can be easily modified to use a different camera or observer type. If you use this code in your research, please cite our paper above.

Installation

First, save the following to the "data" directory:

Then, download the Southampton-York Natural Scenes dataset to the from its authors' website before running the SYNS_RGB_to_luminance demo: https://syns.soton.ac.uk/browse

The scenes used in our work were the following:

9 indoor scenes:

10 outdoor scenes:

The folder structure is set up as in the examples below for indoor scene #81. The top path is for the .hdr image containing the image capture we will use to extract the luminance information. The second path is for the metadata file that has the camera exposure, ISO, and f values we need to compute luminance. SYNSData -> indoor -> SYNS_scene_81_indoor_Lecturehall -> SYNSData -> 81 -> rep1.hdr SYNSData -> indoor -> SYNS_scene_81_indoor_Lecturehall -> SYNSData -> 81 -> I_25_81.txt

The same is repeated for e.g. outdoor scene #1: SYNSData -> outdoor -> SYNS_scene_1_outdoor_Urban -> SYNSData -> 1 -> rep1.hdr SYNSData -> outdoor -> SYNS_scene_1_outdoor_Urban -> SYNSData -> 1 -> O_1_14.txt

Usage

There are 3 top-level Matlab scripts used to generate the plots in our paper:

Contact

Please feel free to reach out to Alex Chapiro (alex@chapiro.net) and Nathan Matsuda (nathan.matsuda@fb.com) with any questions or comments, we love hearing about folk using our code!

LICENSE

Shield: CC BY-NC-SA 4.0

This work is licensed under aCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0