feat: Add mode validity for the base viewer (#2525)
* feat: Add mode validity for the base viewer * feat: Edit documentation and remove unnecessary files * feat: Add probe tool documentation * docs: Improved screenshots annotations * Added new screenshot for measurements
No files matched your search
@@ -54,15 +54,13 @@ To cite the OHIF Viewer in an academic publication, please cite
|
||||
|
||||
> _Open Health Imaging Foundation Viewer: An Extensible Open-Source Framework
|
||||
> for Building Web-Based Imaging Applications to Support Cancer Research_
|
||||
|
||||
> Erik Ziegler, Trinity Urban, Danny Brown, James Petts, Steve D. Pieper, Rob
|
||||
> Lewis, Chris Hafey, and Gordon J. Harris
|
||||
|
||||
> _JCO Clinical Cancer Informatics_, no. 4 (2020), 336-345, DOI:
|
||||
>
|
||||
> Erik Ziegler, Trinity Urban, Danny Brown, James Petts, Steve D. Pieper, Rob
|
||||
> Lewis, Chris Hafey, and Gordon J. Harris _JCO Clinical Cancer Informatics_, no. 4 (2020), 336-345, DOI:
|
||||
> [10.1200/CCI.19.00131](https://www.doi.org/10.1200/CCI.19.00131)
|
||||
|
||||
This article is freely available on Pubmed Central:
|
||||
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7259879/
|
||||
This article is freely available on Pubmed Central: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7259879/
|
||||
|
||||
|
||||
or, for Lesion Tracker of OHIF v1, please cite:
|
||||
|
||||
@@ -70,14 +68,13 @@ or, for Lesion Tracker of OHIF v1, please cite:
|
||||
> Imaging Research and Clinical Trials_
|
||||
>
|
||||
> Trinity Urban, Erik Ziegler, Rob Lewis, Chris Hafey, Cheryl Sadow, Annick D.
|
||||
> Van den Abbeele and Gordon J. Harris
|
||||
>
|
||||
> _Cancer Research_, November 1 2017 (77) (21) e119-e122 DOI:
|
||||
> Van den Abbeele and Gordon J. Harris _Cancer Research_, November 1 2017 (77) (21) e119-e122 DOI:
|
||||
> [10.1158/0008-5472.CAN-17-0334](https://www.doi.org/10.1158/0008-5472.CAN-17-0334)
|
||||
|
||||
This article is freely available on Pubmed Central:
|
||||
This article is freely available on Pubmed Central.
|
||||
https://pubmed.ncbi.nlm.nih.gov/29092955/
|
||||
|
||||
|
||||
**Note:** If you use or find this repository helpful, please take the time to
|
||||
star this repository on Github. This is an easy way for us to assess adoption
|
||||
and it can help us obtain future funding for the project.
|
||||
|
||||
|
After Width: | Height: | Size: 191 KiB |
|
After Width: | Height: | Size: 389 KiB |
|
After Width: | Height: | Size: 453 KiB |
|
After Width: | Height: | Size: 363 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 246 KiB After Width: | Height: | Size: 196 KiB |
|
After Width: | Height: | Size: 646 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 276 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 196 KiB |
|
Before Width: | Height: | Size: 506 KiB |
@@ -67,7 +67,7 @@ For running the OHIF e2e test you need to run the following steps:
|
||||
|
||||

|
||||
|
||||
## Testing Philosiphy
|
||||
## Testing Philosophy
|
||||
|
||||
> Testing is an opinionated topic. Here is a rough overview of our testing
|
||||
> philosophy. See something you want to discuss or think should be changed? Open
|
||||
@@ -87,7 +87,7 @@ Gaining the confidence we need to answer these questions after every change is
|
||||
costly. Good tests allow us to answer them without manual regression testing.
|
||||
What and how we choose to test to increase that confidence is nuanced.
|
||||
|
||||
## Kinds of Tests
|
||||
## Further Reading: Kinds of Tests
|
||||
|
||||
Test's buy us confidence, but not all tests are created equal. Each kind of test
|
||||
has a different cost to write and maintain. An expensive test is worth it if it
|
||||
@@ -149,9 +149,6 @@ We write integration tests to gain confidence that several units work together.
|
||||
Generally, we want to mock as little as possible for these tests. In practice,
|
||||
this means only mocking network requests.
|
||||
|
||||
#### When to use
|
||||
|
||||
...
|
||||
|
||||
### End-to-End Tests
|
||||
|
||||
@@ -165,13 +162,6 @@ Mission critical features and functionality, or to cover a large breadth of
|
||||
functionality until unit tests catch up. Unsure if we should have a test for
|
||||
feature `X` or scenario `Y`? Open an issue and let's discuss.
|
||||
|
||||
## Summary
|
||||
|
||||
- Does your test increase confidence?
|
||||
- Does the test type chosen balance the cost-to-confidence ratio?
|
||||
|
||||
## Further Reading
|
||||
|
||||
### General
|
||||
|
||||
- [Assert(js) Conf 2018 Talks][assert-js-talks]
|
||||
@@ -187,9 +177,7 @@ feature `X` or scenario `Y`? Open an issue and let's discuss.
|
||||
- [Best Practices](https://docs.cypress.io/guides/references/best-practices.html)
|
||||
- [Example Recipes](https://docs.cypress.io/examples/examples/recipes.html)
|
||||
|
||||
## Testing Dorito
|
||||
|
||||
[![testing dorito][testing-dorito-img]][testing-dorito]
|
||||
|
||||
<!--
|
||||
Links
|
||||
|
||||
@@ -9,7 +9,8 @@ An extension can register a Toolbar Module by defining a `getToolbarModule`
|
||||
method. `OHIF-v3`'s `default` extension (`"ohif.org.default"`) provides 5 main
|
||||
toolbar button types:
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Example Toolbar Module
|
||||
|
||||
|
||||
@@ -7,8 +7,9 @@ sidebar_position: 7
|
||||
To open the hotkey assignment panel, you can click on the Preferences gear on the
|
||||
top right side of the viewer.
|
||||
|
||||

|
||||
|
||||
Below, you can see the default hotkeys key bindings:
|
||||
|
||||

|
||||
|
||||
Hotkeys can be assigned to custom bindings that persist for the duration of the browser session.
|
||||
@@ -21,6 +21,9 @@ Let's break different aspects of the viewer to the main components:
|
||||
- Right Panel (measurements): displays annotations details
|
||||
- Toolbar: displays tools and logo
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
Now, we explain each component and its sub-elements in detail.
|
||||
@@ -9,29 +9,28 @@ In `Basic Viewer` mode, the right panel is the `Measurement Panel`. The Measurem
|
||||
<!-- We might want to make an entire section about the tracking workflow including SR hydration because it's pretty complicated. Let's review after the deploy branch is ready. Logic is in OHIF-63 OHIF-339 tickets for reference -->
|
||||
Select a measurement tool and mark an image to initiate measurement tracking. A pop up will ask if you want to track measurements for the series on which the annotation was drawn.
|
||||
|
||||

|
||||
|
||||
If you select `Yes`, the series becomes a `tracked series`, and the current drawn measurement and next measurements will get shown up on the measurement panel on the right.
|
||||

|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
If you select `Yes`, the series becomes a `tracked series`, and the current drawn measurement and next measurements are shown on the measurement panel on the right.
|
||||
|
||||

|
||||
|
||||
If you select `No`, the measurement becomes temporary. The next annotation made will repeat the measurement tracking prompt.
|
||||
|
||||
If you select `No, do not ask again`, all annotations made on the study will be temporary.
|
||||
<!-- Temporary measurement screenshot -->
|
||||

|
||||
|
||||
|
||||
## Labeling Measurements
|
||||
You can edit the measurement name by hovering over the measurement and selecting the edit icon. You can also label or relabel a measurement by right-clicking on it in the viewport.
|
||||
<!-- I would make this first screenshot smaller. Remove the other 2 screenshots as they are pretty self explanatory. Add another screenshot that shows the right-click menu option to lable/relabel measurement and justify the two screenshots in line together -->
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||
Result:
|
||||
|
||||

|
||||
|
||||
|
||||
## Deleting a Measurement
|
||||
@@ -41,7 +40,8 @@ A measurement can be deleting by dragging it outside the image in the viewport o
|
||||
## Jumping to a Measurement
|
||||
Measurement navigation inside the top viewport can be used to move to previous and next measurement.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
If a series containing a measurement is currently being displayed in a viewport, you can jump to display the measurement in the viewport by clicking on it in the Measurement Panel.
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ Click on the Camera icon to download a high quality image capture using common i
|
||||
|
||||
In the opened modal, the filename, image's width and height, and filetype and can be configured before downloading the image to your local computer.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
|
||||
@@ -66,10 +66,10 @@ Please see the `Viewport` section for details.
|
||||
- Flip Horizontally: Flips the image 180 degrees horizontally
|
||||
- Stack Scroll: Links all viewports containing images to scroll together
|
||||
- Magnify: Click on an image to magnify a particular area of interest
|
||||
- Invert: Inverts the colorscale
|
||||
- Invert: Inverts the color scale
|
||||
- Cine: Toggles the Cine player control in the currently selected viewport. Click the `x` on the Cine player or click the tool again to toggle off.
|
||||
- Angle: Measures an adjustable angle on an image
|
||||
<!-- - Probe: Should probe be enabled in basic viewer? Doesn't look like it works currently -->
|
||||
- Probe: Drag the probe to see pixel values
|
||||
- Rectangle: Measures a rectangular area in mm^2 and HU
|
||||
|
||||
When a tool is selected from the `More Tools` menu, it becomes the active tool until it is replaced by clicking on a different tool in the More Tools menu or main toolbar.
|
||||
|
||||