def load_zip_file_UI(self): """Load a zip file using a UI dialog box. .. versionadded:: 0.6 """ zfile = get_filepath_UI() self.load_zip_file(zfile)
def load_image_UI(self, im_type='open'): """Open a UI file browser to load dicom image. Parameters ---------- im_type : {'open', 'mlcs'} Specifies which file/image type is being loaded in. """ if _is_open_type(im_type): caption = "Select Open Field EPID Image..." elif _is_dmlc_type(im_type): caption = "Select MLC Field EPID Image..." fs = get_filepath_UI(self, caption=caption) if fs: # if user didn't hit cancel self.load_image(fs, im_type=im_type)
def load_image_UI(self): """Load the image by using a UI dialog box.""" path = get_filepath_UI() if path: self.load_image(path)
def from_UI(cls, caption='', to_gray=True): """Load an image using a UI dialog.""" file_path = get_filepath_UI() if file_path: obj = cls(file_path, to_gray) return obj
def load_image_UI(self, filter=None): """Load the image using a UI dialog box.""" path = get_filepath_UI() self.load_image(path, filter=filter)