當前位置: 首頁>>代碼示例>>Python>>正文


Python Image.load_multiples方法代碼示例

本文整理匯總了Python中pylinac.core.image.Image.load_multiples方法的典型用法代碼示例。如果您正苦於以下問題:Python Image.load_multiples方法的具體用法?Python Image.load_multiples怎麽用?Python Image.load_multiples使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pylinac.core.image.Image的用法示例。


在下文中一共展示了Image.load_multiples方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_multiples

# 需要導入模塊: from pylinac.core.image import Image [as 別名]
# 或者: from pylinac.core.image.Image import load_multiples [as 別名]
    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)
開發者ID:darcymason,項目名稱:pylinac,代碼行數:11,代碼來源:test_image.py

示例2: load_multiple_images

# 需要導入模塊: from pylinac.core.image import Image [as 別名]
# 或者: from pylinac.core.image.Image import load_multiples [as 別名]
    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)
開發者ID:darcymason,項目名稱:pylinac,代碼行數:13,代碼來源:starshot.py

示例3: load_multiple_images

# 需要導入模塊: from pylinac.core.image import Image [as 別名]
# 或者: from pylinac.core.image.Image import load_multiples [as 別名]
    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()
開發者ID:darcymason,項目名稱:pylinac,代碼行數:15,代碼來源:picketfence.py


注:本文中的pylinac.core.image.Image.load_multiples方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。