Hello,
I am working on an extension using MRI images, in which I need to display the flair and phase of the same patient next to each other (the flair are the bottom row images and the phase are the top row images in the pictures provided below). To do so I decided to load the flair as the foreground image and phase as the background and just change the opacity to go from one to another.
I would like to simultaneously scroll through both views of the same slice (flair and phase). I noticed that the tool to link views (the small chain on the toolbar) works when I use the “three by three slice” configuration (The views are named Red, Yellow, Green, Slice 4,5,6,7,8,9) :
Thank you for your fast response, is there a way to automatically do that via python code (I couldn’t find any class similar to slicer.app.layoutManager().sliceWidget(“Red”).sliceController() for the “advanced” settings) ?
Moreover, I noticed that the plane intersect does not work anymore once the slices are linked
You can also try the Compare Volumes module, which manages the layout and linking for you and gives other options. It was meant for comparing registration results but is also good for looking at multiple MR contrasts. Unfortunately we don’t have up to date documentation for that module (my bad) but here’s an overview that can be migrated to readthedocs as some point.
The Volumes section lists all the volumes in the scene. You can select the ones you want to see and can drag them to set the layout order.
The Orientation radio buttons lets you pick between one view or a row of three per volume.
The Common Background option lets you overlay all selected volumes in the foreground compared to a reference volume in the background (used with the Visualization Fade/Rock/Flicker modes). If you have just two volumes you can select one here and uncheck it in the Volumes section and you will get a layout with one set of views with the volumes in foreground and background.
Common Label isn’t useful as much now because Segmentations are shown over all views, but if you have a labelmap you can choose to display it.
Hot Link sets up linking mode so that pan/zoom/scroll happens as you drag vs on mouse release.
Visualization mode allows you to crossfade between foreground and background when you have common background enabled. The Rock and Flicker modes animate this action so you can look for subtle changes without needing to use the mouse. You can also pan/zoom/scroll while the animation modes are active to explore the volumes.
The + - Fit buttons control the field of view of the slice views.
Compare Checked Volumes is the button to apply the Volumes, Orientation, and Common Background/Label options in a custom layout. Note that in current Slicer it seems you sometimes need to click the Fit button after applying a new layout.
The Layer Reveal Cursor show a real-time checkerboard of the foreground and background as you move the mouse over the slice views.
Unfortunately, interactive slice intersections is still an experimental features. This behavior is a bug that will be fixed at some point, but currently not a priority. You can monitor the status of the fix here: