From a8167dac82503557c99479a010e5b31f3f389624 Mon Sep 17 00:00:00 2001 From: Tom Birdsong Date: Tue, 28 Feb 2023 14:57:15 -0500 Subject: [PATCH] docs(WebXRVolume): Add CT-Cardiac2 preset --- Examples/Volume/WebXRVolume/index.js | 14 ++++++++++++++ Examples/Volume/WebXRVolume/index.md | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Examples/Volume/WebXRVolume/index.js b/Examples/Volume/WebXRVolume/index.js index 2cd921ad6a5..af01c0834d0 100644 --- a/Examples/Volume/WebXRVolume/index.js +++ b/Examples/Volume/WebXRVolume/index.js @@ -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); diff --git a/Examples/Volume/WebXRVolume/index.md b/Examples/Volume/WebXRVolume/index.md index 04a3c15241c..b48a8c51e75 100644 --- a/Examples/Volume/WebXRVolume/index.md +++ b/Examples/Volume/WebXRVolume/index.md @@ -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 @@ -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