Skip to content

Commit

Permalink
docs(WebXRVolume): Add CT-Cardiac2 preset
Browse files Browse the repository at this point in the history
  • Loading branch information
tbirdso committed Feb 28, 2023
1 parent 551f583 commit 9136aa7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions Examples/Volume/WebXRVolume/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,20 @@ HttpDataAccessHelper.fetchBinary(fileURL).then((fileContents) => {
ofun.addPoint(214, 0.7);
ofun.addPoint(420, 0.83);
ofun.addPoint(3071, 0.8);
} else if(colorPreset === 'CT-Cardiac2') {
ctfun.addRGBPoint(-3024, 0.0, 0, 0);
ctfun.addRGBPoint(42, 0.55, 0.25, 0.15);
ctfun.addRGBPoint(163, 0.92, 0.64, 0.06);
ctfun.addRGBPoint(278, 1, 0.88, 0.62);
ctfun.addRGBPoint(1587, 1, 1, 1);
ctfun.addRGBPoint(3071, 0.83, 0.66, 1);

ofun.addPoint(-3024, 0);
ofun.addPoint(43, 0);
ofun.addPoint(163, 0.42);
ofun.addPoint(277, 0.78);
ofun.addPoint(1587, 0.75);
ofun.addPoint(3071, 0.8);
} else {
// Scale color and opacity transfer functions to data intensity range
ctfun.addRGBPoint(dataRange[0], 0.0, 0.3, 0.3);
Expand Down
4 changes: 2 additions & 2 deletions Examples/Volume/WebXRVolume/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Volume rendering can be processor-intensive. Smaller volumes may give better per

- [binary-head.vti](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?fileURL=https://data.kitware.com/api/v1/file/59de9dca8d777f31ac641dc2/download) 15.6 MB
- [binary-head-2.vti](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?fileURL=https://data.kitware.com/api/v1/file/629921a64acac99f429a45a7/download) 361 kB
- [Head_and_Neck.vti](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?fileURL=https://data.kitware.com/api/v1/file/63fe3f237b0dfcc98f66a857/download&colorPreset=CT-AAA&resliceVolume=true) 5.025 MB
- [Kitware_CTA_Head_and_Neck.vti](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?fileURL=https://data.kitware.com/api/v1/file/63fe3f237b0dfcc98f66a857/download&colorPreset=CT-Cardiac2&resliceVolume=true) 5.025 MB
- [tiny-image.vti](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?fileURL=https://data.kitware.com/api/v1/file/624320e74acac99f42254a25/download) 1.6 kB

### Looking Glass Holographic Support
Expand All @@ -18,7 +18,7 @@ Holographic scenes can be rendered to a Looking Glass display by specifying the

- [binary-head.vti (holographic)](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?xrSessionType=2&fileURL=https://data.kitware.com/api/v1/file/59de9dca8d777f31ac641dc2/download) 15.6 MB
- [3DUS-fetus.vti (holographic)](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?xrSessionType=2&fileURL=https://data.kitware.com/api/v1/file/63fe43217b0dfcc98f66a85a/download) 30.22 MB
- [Head_and_Neck.vti (holographic)](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?xrSessionType=2&fileURL=https://data.kitware.com/api/v1/file/63fe3f237b0dfcc98f66a857/download&colorPreset=CT-AAA&resliceVolume=true) 5.025 MB
- [Kitware_CTA_Head_and_Neck.vti (holographic)](https://kitware.github.io/vtk-js/examples/WebXRVolume/WebXRVolume.html?xrSessionType=2&fileURL=https://data.kitware.com/api/v1/file/63fe3f237b0dfcc98f66a857/download&colorPreset=CT-Cardiac2&resliceVolume=false) 5.025 MB


### See Also
Expand Down

0 comments on commit 9136aa7

Please sign in to comment.