-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from NVIDIA/release_0_2_0
Release 0.2.0. See CHANGELOG.md for changes.
- Loading branch information
Showing
11 changed files
with
148 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.nii.gz filter=lfs diff=lfs merge=lfs -text | ||
*.gif filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "6d2047f5", | ||
"metadata": {}, | ||
"source": [ | ||
"# Clara Viz Interactive Rendering of Multi Level Images\n", | ||
"This notebook shows how to load a volume dataset using the DataDefinition class append method. The append method uses ITK to load the dataset from disk.\n", | ||
"The rendering settings are loaded from a JSON file.\n", | ||
"Then the Clara Viz widget is used to display an interactive view of the data." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "02848184-502d-4fba-9127-a4dd73779330", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"# The DataDefinition class is using cuCIM to load the data files, make sure cuCim is available\n", | ||
"!python3 -c \"import cucim\" || python3 -m pip install cucim\n", | ||
"\n", | ||
"from os.path import exists\n", | ||
"from urllib.request import urlretrieve\n", | ||
"\n", | ||
"file_name = \"data/OpenSlide/CMU-1.tiff\"\n", | ||
"if not exists(file_name):\n", | ||
" print(f'Downloading {file_name}')\n", | ||
" urlretrieve(\"http://openslide.cs.cmu.edu/download/openslide-testdata/Generic-TIFF/CMU-1.tiff\", file_name)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "0dab6d05", | ||
"metadata": {}, | ||
"source": [ | ||
"## Create and display the widget\n", | ||
"The data to be rendered needs to be defined. Clara Viz provides a support class called `DataDefinition` which supports loading medical data formats and serves as a container for the data." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "fc5db1ae", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from clara.viz.core import DataDefinition\n", | ||
"from clara.viz.widgets import Widget\n", | ||
"\n", | ||
"display(Widget(data_definition=DataDefinition(file_name)))" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.8.10" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Data source | ||
|
||
Data is copied from https://openslide.cs.cmu.edu/download/openslide-testdata/Generic-TIFF/. | ||
|
||
## License | ||
|
||
https://creativecommons.org/publicdomain/zero/1.0/ |