Skip to content

A web app based study for investigating the effect of object luminance in depth percerption

License

Notifications You must be signed in to change notification settings

SciKit-Surgery/luminance_study

SciKit-Surgery Luminance Study

GitHub Actions CI status https://coveralls.io/repos/github/SciKit-Surgery/luminance_study/badge.svg?branch=3-tests Follow scikit_surgery on twitter

Can we use a web app to study the effect of object luminance on depth perception when viewing anatomically realistic augmented reality?

Try it here here. We can pass various visualisation parameters in the url to change the appearance of the displayed anatomy. Parameters are preceded by a '?' and separated by a '&', see the examples below for some ideas on how to format your URL. Current allowable values are:

  • background_opacity=?? takes a float value from 0.0 to 1.0, default 0.0. Increasing the value creates a darkened layer infront of the background image, making it appear less bright.
  • spotlight if this is included in the URL we add a fixed spotlight to the scene. (defined in src/lights.js)
  • veindiffuseColour=?????? sets the diffuse colour of the veins, 6 digit hexidecimal RGB code. Default 6600FF
  • veinspecularColour=?????? sets the specular colour of the veins, 6 digit hexidecimal RGB code. Default 6600FF
  • veindiffuse=?? sets the diffuse power of the veins, float from 0.0 to 1.0 Default 1.0
  • veinspecular=?? sets the specular power of the veins, float from 0.0 to 1.0 Default 0.0
  • veinopacity=?? sets the opacity of the veins, float from 0.0 to 1.0 Default 1.0
  • t0diffuseColour=?????? sets the diffuse colour of the first tumour, 6 digit hexidecimal RGB code. Default 22FF22
  • t0specularColour=?????? sets the specular colour of the first tumour, 6 digit hexidecimal RGB code. Default 22FF22
  • t0diffuse=?? sets the diffuse power of the first tumour, float from 0.0 to 1.0 Default 1.0
  • t0specular=?? sets the specular power of the first tumour, float from 0.0 to 1.0 Default 0.0
  • t0opacity=?? sets the opacity of the first tumour, float from 0.0 to 1.0 Default 1.0
  • t1diffuseColour=?????? sets the diffuse colour of the second tumour, 6 digit hexidecimal RGB code. Default 22FF22
  • t1specularColour=?????? sets the specular colour of the second tumour, 6 digit hexidecimal RGB code. Default 22FF22
  • t1diffuse=?? sets the diffuse power of the second tumour, float from 0.0 to 1.0 Default 1.0
  • t1specular=?? sets the specular power of the second tumour, float from 0.0 to 1.0 Default 0.0
  • t1opacity=?? sets the opacity of the second tumour, float from 0.0 to 1.0 Default 1.0

Here are some examples:

based on https://github.com/SciKit-Surgery/browser_ar.

Research inspired by:

Susanne Schmidt, Gerd Bruder and Frank Steinicke, "Depth Perception and Manipulation in Projection-Based Spatial Augmented Reality," in Presence, vol. 27, no. 2, pp. 242-256, Feb. 2020, https://doi.org/10.1162/pres_a_00329

npm init
npm install @kitware/vtk.js
npm install -D webpack-cli webpack webpack-dev-server
export NODE_OPTIONS=--openssl-legacy-provider
npm run build
npm run start