The code and data related to the paper Dark Stereo: Improving Depth Perception Under Low Luminance
More details can be found on the project page: https://dark-stereo.mpi-inf.mpg.de/
Unity implementation can be found in directory stereo_constancy_model/unity_implementation. To use the model in your unity project please follow the steps below:
- Copy stereo_constancy_model/unity_implementation/StereoConstancy directory to the Assets directory of your project.
- Add StereoConstancy component to the camera of your choice.
In the repository you can also find a sample Unity project that uses the Stereo Constancy Model. To try out the sample project, please follow the steps below:
- Start Unity Hub application and add stereo_constancy_model/unity_sample_project as a project.
- After opening the project import SteamVR plugin from the Unity Asset Store (https://assetstore.unity.com/packages/tools/integration/steamvr-plugin-32647).
- During the import of SteamVR plugin you might be asked which API version shall be used. Please pick the Legacy VR option.
- Import following asset pack from the Unity Asset Store: https://assetstore.unity.com/packages/3d/environments/landscapes/rpg-poly-pack-lite-148410 .
- Project is ready to run.
- Note: Project tested with Unity 2019.3.8f1.
The raw data for EXPERIMENT 1, 3D SHAPE PERCEPTION can be found in data/data_3d_shape_perception.csv.
To process the data and generate the plots for the fitted beta per condition (Fig 4) and the equivalent-beta lines (Fig 5), run stereo_constancy_model/data_processing/analyze_data.m. Refer to the paper for more details about the stereo constancy model.