With the mitk::DataNodeFactory it is possible to read any file(s) of any datatype into an MITK datanode.
However, when using this loading mechanism with a DICOM image file, which itself is located in a directory among other DICOM files, the DataNodeFactory also reads these other DICOM files (which are not explicit given)
It is unspecified which DICOM files are read into a single or multiple DataNodes when using the mitk::DataNodeFactory.
Multiple Behaviours are possible:
- Read only the single specified DICOM file into a single Node. (DataNodeFactory does not touch other files)
- Read the specified DICOM file and all other DICOM files with the same SeriesInstanceUID into a single node
- Read all DICOM files in the directory, and group the files with the SeriesInstanceUID into multiple nodes
Open for Discussion!
I tend to option 1, because it is clearly defined, what to load and what not.