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)
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
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)
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])