Skip to content

Commit

Permalink
Add instructions for using the viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Feb 28, 2024
1 parent 8537e99 commit dee1422
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 7 deletions.
Binary file added docs/visual_dataset/feed_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions docs/visual_dataset/for_users.md

This file was deleted.

34 changes: 34 additions & 0 deletions docs/visual_dataset/for_users.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: "For Users"
sidebar_position: 2
---

Datasets containing volumetric data can be visualized using the "Visual Datasets" feature
by processing the dataset with the plugin `pl-visual-dataset` as described in the page
["For Dataset Publishers"](./for_dataset_publishers). In the feed view of *ChRIS_ui*, an
additional button appears for `pl-visual-dataset` nodes, labeled "View Volumes".

![Screenshot of ChRIS_ui feed view](./feed_view.png)

Clicking the button takes you to "Volume View". You can click the feed icon next to the
feed title in the top-left to go back.

![Screenshot of Volume View](./volume_view.png)

There is a list of files in the sidebar. Click on a file to open it, or <kbd>CTRL</kbd>/&#8984;-click
to overlay the file on top of another selected file. When volume labels are loaded, you can see the name
of the label at the bottom of the screen.

:::tip

Select the T1/T2 MRI volume first, and select the labels last.

:::

With one or more files selected, volume options can be adjusted in the "Volume Options" tab.
Image contrast can be adjusted by `cal_min` and `cal_max` sliders. There is also a slider for `opacity`.

![Screenshot of Volume Options](./volume_options.png)

On desktop layouts, additional tools and controls can be found in the top right corner.
For example, select the "Measurement tool" to measure distances.
Binary file added docs/visual_dataset/volume_options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/visual_dataset/volume_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const config = {
//
// Documentation: https://docusaurus.io/docs/blog#multiple-blogs
plugins: [
'plugin-image-zoom',
[
'@docusaurus/plugin-content-blog',
{
Expand Down Expand Up @@ -205,7 +206,9 @@ const config = {
searchPagePath: 'search',

//... other Algolia params
}
},
// https://github.com/flexanalytics/plugin-image-zoom
// imageZoom: {}
}),
};

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@docusaurus/preset-classic": "3.1.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.1.0",
"plugin-image-zoom": "github:flexanalytics/plugin-image-zoom",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-data-table-component": "^7.6.2",
Expand Down
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ h6 {
[data-theme='dark'] .dark-zoom [data-rmiz-modal-overlay="visible"] {
background-color: rgba(15, 15, 15, 1);
}

/* configuration of flexanalytics/plugin-image-zoom */

[data-theme='dark'] .medium-zoom-overlay {
background-color: rgba(15, 15, 15, 1) !important;
}

0 comments on commit dee1422

Please sign in to comment.