Duplicate data in MRML tree

Hi!

After loading a CT DICOM file, then saving the data, closing the scene, and then opening the data again, I seem to end up with duplicate data in the MRML tree, similar to what is described here:

https://discourse.slicer.org/t/slicer-save-function-creating-copies-of-dataset-instead-of-overwrite/2311

The response to that question recommended to use “Close scene”, but this is something I always do, so that is not the solution in this case. In addition, I often get several “Default Scene Camera” items in the Data module.

Below is an example where I’m ending up with two copies of a volume initially called L_PreOp. The reason I’m asking about this is that when I worked on registration between two CTs, then saving data and loading data, I end up with duplicate data where half of the items have names with the suffix _1, as described in the link above.

Here are some screenshots of the process, showing the Data module between each step:

After Slicer startup:
00_after_startup

After loading the DICOM file:
01_after_dicom_load

After saving the data:
02_after_data_save

After File -> Close scene:
03_after_close_scene

Adding the data that was saved:
04_add_data

After adding the data:
05a_after_add_data

The nodes tab:
05b_nodes

I’m using the latest Slicer 3d nightly build on Linux.

Best regards,
Torquil Sørensen

You add one instance of the volume by loading the scene (mrml file) and you add the second instance by loading the image (nrrd file).

If you want to load a saved scene then double-click the scene file or drag-and-drop the scene file (not the entire folder) to the application window.

1 Like