def test_multiples(self): paths = [dcm_path, dcm_path, dcm_path] img = Image.load_multiples(paths) self.assertIsInstance(img, DicomImage) # test non-superimposable images paths = [dcm_path, tif_path] with self.assertRaises(ValueError): Image.load_multiples(paths)
def load_multiple_images(self, filepath_list): """Load multiple images via the file path. .. versionadded:: 0.5.1 Parameters ---------- filepath_list : sequence An iterable sequence of filepath locations. """ self.image = Image.load_multiples(filepath_list)
def load_multiple_images(self, path_list): """Load and superimpose multiple images. .. versionadded:: 0.9 Parameters ---------- path_list : iterable An iterable of path locations to the files to be loaded/combined. """ self.image = Image.load_multiples(path_list, method='mean') self._check_for_noise() self.image.check_inversion()