예제 #1
0
    def load_multiple_images_UI(self):
        """Load multiple images via a dialog box.

        .. versionadded:: 0.5.1
        """
        path_list = get_filenames_UI()
        if path_list:
            self.load_multiple_images(path_list)
예제 #2
0
    def load_multiple_images_UI(self):
        """Load multiple images via a dialog box.

        .. versionadded:: 0.5.1
        """
        path_list = get_filenames_UI()
        if path_list:
            self.load_multiple_images(path_list)
예제 #3
0
파일: image.py 프로젝트: oblasi/pylinac
    def from_multiple_UI(cls, caption='', to_gray=True):
        """Load multiple images using a UI dialog.

        .. versionadded:: 0.5.1

        All files must be images, and must be the same size and shape.
        Image metadata, e.g. DPI, is all based on the first image selected.
        """
        file_list = get_filenames_UI()
        if file_list:
            obj = cls.from_multiples(file_list)
            return obj
예제 #4
0
파일: vmat.py 프로젝트: darcymason/pylinac
 def load_images_UI(self):
     """Load images via a UI dialog box. The open field must have 'open' in the name."""
     fs = get_filenames_UI()
     self.load_images(fs)
예제 #5
0
 def load_images_UI(self):
     """Load images via a UI dialog box. The open field must have 'open' in the name."""
     fs = get_filenames_UI()
     self.load_images(fs)
예제 #6
0
파일: vmat.py 프로젝트: victorgabr/pylinac
 def load_images_UI(self):
     """Load images via a UI dialog box. The open field must have 'open' in the name."""
     fs = get_filenames_UI()
     if len(fs) != 2:
         raise ValueError("Exactly 2 images must be selected")
     self.load_images(fs[0], fs[1])