Is it possible not to show data in reformat by default

I have datasets that I manually aligned or rigidly registered. Every time I load these back into Slicer, they come in “Reformat” view, as opposed to the axial/sagittal/coronal. Is there a way to disable this behavior globally? I mean if I want the “reformat” view, I can use the “Rotate the volume to plane” in slice controllers.

This is also quite confusing behavior for the new people…

I’m not sure what these images are, but if “patient” orientation is not an issue, you could just set the directions to identity and then axial/sag/cor mode would not be a reformat.

If you can find what this setting is and set a default for it in slicerrc or in whatever method for loading you want to use, I think having this unchecked should prevent switching away from the default axial/sagittal/coronal

This method definitely works for me once everything is already loaded, but I haven’t investigated how to force a default for it.

Alternatively, you could set up that Slicer does whatever it wants on load, and you force it back to axial/sagittal/coronal afterwards by script or button press.

1 Like

Thanks @mikebind.

Not sure what that setting meant to do but, on previews it that doesn’t seem to have any effect (enabled or disabled data always comes up as reformat).

@lassoan @pieper?

But then I will

But then I will loose my alignment? Won’t I?

If “Reset view orientation on show” is checked for an image volume, then, if I show it by clicking on the eye icon in the Data module, the slice views reorient as if I had clicked the “Rotate to volume plane” button on each slice view. With it unchecked, the slice views do not reorient when the volume is shown. It looks like similar behavior can be specified on load with slicer.util.loadVolume(filename, properties{"show": False}) . This loads the image, but does not reorient the slice views (and also doesn’t automatically show the image in the slice views; there doesn’t appear to be a simple way to disentangle these two behaviors (showing and reorienting) during loading). Likewise, if you load using the Add Data dialog, if you expand the Options, and uncheck “Show”, the slice views will not reorient.

Are you loading a MRML scene or a separate image file (nrrd, etc)? If it is a scene, check the slice orientations before saving the scene, if they are “Reformat” then reloading as reformat should be the expected behavior. If you are loading from a separate image file, I think Slicer defaults to aligning the slice views with the image axes because basic segmentation tools work more intuitively when slice views show image planes (oblique slices can lead to striping artifacts and triangles due to slicing through segmentation labelmap voxels at an angle). You can avoid the automatic reorienting using the “Options” → uncheck “Show” in the Add Data dialog.

I am simply loading the NRRD in new Slicer sessions with these options set (or unset). I will try the data suggestion.

“Reset orientation on show” option is persistent - it is remembered even when you restart the application. If you prefer not to align slice views to the volume axes when you show the volume then it is enough to disable this option once (using right-click menu in Data module).

Thanks. I do have comment on both “Reset orientation on show” and “reset FOV”. Since these cannot be set on a per object basis, but rather global settings, I don’t think they belong to that right-click context menu. I think they should go to the Application Settings somewhere like Views.

Or if that’s considered too buried to change quickly, then somewhere in the Data module perhaps. It is just an awkward place to change an application behavior.

We could indeed add the “Reset … on show” options to Application settings as well. We added to the right-click menu of the eye button first, because it tunes the behavior of left-clicking the eye icon and we assumed that users will find it easier there. But you are not the first user who asked about how to enable or disable this option.

Would you have found the option easier if it was in the Application settings / Views / Slice viewer defaults?

I would, since I vaguely remembered this feature once from the forum, but couldn’t remember where it was. First place I looked was the Application Settingsm specifically Views, and I didn’t find there. Then @mikebind reminded me that it is through the visibility options.

If we add it to the Application Settings, let’s also leave it in the eye right click for consistentency. Maybe add a separator and put global optinons after the separator and per-volume options above. I don’t think a per-volume setting for this behavior makes sense, but I suppose it could be added.

2 Likes

I indeed assumed that this was a per-volume setting because of where it was. I hadn’t realized it was a global setting. I don’t see any real need for it to be per-volume either, just assumed that from the UI access method.