def ReadDICOMDirectory(self): if (self.InputDirectoryName == ''): self.PrintError('Error: no InputDirectoryName.') self.PrintLog('Reading DICOM directory.') reader = vtkvmtk.vtkvmtkDICOMImageReader() reader.SetDirectoryName(self.InputDirectoryName) reader.SetAutoOrientImage(self.AutoOrientDICOMImage) reader.Update() self.Image = reader.GetOutput()