Skip to content

COMP: Support building with DICOM support disabled

Created by: jcfr

This commit update vtkITK to support building without DICOM support (-DSlicer_BUILD_DICOM_SUPPORT:BOOL=OFF). Attempting to use "Add Data" dialog, selecting a DICOM file and unchecking the "single file" option will report an exception like the following:

  AssembleVolumeContainingArchetype: index archetype 0 is out of bounds 0-0

  vtkITKArchetypeImageSeriesReader::ExecuteInformation: Failed to read file series
  [...]

  ReadData: This is not a nrrd file
  ReadData: Cannot read file as a volume of type DiffusionTensorVolume[fullName = /path/to/volume0000.dcm]
	  Number of files listed in the node = 0.
	  File reader says it was able to read 0 files.
	  File reader used the archetype file name of/path/to/volume0000.dcm []
  FileNotFoundError

  ReadData: This is not a nrrd file
  ReadData: Failed to instantiate a file reader
  ReadData: Cannot read file as a volume of type Volume[fullName =/path/to/volume0000.dcm]
	  Number of files listed in the node = 0.
	  File reader says it was able to read 0 files.
	  File reader used the archetype file name of/path/to/volume0000.dcm []
  FileNotFoundError

Merge request reports

Loading