-
Notifications
You must be signed in to change notification settings - Fork 5
MLAB-5611: First version of new tutorial #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
A preview of 3aec329 is uploaded and can be seen here: ✨ https://mevislab.github.io/examples/pull/111/ ✨ Changes may take a few minutes to propagate. Since this is a preview of production, content with |
| ## Prepare your network | ||
|
|
||
| ### Displaying three images in one panel | ||
| Add an `ImageLoad` module to your workspace and select 3D image like *./MeVisLab/Resources/DemoData/MRI_Head.tif* from MeVisLab demo data directory. Connect an `OrthoReformat3` module and add three `View2D` modules. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
select a 3D image
from the MeVislab demo data
|
|
||
|  | ||
|
|
||
| Opening the three `View2D` module panels now show the data in 3 orthogonal views. The module `OrthoReformat3` transforms the input image (by rotating and/or flipping) into the three main views commonly used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show -> shows
|
|
||
| Add a `SoRenderArea` for your final result to the network and connect all three `SoViewportRegion` modules to it. | ||
|
|
||
| The result is, that all of your viewers are initially above each other in the bottom right corner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The result is that (no comma)
are initially above each other -> are initially displayed on top of each other
|
|
||
| The result is, that all of your viewers are initially above each other in the bottom right corner. | ||
|
|
||
|  |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
over -> on top of
|
|
||
| The `SoViewportRegion` module allows to define the X- and Y-position and the width and height of the image in the `SoRenderArea` module. | ||
|
|
||
| Values can be in pixels or as fractions from 0 to 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from 0 to 1. -> from 0 to 1:
| Values can be in pixels or as fractions from 0 to 1. | ||
| * 0 means the start of the render area | ||
| * 0.5 means the center of the render area | ||
| * 1 means the end of the render area |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not completely correct - it depends on the defined reference
|
|
||
|  | ||
|
|
||
| These views will be arranged in a single panel, split into two sides, with each side showing two images. To add the 3D view, insert a `View3D` module and connect it to the `ImageLoad` module. Then connect the `View3D` to `SoCameraInteraction`, connect that to another `SoViewportRegion3`, and finally to `SoRenderArea`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to another SoViewportRegion3 -> to another SoViewportRegion
|  | ||
|
|
||
| ## Exercise | ||
| You can play around the different `SoViewportRegion` modules to create your own layouts by setting the values a little different. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
play around with the ...
No description provided.