Determining current file name

I was wondering if someone can create some sort of interface to determine the file name of the image that is currently portrayed within the red scene view. This would help the viewer to determine which file might need to be deleted from a volume easier, or more closely examined by other softwares, etc?

You can get it through the Python console like this:

slicer.mrmlScene.GetNodeByID(slicer.util.getNode('SliceComposite').GetBackgroundVolumeID()).GetStorageNode().GetFileName()

Maybe this could be implemented when Slice View Annotations feature is reworked to be more configurable. Filename could be one of the fields that the user could choose to show. You can configure Slice View Annotations in the DataProbe module.

1 Like